Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Launch GMF diagram validation from the edit popup menu
Launch GMF diagram validation from the edit popup menu [message #186069] Fri, 09 May 2008 14:24 Go to next message
BLANC Philippe is currently offline BLANC PhilippeFriend
Messages: 89
Registered: July 2009
Member
Hi,
i would like to launch the GMF diagram validation from the edit popup menu.
I think it is something like that:

<extension
point=" org.eclipse.gmf.runtime.common.ui.services.action.contributi onItemProviders ">
<contributionItemProvider
class=" com.clearsy.eventb.model.diagram.providers.EventBValidationP rovider ">
<Priority name="Medium"/>
<popupContribution
id="org.eclipse.gmf.runtime.diagram.ui.DiagramEditorContextMenu ">
<popupCustom
id="Validate Diagram">
</popupCustom>
</popupContribution>
</contributionItemProvider>
</extension>

But it doesn't work...
Can somebody help me please ?

Thanks.

Philippe
Re: Launch GMF diagram validation from the edit popup menu [message #186124 is a reply to message #186069] Fri, 09 May 2008 18:48 Go to previous messageGo to next message
Linda Damus is currently offline Linda DamusFriend
Messages: 85
Registered: July 2009
Member
Philippe,

You could try using the Eclipse org.eclipse.ui.popupMenus extension
point to contribute your action.

Regards,
Linda

Philippe BLANC wrote:
> Hi,
> i would like to launch the GMF diagram validation from the edit popup menu.
> I think it is something like that:
>
> <extension
> point=" org.eclipse.gmf.runtime.common.ui.services.action.contributi onItemProviders ">
>
> <contributionItemProvider
> class=" com.clearsy.eventb.model.diagram.providers.EventBValidationP rovider ">
>
> <Priority name="Medium"/>
> <popupContribution
> id="org.eclipse.gmf.runtime.diagram.ui.DiagramEditorContextMenu ">
> <popupCustom
> id="Validate Diagram">
> </popupCustom>
> </popupContribution>
> </contributionItemProvider>
> </extension>
>
> But it doesn't work...
> Can somebody help me please ?
>
> Thanks.
>
> Philippe
Re: Launch GMF diagram validation from the edit popup menu [message #186523 is a reply to message #186124] Tue, 13 May 2008 06:35 Go to previous message
BLANC Philippe is currently offline BLANC PhilippeFriend
Messages: 89
Registered: July 2009
Member
Hi Linda,
Thank you for your answer.
The Eclipse org.eclipse.ui.popupMenus extension point needs a class with
a run action (a class implementing IObjectActionDelegate interface). My
class EventBValidationProvider doesn't implement it.
Do you know how I could perform validation (calling my class
EventBValidationProdiver) in my run method ?

Regards,

Philippe

Linda Damus a écrit :
> Philippe,
>
> You could try using the Eclipse org.eclipse.ui.popupMenus extension
> point to contribute your action.
>
> Regards,
> Linda
>
> Philippe BLANC wrote:
>> Hi,
>> i would like to launch the GMF diagram validation from the edit popup
>> menu.
>> I think it is something like that:
>>
>> <extension
>> point=" org.eclipse.gmf.runtime.common.ui.services.action.contributi onItemProviders ">
>>
>> <contributionItemProvider
>> class=" com.clearsy.eventb.model.diagram.providers.EventBValidationP rovider ">
>>
>> <Priority name="Medium"/>
>> <popupContribution
>> id="org.eclipse.gmf.runtime.diagram.ui.DiagramEditorContextMenu ">
>> <popupCustom
>> id="Validate Diagram">
>> </popupCustom>
>> </popupContribution>
>> </contributionItemProvider>
>> </extension>
>>
>> But it doesn't work...
>> Can somebody help me please ?
>>
>> Thanks.
>>
>> Philippe
Previous Topic:Save As Exception
Next Topic:What's the matter with RenderedImageFactory.getInstance?
Goto Forum:
  


Current Time: Fri Apr 26 22:30:27 GMT 2024

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

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

Back to the top