-
Notifications
You must be signed in to change notification settings - Fork 2
Migrating or adding a button to the E4 perspective switcher
Alistair McGann edited this page Jul 24, 2018
·
3 revisions
- Open the Application.e4xmi from
uk.ac.stfc.isis.ibex.e4.client - Go to
Snippets - Click
Addto add a new perspective - Set the perspective up using an existing migrated perspective as a template
- Set a sensible ID
- Give it a label
- If you want your perspective to be invisible toggle the visible checkbox
- Set the icon
- Add controls. This should be a hierarchy of part sash containers. You can see how it should be set up from the existing perspectives. Don't forget to set the container data where appropriate; it sets the relative size of sibling components.
- Add the perspective-specific parts
- In the alarms perspective, you'll see one part in the final part sash container called alarms. Do the same thing in your new perspective, but give it an appropriate name
- Change the ID of your new part to the ID of the view class you want the perspective to open
- Add the dependency of the view you've added to the
plugin.xmlin the...e4.clientplugin - Add the new dependency to
...feature.xml(inuk.ac.stfc.isis.ibex.feature.base) - Synchronize
ibex.product(in...e4.client.product) - Open IBEX
- Check the new perspective scales appropriately and change the layout accordingly if needed
Making a brand new E4 perspective would probably look similar to the steps above, minus the E3 steps. However, a new E4 perspective has yet to been attempted.