Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perspective handling: Command line option to install workbench.xmi #1499

Closed
kasemir opened this issue Dec 7, 2015 · 3 comments
Closed

Perspective handling: Command line option to install workbench.xmi #1499

kasemir opened this issue Dec 7, 2015 · 3 comments
Assignees

Comments

@kasemir
Copy link
Contributor

kasemir commented Dec 7, 2015

Since BOY runtimes execute in a "View", Perspectives can be used to define several display layouts.
For example, control room operators or beam line administrators can create several perspectives, and users can then switch between them.

Right now, however, there's no good way to add such predefined perspectives to a newly started CS-Studio instance.

Ideal would be a way to automatically import selected perspectives. For example, desired perspectives could be exported, one file per perspective, into some directory, and a startup option "-import_perspectives /some/dir/*" would import them all. Unfortunately, this is currently difficult because the original Eclipse perspective import/export mechanism is broken. There is progress on the issue, https://bugs.eclipse.org/bugs/show_bug.cgi?id=378811, so waiting for that to be fixed may be a good approach for us to take.

Another option is to replace the .metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi file on CS-Studio startup with a ''golden' workbench.xmi file that has been prepared to contain all the desired perspectives. In addition, this approach will assert that CS-Studio always starts up with a known initial display layout. On restart, user adjustments are lost and CS-Studio again opens with the 'golden' display layout. For some beam line use cases, this is actually desired, so it remains a useful option even after the selective perspective export/import becomes available.

@berryma4
Copy link
Member

berryma4 commented Dec 8, 2015

related to #1398

and,
https://bugs.eclipse.org/bugs/show_bug.cgi?id=378811
Verified in the Eclipse integration build I20151207-2000

@willrogers
Copy link
Contributor

This works surprisingly well. Thanks!

@kasemir
Copy link
Contributor Author

kasemir commented Dec 10, 2015

It does a complete replacement of the workbench.xmi, so on restart you lose which windows you had open etc. For beamlines, our current plan is a "CSS" desktop icon for end users that will start css with the new -workbench_xmi /path/to/common/workbench.xmi option. People who start css on the command line can decide if they want to add the option; by default, nothing changes for them.

@kasemir kasemir changed the title Perspective handling: Command line option to install workspace.xmi Perspective handling: Command line option to install workbench.xmi Apr 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants