HowTo: get an idea of the tree hierarchy
HowTo: find menu contribution ID
HowTo: find toolbar action contribution
HowTo: find the published context menu IDs
HowTo: find current workbench selection
HowTo: to find an extension point
HowTo: to find a service
HowTo: find activities
HowTo: find IDs for activities creation
ToDo?: Explain “catcher” and refresh. Pay attention to the active part stuff!
The navigation part of the object inspection view contains 7 top level elements:
What to do if menu is empty (only data is there) -> open all the menus and then refresh
The id is available in the “*Data” object: property id:
Note: use for that purpose the SWT Inspector! The fastest way is enable capturing and push the toolitem direct which means that the action is run. This can cause problems especial if the toolitem will be disposed (like the “New Java Project” toolitem). If no result is shown in the SWT Inspector then keep capturing enabled and select another workbench control. If in the SWT Inspector is an element selected try again to select the toolitem. It should select now the toolitem.
If you have a problem with disposed toolitems then try to inspect the toolbar instead of the item.
The toolbar has a property called items:
Double click it and a new inspector dialog is opened:
Select the second one -> double click and you get the “save” toolitem:
Enable the smiley and click on the workbench part you want to inspect. Go to the “Part’s Site” element. The ContextMenuIds?-property contains all context menus which are registered for this site.
Workbench -> Selection
or
Workbench -> Page -> selection-property.
Pay attention: if you want to inspect the selection through the page selection property! the page-Object properties will be loaded dynamically. If the Page-Node is selected (and was not selected before), the active part is normally net.sf.yari.eclipse.EclipseInspectorViewPart?. You have to select the Page-node (important step!) and then click the “smiley” to catch again the workbench part. The page will have now the properties of the inspected page-object loaded (including the correct selection).
You have just installed a lot of different 3rd party bundles and features for your Eclipse IDE or you just created a complete RCP-Product for your business with brand new features and suddenly your workbench starting behavior is much slower than before.
If you are curious you may want to have a look at the [BundleInspector] for showing all active bundles (do have bundles ab, cd, …, and xy to be in an active state now?) or you could have a look at “All ExtensionPoints?” item for the famous "org.eclipse.ui.startup" extension point and realize that there is now (instead of the three or four well known plug-ins) a bunch of bundles which use this hook for different purposes.
Perhaps the time consuming tasks (e.g. initialization of some sort of caches) which are done there could be scheduled more efficient?
Of course you can also have a look at the pde manifest editor and use the “find references” action for extensions. But you will only find the bundles which either are in workspace or included in the target platform.
With Eclipse Inspector you will see all extensions at runtime!
Description comming soon.
Description comming soon.
You want to build a rcp application without the 'General'-Preferences item in the eclipse preferences?
You can use activities to remove this contribution. But therefore you need to know the contribution plugin and bundle...
To get all these informations use the following steps:
create an activity:
<extension point="org.eclipse.ui.activities">
<activity id="net.sf.yari.sample.activity" name="Sample Activity">
</activity>
<activityPatternBinding activityId="net.sf.yari.sample.activity" pattern="org\.eclipse\.ui.*/org\.eclipse\.ui\.preferencePages\.Workbench">
</activityPatternBinding>
</extension>
General-tab has gone:
Documentation: BundleInspector
Documentation: Home
Documentation: HowTo