Home » Modeling » Epsilon » epsilon.common.dt.tool extension for UMLCreateShortcutAction
| | |
Re: epsilon.common.dt.tool extension for UMLCreateShortcutAction [message #5260 is a reply to message #5192] |
Tue, 25 November 2008 15:48 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Dimitrios Kolovos![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=dskolovos%40gmail.com) Messages: 1776 Registered: July 2009 |
Senior Member |
|
|
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 20:36 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Nicolas Rouquette![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=nicolas.rouquette%40jpl.nasa.gov) Messages: 157 Registered: July 2009 |
Senior Member |
|
|
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 21:08 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Nicolas Rouquette![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=nicolas.rouquette%40jpl.nasa.gov) Messages: 157 Registered: July 2009 |
Senior Member |
|
|
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 #562427 is a reply to message #5192] |
Tue, 25 November 2008 15:48 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Dimitrios Kolovos![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=dskolovos%40gmail.com) Messages: 1776 Registered: July 2009 |
Senior Member |
|
|
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 20:36 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Nicolas Rouquette![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=nicolas.rouquette%40jpl.nasa.gov) Messages: 157 Registered: July 2009 |
Senior Member |
|
|
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 21:08 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Nicolas Rouquette![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=nicolas.rouquette%40jpl.nasa.gov) Messages: 157 Registered: July 2009 |
Senior Member |
|
|
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.
|
|
|
Goto Forum:
Current Time: Sun Sep 01 09:52:50 GMT 2024
Powered by FUDForum. Page generated in 0.04564 seconds
|