EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: How do you close a CSS BOY window?
From: "Chen, Xihui" <[email protected]>
To: "[email protected]" <[email protected]>, "[email protected]" <[email protected]>
Date: Thu, 8 Mar 2012 13:43:56 -0500
Hi Xinyu,

Here is the jython code to close current active window:

	from org.eclipse.ui import PlatformUI			
	PlatformUI.getWorkbench().getActiveWorkbenchWindow().close()

Be careful, it may close your CSS if it is the only CSS window!

> Also what is an executeEclipseCommand in
> ScriptUtil.executeEclipseCommand()? Is there a list of eclipse command
> somewhere?

All eclipse command are listed at Preferences->General->Keys, but it doesn't have command id of each command. Command id is defined in the plugin which provides that command. For example: ScriptUtil.executeEclipseCommand("org.eclipse.ui.help.aboutAction") will open the About Dialog.

Cheers,
Xihui

> -----Original Message-----
> From: [email protected] [mailto:[email protected]]
> Sent: Thursday, March 08, 2012 5:45 AM
> To: [email protected]
> Subject: How do you close a CSS BOY window?
> 
> I would like to know how to close the current window of a CSS BOY.
> 
> I opened an opi in a new window, and I have an OK button in the opi
> which when clicked will set some PVs and close the window.
> 
> I was using ScriptUtil.closeCurrentOPI(). But it only closes the view,
> the window is left open.
> 
> Also what is an executeEclipseCommand in
> ScriptUtil.executeEclipseCommand()? Is there a list of eclipse command
> somewhere?
> 
> Thanks
> 
> Xinyu WU
> ASKAP Computing
> Australia Telescope National Facility
> CSIRO Astronomy and Space Science
> phone: +61 2 9372 4727
> postal: PO Box 76 Epping, NSW. 1710
> 
> 



References:
How do you close a CSS BOY window? Xinyu.Wu

Navigate by Date:
Prev: RE: ASYN Communication through windows serial port (via USB) Mark Rivers
Next: Re: Converting driver of R3.13 Applications to R3.14 problems Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: How do you close a CSS BOY window? Xinyu.Wu
Next: Converting driver of R3.13 Applications to R3.14 problems Bai Jiaoni
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·