Hi Will,
thanks a lot,
it works !
Regards,
Gennaro
On Fri, 28 Apr 2017, [email protected] wrote:
Hi Gennaro,
There is a way to do this, although I can imagine it might be a bit tricky to make it do exactly what you want.
If you attach a python script to an action button, you can add the following:
from org.csstudio.opibuilder.scriptUtil import ScriptUtil
ScriptUtil.executeEclipseCommand("org.eclipse.ui.perspectives.showPerspective",
["org.eclipse.ui.perspectives.showPerspective.perspectiveId", "org.csstudio.trends.databrowser.Perspective"])
I tried this, and of course it then changes to the data browser perspective, hiding the OPI screen from which you pressed the button.
Cheers,
Will
________________________________________
From: [email protected] [[email protected]] on behalf of [email protected] [[email protected]]
Sent: 28 April 2017 09:00
To: [email protected]
Subject: CSS perspective from OPI
Hi,
I'm looking for a way to open a CSS perspective (e.g. Data Browser)
from an OPI;
I already know how to open "Data Browser" from a running OPI
(CS-Studio -> Trends -> Data Browser) but I would like to
open Data Browser from an user control button...
Thanks in advance,
Gennaro
--
Gennaro Tortone
INFN Napoli
Italy
tel: +39 81 676169
"Computer Science is no more about computers
than astronomy is about telescopes."
- Edsger Dijkstra
--
Gennaro Tortone
INFN Napoli
Italy
tel: +39 81 676169
"Computer Science is no more about computers
than astronomy is about telescopes."
- Edsger Dijkstra
- References:
- CSS perspective from OPI [email protected]
- RE: CSS perspective from OPI will.rogers
- Navigate by Date:
- Prev:
RE: CSS perspective from OPI will.rogers
- Next:
asyn or caput rate limits? Brown, Garth
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
<2017>
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
RE: CSS perspective from OPI will.rogers
- Next:
asyn or caput rate limits? Brown, Garth
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
<2017>
2018
2019
2020
2021
2022
2023
2024
|