Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to remove the sub menus of 'Add' Context Menu ?
How to remove the sub menus of 'Add' Context Menu ? [message #232125] Wed, 03 June 2009 10:09 Go to next message
Setya Nugdjaja is currently offline Setya NugdjajaFriend
Messages: 567
Registered: July 2009
Senior Member
Hi all,

On the diagram there's an 'Add' context menu that contains sub menus
'Oval', 'Triangle', 'Rectangle', etc. How to get rid of them ?


Regards,

Setya
Re: How to remove the sub menus of 'Add' Context Menu ? [message #232347 is a reply to message #232125] Thu, 04 June 2009 11:56 Go to previous messageGo to next message
Setya Nugdjaja is currently offline Setya NugdjajaFriend
Messages: 567
Registered: July 2009
Senior Member
Setya wrote:
> Hi all,
>
> On the diagram there's an 'Add' context menu that contains sub menus
> 'Oval', 'Triangle', 'Rectangle', etc. How to get rid of them ?
>
>
> Regards,
>
> Setya

Well ?
Re: How to remove the sub menus of 'Add' Context Menu ? [message #232419 is a reply to message #232347] Thu, 04 June 2009 15:19 Go to previous messageGo to next message
govind Ra is currently offline govind RaFriend
Messages: 95
Registered: July 2009
Member
Hi setya

Check for some geoshape in plugin.xml.

Regards
Govind
Re: How to remove the sub menus of 'Add' Context Menu ? [message #232515 is a reply to message #232419] Fri, 05 June 2009 07:15 Go to previous messageGo to next message
Setya Nugdjaja is currently offline Setya NugdjajaFriend
Messages: 567
Registered: July 2009
Senior Member
Hi,

Thanks for responding.

> Check for some geoshape in plugin.xml.

What is this geoshape ? an ext. point ? I've tried to search this text
in the plugin.xml without result.


Regards,

Setya
Re: How to remove the sub menus of 'Add' Context Menu ? [message #232757 is a reply to message #232515] Fri, 05 June 2009 14:15 Go to previous messageGo to next message
govind Ra is currently offline govind RaFriend
Messages: 95
Registered: July 2009
Member
Hi Setya

If u don't find the below popcontribution add

<popupContribution
class=" org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContextM enuProvider ">
<popupStructuredContributionCriteria
objectClass=" org.eclipse.gmf.runtime.diagram.ui.geoshapes.internal.editpa rts.GeoShapeEditPart ">
</popupStructuredContributionCriteria>
<popupPredefinedItem id="add" remove="true"/>
<popupPredefinedItem id="autoSizeAction" path="/formatMenu/"
remove="true">
</popupPredefinedItem>
</popupContribution>

I think it should work.

Regards
Govind.
Re: How to remove the sub menus of 'Add' Context Menu ? [message #232780 is a reply to message #232757] Fri, 05 June 2009 17:03 Go to previous messageGo to next message
Setya Nugdjaja is currently offline Setya NugdjajaFriend
Messages: 567
Registered: July 2009
Senior Member
Hi,

> If u don't find the below popcontribution add
> <popupContribution
> class=" org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContextM enuProvider ">
>
> <popupStructuredContributionCriteria
> objectClass=" org.eclipse.gmf.runtime.diagram.ui.geoshapes.internal.editpa rts.GeoShapeEditPart ">
>
> </popupStructuredContributionCriteria>
> <popupPredefinedItem id="add" remove="true"/>
> <popupPredefinedItem id="autoSizeAction" path="/formatMenu/"
> remove="true">
> </popupPredefinedItem>
> </popupContribution>
> I think it should work.

I've added the ext. point as follows:

<extension
point=" org.eclipse.gmf.runtime.common.ui.services.action.contributi onItemProviders ">
<contributionItemProvider
checkPluginLoaded="true"

class=" org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContribu tionItemProvider ">
<Priority
name="Lowest">
</Priority>
<popupContribution

class=" org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContextM enuProvider ">
<popupStructuredContributionCriteria

objectClass=" org.eclipse.gmf.runtime.diagram.ui.geoshapes.internal.editpa rts.GeoShapeEditPart ">
</popupStructuredContributionCriteria>
<popupPredefinedItem
id="add"
remove="true">
</popupPredefinedItem>
<popupPredefinedItem
id="autoSizeAction"
path="/formatMenu/"
remove="true">
</popupPredefinedItem>
</popupContribution>
</contributionItemProvider>
</extension>

The the 'Add' menu is still there.

Regards,

Setya
Re: How to remove the sub menus of 'Add' Context Menu ? [message #234354 is a reply to message #232780] Sat, 20 June 2009 11:07 Go to previous message
bluetlck Mising name is currently offline bluetlck Mising nameFriend
Messages: 4
Registered: July 2009
Junior Member
<popupPredefinedItem id="addGroup" remove="true"/>
Previous Topic:Re: Problem opening ecore_diagram file/dynamic diagram generation
Next Topic:Hint for dynamic Model
Goto Forum:
  


Current Time: Wed Apr 01 02:02:51 GMT 2020

Powered by FUDForum. Page generated in 0.01905 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top