Find a text field in the menu bar
2 answers
You can place a SWT control on a toolbar, but it doesn't work for menus. Here is the path to the toolbar:
-
Open the Extensions tab in the plugin.xml file
-
Add extension menuContribution to org.eclipse.ui.menus and set it as toolbar (toolbar: ID)
-
Add a toolbar to this menu.
-
Add control to this toolbar
-
Double click and create a class that extends WorkbenchWindowControlContribution and populates the createControl (...) function with the required SWT controls.
After setting menuContribution as a menu, it is still possible to add a control, but unfortunately it does not display any controls.
0
a source to share