[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Get ride of "Input methods" menu in ContextMenu

Working in a DiagramEditor and showing the ContextMenu for any EditPart, I have always seen the following menu in the ContextMenu: InputMethods. I would like to get ride of this but I dont know how.

I tried two ways but none of them worked out. First one, as I made with some other options:

<contributionItemProvider
checkPluginLoaded="false"
class="org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContributionItemProvider">


<Priority name="High"/>
<popupContribution
id="remove_popup_menu_id"
class="org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContextMenuProvider">


<popupStructuredContributionCriteria
objectClass="org.eclipse.gef.EditPart">
</popupStructuredContributionCriteria>
<popupPredefinedItem id="navigateGroup" remove="true"/>
<popupPredefinedItem id="addGroup" remove="true"/>
</popupContribution>
</contributionItemProvider>


But I dont know which ID should I use in case I can follow this  method.

Second way, I have my own DiagramContextMenuProvider class, in the buildContextMenu() method I look at every IContributionItem contributed but the Input Methods menu doesn't appear.

Any help would be appreciated!

Thanks in advance.