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
|