Change in Ids from 3.x plugin to e4 plugin
Menu and Popup Menu in plugin.xml
Contributing to Grits Main menu
- Menu id was changed from org.eclipse.ui.main.menu to org.grits.toolbox.core.menu.main
- Replace "menu:org.eclipse.ui.main.menu" with "menu:org.grits.toolbox.core.menu.main"
Referencing to Project Menu in the Main Menu
- Menu id was changed from simian.main.menus.Project to org.grits.toolbox.core.menu.main.project
- Replace "simian.main.menus.Project" with "org.grits.toolbox.core.menu.main.project"
Contributing to New submenu of Grits Main menu
- Submenu id was changed from simian.main.menus.File.submenu.new to org.grits.toolbox.core.menu.main.grits.new
- Replace "menu:simian.main.menus.File.submenu.new?after=additions" with "menu:org.grits.toolbox.core.menu.main.grits.new"
Contributing to New submenu of Popup menu in project explorer
- Submenu id was changed from projectexplorer.popup.submenu.new to org.grits.toolbox.core.menu.projectexplorer.popup.submenu.new
- Replace "popup:projectexplorer.popup.submenu.new" with "popup:org.grits.toolbox.core.menu.projectexplorer.popup.submenu.new"
Contributing to View submenu of Popup menu in project explorer
- Submenu id was changed from projectexplorer.popup.submenu.view to org.grits.toolbox.core.menu.projectexplorer.popup.submenu.view
- Replace "popup:projectexplorer.popup.submenu.view" with "popup:org.grits.toolbox.core.menu.projectexplorer.popup.submenu.view"
Using Perspective and Editor Ids
previous id | new id | Constant |
---|---|---|
projectexplorer.Perspective | org.grits.toolbox.core.perspective.projectexplorer | IGritsConstants.ID_DEFAULT_PERSPECTIVE |
org.grits.toolbox.core.perspective.ProjectDetails | org.grits.toolbox.core.perspective.entry.project | -- |
Default Perspective
Default perspective for Grits now is
- IGritsConstants.ID_DEFAULT_PERSPECTIVE
- "org.grits.toolbox.core.perspective.projectexplorer"
3x Perspectives Using Project Explorer View
3x perspective contributions when using project explorer view in their perspective should replace this view id with the part descriptor id of project explorer (e4 compatibility layer looks for a part descriptor for the given view id)
class defining perspective (probably implementing IPerspectiveFactory)
- Replace "projectexplorer.views.ProjectExplorerView" with "org.grits.toolbox.core.part.projectexplorer"
Extension Points
Contributing to Preference Dialog
Rename extension point
- Extension point org.eclipse.ui.preferencePages was replaced with org.grits.toolbox.core.preferencePages in core plugin
- In plugin.xml replace extension point "org.eclipse.ui.preferencePages" with "org.grits.toolbox.core.preferencePages"
Change PreferencePage class
- Remove interfaces IWorkbenchPreferencePage (and you might also remove IPropertyChangeListener) from its implementation interfaces
- leave the superclass as PreferencePage
- Remove public void init(IWorkbench workbench) method
- initialize the values somewhere else like in the method createContents
- Remove public void propertyChange(PropertyChangeEvent event) method
Last modified 6 years ago
Last modified on 06/15/2016 05:20:11 PM
Attachments (2)
- img4.png (4.5 KB) - added by 6 years ago.
- img5.png (2.1 KB) - added by 6 years ago.
Download all attachments as: .zip