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  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 
<== Date ==> <== Thread ==>

Subject: RE: How do you close a CSS BOY window?
From: "Chen, Xihui" <chenx1@ornl.gov>
To: "Xinyu.Wu@csiro.au" <Xinyu.Wu@csiro.au>, "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
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: Xinyu.Wu@csiro.au [mailto:Xinyu.Wu@csiro.au]
> Sent: Thursday, March 08, 2012 5:45 AM
> To: tech-talk@aps.anl.gov
> 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 
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 
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 ·