Hi Miklos,

One of the goals in BlueBerry2 was to support an extendible menu and 
toolbar infrastructure. This work had to be post-poned and BlueBerry2 is 
discontinued for several reasons. In fact, the directory has been 
removed from the git master branch a couple of days ago.

In BlueBerry (1), menus and toolbar items are just created centrally in 
a class inheriting from berry::WorkbenchWindowAdvisor. See for example 
QmitkWorkbenchwindowAdvisor in 
CoreUI/Bundles/org.mitk.gui.qt.application or 
QmitkExtWorkbenchWindowAdvisor in Modules/Bundles/org.mitk.gui.qt.ext .

If you want to have full control over the menu structure in your own 
application, you would have to create your own 
berry::WorkbenchWindowAdvisor and berry::IApplication implementations. 
External users of MITK/BlueBerry have successfully done that.

Hope that helps,

Sascha

On 05/20/2011 08:02 AM, Miklos Espak wrote:
> Hi,
>
> I would like to provide a new menu item by the perspective I made. I
> found that in the BlueBerry2 directory there is an IMenuService
> interface that can be accessed by the selection service this way:
>
> IMenuService service = (IMenuService) 
> getSite().getService(IMenuService.class);
>
> Is it the right way to do it?
>
> However, it seems that the BlueBerry2 directory is not referenced at
> all by the rest of the MITK project. Is MITK about to switch from
> BlueBerry to BlueBerry2? If it is not going to happen soon, is it
> possible to add a new menu item with BlueBerry (1)?
>
> My MITK sources are not the latest, I downloaded them from the old SVN
> repo less then 3 months ago.
>
> Thanks,
> Miklos
>
> ------------------------------------------------------------------------------
> What Every C/C++ and Fortran developer Should Know!
> Read this article and learn how Intel has extended the reach of its
> next-generation tools to help Windows* and Linux* C/C++ and Fortran
> developers boost performance applications - including clusters.
> http://p.sf.net/sfu/intel-dev2devmay
> _______________________________________________
> mitk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mitk-users


------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to