Avoiding the IDE Preference Pages
Removing the preference pages node is actually quite simple and can be done with the following snippet. You can add this to the postWindowOpen of your WorkbenchWindowAdvisor.PreferenceManager pm = PlatformUI.getWorkbench().getPreferenceManager(); pm.remove("org.eclipse.ui.preferencePages.Workbench");
Avoiding the IDE key bindings
Removing the Key bindings is not as easy and is mostly a trick. The basic idea is to create your own key binding scheme and enable it by default. The scheme can be created in the plugin.ini file:<extension point="org.eclipse.ui.bindings"> <scheme id="my.scheme" name="MyScheme"> </scheme> </extension>
To enable it you have to add the following line to
plugin_configuration.ini
: org.eclipse.ui/KEY_CONFIGURATION_ID=my.schemeAt this point you can create all your keyboard shortcuts. The bindings must use
my.scheme
as schemeId
. <extension point="org.eclipse.ui.bindings"> <key commandId="my.graphiti.newUntitledDiagram" schemeId="my.scheme" sequence="M1+N"> </key> </extension>
No comments:
Post a Comment