Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[gmf-dev] Renaming "Diagram" menu

Title: Renaming "Diagram" menu

Hello,

I was wondering if its possible to rename GMFs Diagram

dropdown menu.  Ive tried a lot of different approaches,
some of them perhaps dumb including extending

DiagramActionBarContributor and doing something like this:

       for (int i = 0; i < bars.getMenuManager().getItems().length; i++) {

          IContributionItem item = bars.getMenuManager().getItems()[i];

          if (item.getId().equals("diagramMenu")) {

             IContributionItem innerItem = ((SubContributionItem)item).getInnerItem();

However the real MenuManager of the diagram menu is hidden in a private variable.

Im using GMF 1.0.0

I wonder if there is a way to do something like that.

Thank you!

D


Back to the top