Hi Ashish,
the MITK Workbench uses BlueBerry as its application framework which in turn is an adaption of the Eclipse Workbench concept [1]. While this concept is quite flexible, it has rather strict rules about where things should be located. By default, views (often called "plugins") are added to a toolbar. You can create a separate toolbar for your views by adding a category attribute to your views elements in your plugin.xml (see [2] for example). You can make up completely new categories and the application will group your views automatically as lon as they have the same category. Your views are also listed in the menu under "Window > Show View > ..." and in the View Navigator which you find in the toolbar. Adapting other parts of the Workbench like the fixed toolbar or the main menu is done through Workbench Window Advisors [3] but that is a rather static and sometimes hacky construct. You would need to create your own Workbench-style application to have full control over your own Workbench Window Advisor. There is also the concept of perspectives, which could already be a satisfying solution for you. A perspective re-arranges the Workbench parts like editors and views to your liking and they can be added to your plugin (See "Window > Open Perspective > ..." or the View Navigator for example). The concept is also explained in the Eclipse Workbench User Guide. Best, Stefan [1] https://help.eclipse.org/2019-03/index.jsp?nav=%2F0 [2] https://github.com/MITK/MITK/blob/v2018.04.2/Plugins/org.mitk.gui.qt.remeshing/plugin.xml#L8 [3] https://github.com/MITK/MITK/blob/v2018.04.2/Plugins/org.mitk.gui.qt.ext/src/QmitkExtWorkbenchWindowAdvisor.cpp? ________________________________ Von: Ashish Singh <asinghmli...@gmail.com> Gesendet: Dienstag, 9. Juli 2019 21:58 An: mitk-users@lists.sourceforge.net Betreff: [mitk-users] new menu for custom plugin Hi, I have built a plugin based on mitk project template. I want to create a new menu entry to access the plugin. At the moment, the new plugin appears on the toolbar. Can anyone please point me in the right direction as to how to do this? Thanks, Ashish
_______________________________________________ mitk-users mailing list mitk-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mitk-users