Skip to main content



      Home
Home » Modeling » Epsilon » epsilon.common.dt.tool extension for UMLCreateShortcutAction
epsilon.common.dt.tool extension for UMLCreateShortcutAction [message #4984] Tue, 25 November 2008 02:27 Go to next message
Eclipse UserFriend
Can anyone please tell me how I could invoke from an EWL file the
org.eclipse.uml2.diagram.clazz.part.UMLCreateShortcutAction command?

This class is defined as an org.eclipse.core.commands.AbstractHandler
and defines a public method:

public Object execute(ExecutionEvent event) throws ExecutionException { ...
}

I don't know how to construct an
org.eclipse.core.commands.ExecutionEvent from the IGraphicalEditPart
'self' variable of the wizard.



Suggestions?

-- Nicolas.
Re: epsilon.common.dt.tool extension for UMLCreateShortcutAction [message #5122 is a reply to message #4984] Tue, 25 November 2008 04:43 Go to previous messageGo to next message
Eclipse UserFriend
Hi Nicolas,

Which version of the UML2Tools are you using? In my 0.8.0,
UMLCreateShortcutAction implements IObjectActionDelegate and doesn't
seem to be defining an execute(ExecutionEvent event) method.

Cheers,
Dimitris

Nicolas Rouquette wrote:
> Can anyone please tell me how I could invoke from an EWL file the
> org.eclipse.uml2.diagram.clazz.part.UMLCreateShortcutAction command?
>
> This class is defined as an org.eclipse.core.commands.AbstractHandler
> and defines a public method:
>
> public Object execute(ExecutionEvent event) throws ExecutionException { ...
> }
>
> I don't know how to construct an
> org.eclipse.core.commands.ExecutionEvent from the IGraphicalEditPart
> 'self' variable of the wizard.
>
>
>
> Suggestions?
>
> -- Nicolas.
Re: epsilon.common.dt.tool extension for UMLCreateShortcutAction [message #5192 is a reply to message #5122] Tue, 25 November 2008 10:01 Go to previous messageGo to next message
Eclipse UserFriend
Hi Dimitrios,

I'm using the 3.5 M3 version of Eclipse, EMF/UML/UML2Tools.
The UML2Tools APIs changed from 3.4 to 3.5M3 but Epsilon compiles &
seems to run OK.

The only changes I had to make were:

org.eclipse.epsilon.dt.exeed.modelink.ModeLinkEditor.activat eEditor(IEditorPart)
=> changed from protected to public

org.eclipse.epsilon.ewl.emf.WizardsExtensionPreferenceDialog
=> this just doesn't work as intended.
i.e., I when I click on the Add.. button, I have a simple TitleDialog
but nothing else to select a namespace / *.ewl file.
When I click on the Edit... button, I get the same title dialog.
No capability to edit the namespace/*.ewl file.


-- Nicolas.

Dimitrios Kolovos wrote:
> Hi Nicolas,
>
> Which version of the UML2Tools are you using? In my 0.8.0,
> UMLCreateShortcutAction implements IObjectActionDelegate and doesn't
> seem to be defining an execute(ExecutionEvent event) method.
>
> Cheers,
> Dimitris
>
> Nicolas Rouquette wrote:
>> Can anyone please tell me how I could invoke from an EWL file the
>> org.eclipse.uml2.diagram.clazz.part.UMLCreateShortcutAction command?
>>
>> This class is defined as an org.eclipse.core.commands.AbstractHandler
>> and defines a public method:
>>
>> public Object execute(ExecutionEvent event) throws ExecutionException
>> { ...
>> }
>>
>> I don't know how to construct an
>> org.eclipse.core.commands.ExecutionEvent from the IGraphicalEditPart
>> 'self' variable of the wizard.
>>
>>
>>
>> Suggestions?
>>
>> -- Nicolas.
Re: epsilon.common.dt.tool extension for UMLCreateShortcutAction [message #5260 is a reply to message #5192] Tue, 25 November 2008 10:48 Go to previous messageGo to next message
Eclipse UserFriend
Hi Nicolas,

Thanks for the feedback!

It may be something that has been fixed/broken in 3.5. I'll have to
setup 3.5 myself in order to investigate more (which may take a couple
of days). Could you please file a bug so that we can keep track of this?

In the mean time, you could use EWL by contributing an extension to the
org.eclipse.epsilon.ewl.emf.wizards extension point and starting a new
runtime workbench.

Cheers,
Dimitrios

Nicolas Rouquette wrote:
> Hi Dimitrios,
>
> I'm using the 3.5 M3 version of Eclipse, EMF/UML/UML2Tools.
> The UML2Tools APIs changed from 3.4 to 3.5M3 but Epsilon compiles &
> seems to run OK.
>
> The only changes I had to make were:
>
> org.eclipse.epsilon.dt.exeed.modelink.ModeLinkEditor.activat eEditor(IEditorPart)
>
> => changed from protected to public
>
> org.eclipse.epsilon.ewl.emf.WizardsExtensionPreferenceDialog
> => this just doesn't work as intended.
> i.e., I when I click on the Add.. button, I have a simple TitleDialog
> but nothing else to select a namespace / *.ewl file.
> When I click on the Edit... button, I get the same title dialog.
> No capability to edit the namespace/*.ewl file.
>
>
> -- Nicolas.
>
> Dimitrios Kolovos wrote:
>> Hi Nicolas,
>>
>> Which version of the UML2Tools are you using? In my 0.8.0,
>> UMLCreateShortcutAction implements IObjectActionDelegate and doesn't
>> seem to be defining an execute(ExecutionEvent event) method.
>>
>> Cheers,
>> Dimitris
>>
>> Nicolas Rouquette wrote:
>>> Can anyone please tell me how I could invoke from an EWL file the
>>> org.eclipse.uml2.diagram.clazz.part.UMLCreateShortcutAction command?
>>>
>>> This class is defined as an org.eclipse.core.commands.AbstractHandler
>>> and defines a public method:
>>>
>>> public Object execute(ExecutionEvent event) throws ExecutionException
>>> { ...
>>> }
>>>
>>> I don't know how to construct an
>>> org.eclipse.core.commands.ExecutionEvent from the IGraphicalEditPart
>>> 'self' variable of the wizard.
>>>
>>>
>>>
>>> Suggestions?
>>>
>>> -- Nicolas.
Re: epsilon.common.dt.tool extension for UMLCreateShortcutAction [message #5380 is a reply to message #5260] Tue, 25 November 2008 15:36 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I've solved the problem with a patch to the UMLCreateShortcutAction that
exposes the reusable functionality for creating the shortcut as a static
method that we can invoke from an Epsilon wizard.

See bug 256496

-- Nicolas.

Dimitrios Kolovos wrote:
> Hi Nicolas,
>
> Thanks for the feedback!
>
> It may be something that has been fixed/broken in 3.5. I'll have to
> setup 3.5 myself in order to investigate more (which may take a couple
> of days). Could you please file a bug so that we can keep track of this?
>
> In the mean time, you could use EWL by contributing an extension to the
> org.eclipse.epsilon.ewl.emf.wizards extension point and starting a new
> runtime workbench.
>
> Cheers,
> Dimitrios
>
> Nicolas Rouquette wrote:
>> Hi Dimitrios,
>>
>> I'm using the 3.5 M3 version of Eclipse, EMF/UML/UML2Tools.
>> The UML2Tools APIs changed from 3.4 to 3.5M3 but Epsilon compiles &
>> seems to run OK.
>>
>> The only changes I had to make were:
>>
>> org.eclipse.epsilon.dt.exeed.modelink.ModeLinkEditor.activat eEditor(IEditorPart)
>>
>> => changed from protected to public
>>
>> org.eclipse.epsilon.ewl.emf.WizardsExtensionPreferenceDialog
>> => this just doesn't work as intended.
>> i.e., I when I click on the Add.. button, I have a simple TitleDialog
>> but nothing else to select a namespace / *.ewl file.
>> When I click on the Edit... button, I get the same title dialog.
>> No capability to edit the namespace/*.ewl file.
>>
>>
>> -- Nicolas.
>>
>> Dimitrios Kolovos wrote:
>>> Hi Nicolas,
>>>
>>> Which version of the UML2Tools are you using? In my 0.8.0,
>>> UMLCreateShortcutAction implements IObjectActionDelegate and doesn't
>>> seem to be defining an execute(ExecutionEvent event) method.
>>>
>>> Cheers,
>>> Dimitris
>>>
>>> Nicolas Rouquette wrote:
>>>> Can anyone please tell me how I could invoke from an EWL file the
>>>> org.eclipse.uml2.diagram.clazz.part.UMLCreateShortcutAction command?
>>>>
>>>> This class is defined as an
>>>> org.eclipse.core.commands.AbstractHandler and defines a public method:
>>>>
>>>> public Object execute(ExecutionEvent event) throws
>>>> ExecutionException { ...
>>>> }
>>>>
>>>> I don't know how to construct an
>>>> org.eclipse.core.commands.ExecutionEvent from the IGraphicalEditPart
>>>> 'self' variable of the wizard.
>>>>
>>>>
>>>>
>>>> Suggestions?
>>>>
>>>> -- Nicolas.
Re: epsilon.common.dt.tool extension for UMLCreateShortcutAction [message #5657 is a reply to message #5380] Tue, 25 November 2008 16:08 Go to previous message
Eclipse UserFriend
For details how to do this, see:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=256500

-- Nicolas.

Nicolas Rouquette wrote:
> Hi,
>
> I've solved the problem with a patch to the UMLCreateShortcutAction that
> exposes the reusable functionality for creating the shortcut as a static
> method that we can invoke from an Epsilon wizard.
>
> See bug 256496
>
> -- Nicolas.
>
> Dimitrios Kolovos wrote:
>> Hi Nicolas,
>>
>> Thanks for the feedback!
>>
>> It may be something that has been fixed/broken in 3.5. I'll have to
>> setup 3.5 myself in order to investigate more (which may take a couple
>> of days). Could you please file a bug so that we can keep track of this?
>>
>> In the mean time, you could use EWL by contributing an extension to
>> the org.eclipse.epsilon.ewl.emf.wizards extension point and starting a
>> new runtime workbench.
>>
>> Cheers,
>> Dimitrios
>>
>> Nicolas Rouquette wrote:
>>> Hi Dimitrios,
>>>
>>> I'm using the 3.5 M3 version of Eclipse, EMF/UML/UML2Tools.
>>> The UML2Tools APIs changed from 3.4 to 3.5M3 but Epsilon compiles &
>>> seems to run OK.
>>>
>>> The only changes I had to make were:
>>>
>>> org.eclipse.epsilon.dt.exeed.modelink.ModeLinkEditor.activat eEditor(IEditorPart)
>>>
>>> => changed from protected to public
>>>
>>> org.eclipse.epsilon.ewl.emf.WizardsExtensionPreferenceDialog
>>> => this just doesn't work as intended.
>>> i.e., I when I click on the Add.. button, I have a simple TitleDialog
>>> but nothing else to select a namespace / *.ewl file.
>>> When I click on the Edit... button, I get the same title dialog.
>>> No capability to edit the namespace/*.ewl file.
>>>
>>>
>>> -- Nicolas.
>>>
>>> Dimitrios Kolovos wrote:
>>>> Hi Nicolas,
>>>>
>>>> Which version of the UML2Tools are you using? In my 0.8.0,
>>>> UMLCreateShortcutAction implements IObjectActionDelegate and doesn't
>>>> seem to be defining an execute(ExecutionEvent event) method.
>>>>
>>>> Cheers,
>>>> Dimitris
>>>>
>>>> Nicolas Rouquette wrote:
>>>>> Can anyone please tell me how I could invoke from an EWL file the
>>>>> org.eclipse.uml2.diagram.clazz.part.UMLCreateShortcutAction command?
>>>>>
>>>>> This class is defined as an
>>>>> org.eclipse.core.commands.AbstractHandler and defines a public method:
>>>>>
>>>>> public Object execute(ExecutionEvent event) throws
>>>>> ExecutionException { ...
>>>>> }
>>>>>
>>>>> I don't know how to construct an
>>>>> org.eclipse.core.commands.ExecutionEvent from the
>>>>> IGraphicalEditPart 'self' variable of the wizard.
>>>>>
>>>>>
>>>>>
>>>>> Suggestions?
>>>>>
>>>>> -- Nicolas.
Re: epsilon.common.dt.tool extension for UMLCreateShortcutAction [message #562380 is a reply to message #4984] Tue, 25 November 2008 04:43 Go to previous message
Eclipse UserFriend
Hi Nicolas,

Which version of the UML2Tools are you using? In my 0.8.0,
UMLCreateShortcutAction implements IObjectActionDelegate and doesn't
seem to be defining an execute(ExecutionEvent event) method.

Cheers,
Dimitris

Nicolas Rouquette wrote:
> Can anyone please tell me how I could invoke from an EWL file the
> org.eclipse.uml2.diagram.clazz.part.UMLCreateShortcutAction command?
>
> This class is defined as an org.eclipse.core.commands.AbstractHandler
> and defines a public method:
>
> public Object execute(ExecutionEvent event) throws ExecutionException { ...
> }
>
> I don't know how to construct an
> org.eclipse.core.commands.ExecutionEvent from the IGraphicalEditPart
> 'self' variable of the wizard.
>
>
>
> Suggestions?
>
> -- Nicolas.
Re: epsilon.common.dt.tool extension for UMLCreateShortcutAction [message #562404 is a reply to message #5122] Tue, 25 November 2008 10:01 Go to previous message
Eclipse UserFriend
Hi Dimitrios,

I'm using the 3.5 M3 version of Eclipse, EMF/UML/UML2Tools.
The UML2Tools APIs changed from 3.4 to 3.5M3 but Epsilon compiles &
seems to run OK.

The only changes I had to make were:

org.eclipse.epsilon.dt.exeed.modelink.ModeLinkEditor.activat eEditor(IEditorPart)
=> changed from protected to public

org.eclipse.epsilon.ewl.emf.WizardsExtensionPreferenceDialog
=> this just doesn't work as intended.
i.e., I when I click on the Add.. button, I have a simple TitleDialog
but nothing else to select a namespace / *.ewl file.
When I click on the Edit... button, I get the same title dialog.
No capability to edit the namespace/*.ewl file.


-- Nicolas.

Dimitrios Kolovos wrote:
> Hi Nicolas,
>
> Which version of the UML2Tools are you using? In my 0.8.0,
> UMLCreateShortcutAction implements IObjectActionDelegate and doesn't
> seem to be defining an execute(ExecutionEvent event) method.
>
> Cheers,
> Dimitris
>
> Nicolas Rouquette wrote:
>> Can anyone please tell me how I could invoke from an EWL file the
>> org.eclipse.uml2.diagram.clazz.part.UMLCreateShortcutAction command?
>>
>> This class is defined as an org.eclipse.core.commands.AbstractHandler
>> and defines a public method:
>>
>> public Object execute(ExecutionEvent event) throws ExecutionException
>> { ...
>> }
>>
>> I don't know how to construct an
>> org.eclipse.core.commands.ExecutionEvent from the IGraphicalEditPart
>> 'self' variable of the wizard.
>>
>>
>>
>> Suggestions?
>>
>> -- Nicolas.
Re: epsilon.common.dt.tool extension for UMLCreateShortcutAction [message #562427 is a reply to message #5192] Tue, 25 November 2008 10:48 Go to previous message
Eclipse UserFriend
Hi Nicolas,

Thanks for the feedback!

It may be something that has been fixed/broken in 3.5. I'll have to
setup 3.5 myself in order to investigate more (which may take a couple
of days). Could you please file a bug so that we can keep track of this?

In the mean time, you could use EWL by contributing an extension to the
org.eclipse.epsilon.ewl.emf.wizards extension point and starting a new
runtime workbench.

Cheers,
Dimitrios

Nicolas Rouquette wrote:
> Hi Dimitrios,
>
> I'm using the 3.5 M3 version of Eclipse, EMF/UML/UML2Tools.
> The UML2Tools APIs changed from 3.4 to 3.5M3 but Epsilon compiles &
> seems to run OK.
>
> The only changes I had to make were:
>
> org.eclipse.epsilon.dt.exeed.modelink.ModeLinkEditor.activat eEditor(IEditorPart)
>
> => changed from protected to public
>
> org.eclipse.epsilon.ewl.emf.WizardsExtensionPreferenceDialog
> => this just doesn't work as intended.
> i.e., I when I click on the Add.. button, I have a simple TitleDialog
> but nothing else to select a namespace / *.ewl file.
> When I click on the Edit... button, I get the same title dialog.
> No capability to edit the namespace/*.ewl file.
>
>
> -- Nicolas.
>
> Dimitrios Kolovos wrote:
>> Hi Nicolas,
>>
>> Which version of the UML2Tools are you using? In my 0.8.0,
>> UMLCreateShortcutAction implements IObjectActionDelegate and doesn't
>> seem to be defining an execute(ExecutionEvent event) method.
>>
>> Cheers,
>> Dimitris
>>
>> Nicolas Rouquette wrote:
>>> Can anyone please tell me how I could invoke from an EWL file the
>>> org.eclipse.uml2.diagram.clazz.part.UMLCreateShortcutAction command?
>>>
>>> This class is defined as an org.eclipse.core.commands.AbstractHandler
>>> and defines a public method:
>>>
>>> public Object execute(ExecutionEvent event) throws ExecutionException
>>> { ...
>>> }
>>>
>>> I don't know how to construct an
>>> org.eclipse.core.commands.ExecutionEvent from the IGraphicalEditPart
>>> 'self' variable of the wizard.
>>>
>>>
>>>
>>> Suggestions?
>>>
>>> -- Nicolas.
Re: epsilon.common.dt.tool extension for UMLCreateShortcutAction [message #562466 is a reply to message #5260] Tue, 25 November 2008 15:36 Go to previous message
Eclipse UserFriend
Hi,

I've solved the problem with a patch to the UMLCreateShortcutAction that
exposes the reusable functionality for creating the shortcut as a static
method that we can invoke from an Epsilon wizard.

See bug 256496

-- Nicolas.

Dimitrios Kolovos wrote:
> Hi Nicolas,
>
> Thanks for the feedback!
>
> It may be something that has been fixed/broken in 3.5. I'll have to
> setup 3.5 myself in order to investigate more (which may take a couple
> of days). Could you please file a bug so that we can keep track of this?
>
> In the mean time, you could use EWL by contributing an extension to the
> org.eclipse.epsilon.ewl.emf.wizards extension point and starting a new
> runtime workbench.
>
> Cheers,
> Dimitrios
>
> Nicolas Rouquette wrote:
>> Hi Dimitrios,
>>
>> I'm using the 3.5 M3 version of Eclipse, EMF/UML/UML2Tools.
>> The UML2Tools APIs changed from 3.4 to 3.5M3 but Epsilon compiles &
>> seems to run OK.
>>
>> The only changes I had to make were:
>>
>> org.eclipse.epsilon.dt.exeed.modelink.ModeLinkEditor.activat eEditor(IEditorPart)
>>
>> => changed from protected to public
>>
>> org.eclipse.epsilon.ewl.emf.WizardsExtensionPreferenceDialog
>> => this just doesn't work as intended.
>> i.e., I when I click on the Add.. button, I have a simple TitleDialog
>> but nothing else to select a namespace / *.ewl file.
>> When I click on the Edit... button, I get the same title dialog.
>> No capability to edit the namespace/*.ewl file.
>>
>>
>> -- Nicolas.
>>
>> Dimitrios Kolovos wrote:
>>> Hi Nicolas,
>>>
>>> Which version of the UML2Tools are you using? In my 0.8.0,
>>> UMLCreateShortcutAction implements IObjectActionDelegate and doesn't
>>> seem to be defining an execute(ExecutionEvent event) method.
>>>
>>> Cheers,
>>> Dimitris
>>>
>>> Nicolas Rouquette wrote:
>>>> Can anyone please tell me how I could invoke from an EWL file the
>>>> org.eclipse.uml2.diagram.clazz.part.UMLCreateShortcutAction command?
>>>>
>>>> This class is defined as an
>>>> org.eclipse.core.commands.AbstractHandler and defines a public method:
>>>>
>>>> public Object execute(ExecutionEvent event) throws
>>>> ExecutionException { ...
>>>> }
>>>>
>>>> I don't know how to construct an
>>>> org.eclipse.core.commands.ExecutionEvent from the IGraphicalEditPart
>>>> 'self' variable of the wizard.
>>>>
>>>>
>>>>
>>>> Suggestions?
>>>>
>>>> -- Nicolas.
Re: epsilon.common.dt.tool extension for UMLCreateShortcutAction [message #562493 is a reply to message #5380] Tue, 25 November 2008 16:08 Go to previous message
Eclipse UserFriend
For details how to do this, see:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=256500

-- Nicolas.

Nicolas Rouquette wrote:
> Hi,
>
> I've solved the problem with a patch to the UMLCreateShortcutAction that
> exposes the reusable functionality for creating the shortcut as a static
> method that we can invoke from an Epsilon wizard.
>
> See bug 256496
>
> -- Nicolas.
>
> Dimitrios Kolovos wrote:
>> Hi Nicolas,
>>
>> Thanks for the feedback!
>>
>> It may be something that has been fixed/broken in 3.5. I'll have to
>> setup 3.5 myself in order to investigate more (which may take a couple
>> of days). Could you please file a bug so that we can keep track of this?
>>
>> In the mean time, you could use EWL by contributing an extension to
>> the org.eclipse.epsilon.ewl.emf.wizards extension point and starting a
>> new runtime workbench.
>>
>> Cheers,
>> Dimitrios
>>
>> Nicolas Rouquette wrote:
>>> Hi Dimitrios,
>>>
>>> I'm using the 3.5 M3 version of Eclipse, EMF/UML/UML2Tools.
>>> The UML2Tools APIs changed from 3.4 to 3.5M3 but Epsilon compiles &
>>> seems to run OK.
>>>
>>> The only changes I had to make were:
>>>
>>> org.eclipse.epsilon.dt.exeed.modelink.ModeLinkEditor.activat eEditor(IEditorPart)
>>>
>>> => changed from protected to public
>>>
>>> org.eclipse.epsilon.ewl.emf.WizardsExtensionPreferenceDialog
>>> => this just doesn't work as intended.
>>> i.e., I when I click on the Add.. button, I have a simple TitleDialog
>>> but nothing else to select a namespace / *.ewl file.
>>> When I click on the Edit... button, I get the same title dialog.
>>> No capability to edit the namespace/*.ewl file.
>>>
>>>
>>> -- Nicolas.
>>>
>>> Dimitrios Kolovos wrote:
>>>> Hi Nicolas,
>>>>
>>>> Which version of the UML2Tools are you using? In my 0.8.0,
>>>> UMLCreateShortcutAction implements IObjectActionDelegate and doesn't
>>>> seem to be defining an execute(ExecutionEvent event) method.
>>>>
>>>> Cheers,
>>>> Dimitris
>>>>
>>>> Nicolas Rouquette wrote:
>>>>> Can anyone please tell me how I could invoke from an EWL file the
>>>>> org.eclipse.uml2.diagram.clazz.part.UMLCreateShortcutAction command?
>>>>>
>>>>> This class is defined as an
>>>>> org.eclipse.core.commands.AbstractHandler and defines a public method:
>>>>>
>>>>> public Object execute(ExecutionEvent event) throws
>>>>> ExecutionException { ...
>>>>> }
>>>>>
>>>>> I don't know how to construct an
>>>>> org.eclipse.core.commands.ExecutionEvent from the
>>>>> IGraphicalEditPart 'self' variable of the wizard.
>>>>>
>>>>>
>>>>>
>>>>> Suggestions?
>>>>>
>>>>> -- Nicolas.
Previous Topic:epsilon.common.dt.tool extension for UMLCreateShortcutAction
Next Topic:org.eclipse.epsilon.ewl.emf.WizardsExtensionPreferenceDialog
Goto Forum:
  


Current Time: Fri Mar 14 01:17:38 EDT 2025

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

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

Back to the top