You can hide a panel within the sidebar or the sidebar itself. You can use activities to associate a sidebar panel with a specific application. Activities prevent toolbar icons, custom menu options, sidebar panels, and control sets in one application from being displayed in another application. When an activity is enabled in the platform, the user interface contributions associated with that activity are shown. When an activity is disabled in the platform, its user interface contributions are not shown. You can associate a panel with an activity to enable the panel to be displayed or hidden based on whether the associated application is in use or is not. The patterns used by the Workbench are composed of two parts. The first part uses the identifier of the plug-in that is contributing the user interface extension. The second part is the ID used by the plug-in itself when defining the contribution. The following format is used:
plug-in-identifier + "/" + local-identifier
where the identifiers include a backslash (\) before each period in their namespaces.
Do one of the following
- Set the value of the showShelfArea property in the theme to false. The theme is specified in the plugin_customization.ini file of the branding plug-in.
- Use the org.eclipse.ui.activities extension point to filter out a sidebar view.
For example, in the following plugin.xml
excerpt, the regional settings editor activity defined in the com.ibm.myeditor.supereditor.baseview
plug-in associates itself with the com.ibm.supereditor.preferences.documenteditors.RegionalSettingsEditor
Parent topic: Sidebars: XPD622