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  2012  2013  2014  2015  <20162017  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  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: OPI Display (workbench) ??
From: Patard Charles-Henri <[email protected]>
To: "[email protected]" <[email protected]>
Date: Wed, 14 Dec 2016 16:44:47 +0000

Thanks a lot Kay,

Very useful answer. Folowing my first question, I would like to know if it’s possible to hide Open Perspective button in perspective switcher or handle the perspective list inside the Open perspective window ?

I’ve hide the Open Perspective in CS-Studio 3.x but it doesn’t work in 4.x.

 

De : Kasemir, Kay [mailto:[email protected]]
Envoyé : mercredi 14 décembre 2016 15:58
À : Patard Charles-Henri
Cc : t
ech-talk@aps.anl.gov
Objet : Re: OPI Display (workbench) ??

 

 

On Dec 14, 2016, at 5:03 AM, Patard Charles-Henri <[email protected]> wrote:

 

Hi,

The OPI Runtime action have been replaced by OPI Display (workbench) and OPI Display (Standalone Window) in CSS 4.x versions.

I have some problems to understand how work OPI Display (workbench). New tabs are opened in random position. How can I set the position of tab ? Is there a preference to set ?

I would like to open OPI  in runtime like before or like a Data Browser plot in editors area.

 

Since about Jan. 2016, CSS version 4.2 changes the *.opi runtimes to be based on “views”.

This means that their arrangement can be saved, switched, restored as part of the Eclipse ‘Perspective’ handling.

This comment on the associated project ticket describes how to create a layout of displays, how to save it, how to switch between them:

 

Example:
1) Start CSS with a new, clean workspace. This can be done either by entering a new workspace name on startup, or by deleting the folder listed in the workspace selection dialog before pressing "OK" to use it.
2) Open and/or Reset the "OPI Runtime" Perspective. By default, the "OPI Runtime" perspective is empty, but there is a preference option "CSS Applications", "Display", "BOY", "Show OPI Runtime Stacks" that will add various placeholders.
3) Open and arrange desired display panels. This includes dragging them out of the workbench window.
       4) If "Show OPI Runtime Stacks" was enabled, close the unused placeholders. Use "Save As" from perspective switcher to create a named custom perspective.
5) Repeat from step 2 until all desired perspectives have been created.

--> You can now open, close, switch, reset display layouts as perspectives.

     6) Select the perspective which you want to be open when CSS starts up, exit CSS

If you want to “lock” this setup:

Locate the workbench.xmi in the workspace folder, create a copy:
 cp YOUR_WORKSPACE/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi $HOME/my_golden_workbench.xmi

When you now start CSS as
  css -workbench_xmi  $HOME/my_golden_workbench.xmi
it will come up as you left it in step 6)

This allows you to create a setup where users always have some “Main” layout when they start CSS.
They can then switch to a “Vacuum”, “Experiment 1”, … layout as desired.
They can still move things around. For the most part, they can “reset” a perspective to get the original layout.
When users close & restart CSS, it’s back to step 6, i.e. layout arrangements by users are lost because we always start over with my_golden_workbench.xmi.

There are alternate options to save selected perspectives into a certain directory and then load all saved perspectives from that directory on startup, allowing you to distribute setups between instances of CSS while otherwise still starting up “as it was when shut down”. See Edit, Preferences, General, Perspectives Sharing. In that case you don’t use my_golden_workbench.xmi, you just add certain shared perspectives to each instance.

 

-Kay


Préservons notre environnement, n’imprimez ce mail que si nécessaire.
Preserve our environment, print this email only if necessary.


Replies:
Re: OPI Display (workbench) ?? Kasemir, Kay
References:
OPI Display (workbench) ?? Patard Charles-Henri
Re: OPI Display (workbench) ?? Kasemir, Kay

Navigate by Date:
Prev: Re: hide OPI window scrollbars at runtime ? Kasemir, Kay
Next: Re: OPI Display (workbench) ?? Kasemir, Kay
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: OPI Display (workbench) ?? Kasemir, Kay
Next: Re: OPI Display (workbench) ?? Kasemir, Kay
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 14 Dec 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·