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: "Kasemir, Kay" <[email protected]>
To: Patard Charles-Henri <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Wed, 14 Dec 2016 14:58:05 +0000

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

Replies:
RE: OPI Display (workbench) ?? Patard Charles-Henri
References:
OPI Display (workbench) ?? Patard Charles-Henri

Navigate by Date:
Prev: Re: Having trooble setting up CSS archive engine with mySQL David Michel
Next: hide OPI window scrollbars at runtime ? Olivier Zimmermann
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: OPI Display (workbench) ?? Patard Charles-Henri
Next: RE: OPI Display (workbench) ?? Patard Charles-Henri
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 ·