Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » small extension to compD
small extension to compD [message #471771] Wed, 10 October 2007 11:11 Go to next message
Eclipse UserFriend
Originally posted by: nickkirtley.gmail.com

hi,

I've added a context menu to the component diagram. So when the user right
clicks a component I get an extra menu option. It works fine when I just
add the code to the existing project. But when I make a new project and
add the menu , just as I did for the existing project, then it doesn't
work.

I have the following code for the extension:

<extension

point=" org.eclipse.gmf.runtime.common.ui.services.action.contributi onItemProviders ">
<contributionItemProvider
checkPluginLoaded="true"
class="org.eclipse.uml2.diagram.component.action.PrimusAction1 ">
<Priority
name="Medium">
</Priority>
<popupContribution

class=" org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContextM enuProvider ">
<popupMenuGroup
id="PrimusGroup"
path="/propertiesGroup">
</popupMenuGroup>
<popupMenu
id="primus_action_1"
path="/PrimusGroup">
</popupMenu>
<popupStructuredContributionCriteria

objectClass=" org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditP art "
objectCount="1">
</popupStructuredContributionCriteria>
</popupContribution>
</contributionItemProvider>
</extension>

anyone know what the problem is ?

regards,
Nick
Re: small extension to compD [message #471774 is a reply to message #471771] Thu, 11 October 2007 16:26 Go to previous message
Michael Golubev is currently offline Michael GolubevFriend
Messages: 383
Registered: July 2009
Senior Member
Hello Nick,

My only bet for now is that you have not exported the new package with action
implementation (org.eclipse.uml2.diagram.component.action) from the component
diagram plugin.
If it is not the case, please provide me with more details, if possible.

Regards,
Michael

> hi,
>
> I've added a context menu to the component diagram. So when the user
> right clicks a component I get an extra menu option. It works fine
> when I just add the code to the existing project. But when I make a
> new project and add the menu , just as I did for the existing project,
> then it doesn't work.
>
> I have the following code for the extension:
>
> <extension
>
> point=" org.eclipse.gmf.runtime.common.ui.services.action.contributi onI
> temProviders">
> <contributionItemProvider
> checkPluginLoaded="true"
>
> class="org.eclipse.uml2.diagram.component.action.PrimusAction1 ">
> <Priority
> name="Medium">
> </Priority>
> <popupContribution
> class=" org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContextM enu
> Provider">
> <popupMenuGroup
> id="PrimusGroup"
> path="/propertiesGroup">
> </popupMenuGroup>
> <popupMenu
> id="primus_action_1"
> path="/PrimusGroup">
> </popupMenu>
> <popupStructuredContributionCriteria
> objectClass="org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEd
> itPart"
> objectCount="1">
> </popupStructuredContributionCriteria>
> </popupContribution>
> </contributionItemProvider>
> </extension>
> anyone know what the problem is ?
>
> regards,
> Nick
Re: small extension to compD [message #609320 is a reply to message #471771] Thu, 11 October 2007 16:26 Go to previous message
Michael Golubev is currently offline Michael GolubevFriend
Messages: 383
Registered: July 2009
Senior Member
Hello Nick,

My only bet for now is that you have not exported the new package with action
implementation (org.eclipse.uml2.diagram.component.action) from the component
diagram plugin.
If it is not the case, please provide me with more details, if possible.

Regards,
Michael

> hi,
>
> I've added a context menu to the component diagram. So when the user
> right clicks a component I get an extra menu option. It works fine
> when I just add the code to the existing project. But when I make a
> new project and add the menu , just as I did for the existing project,
> then it doesn't work.
>
> I have the following code for the extension:
>
> <extension
>
> point=" org.eclipse.gmf.runtime.common.ui.services.action.contributi onI
> temProviders">
> <contributionItemProvider
> checkPluginLoaded="true"
>
> class="org.eclipse.uml2.diagram.component.action.PrimusAction1 ">
> <Priority
> name="Medium">
> </Priority>
> <popupContribution
> class=" org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContextM enu
> Provider">
> <popupMenuGroup
> id="PrimusGroup"
> path="/propertiesGroup">
> </popupMenuGroup>
> <popupMenu
> id="primus_action_1"
> path="/PrimusGroup">
> </popupMenu>
> <popupStructuredContributionCriteria
> objectClass="org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEd
> itPart"
> objectCount="1">
> </popupStructuredContributionCriteria>
> </popupContribution>
> </contributionItemProvider>
> </extension>
> anyone know what the problem is ?
>
> regards,
> Nick
Previous Topic:Problems with interfaces and associations
Next Topic:Re: [UML2/UML2Tools] UML2 Search Contribution for UML models & diagrams
Goto Forum:
  


Current Time: Thu Apr 25 14:09:28 GMT 2024

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

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

Back to the top