Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Validation Quick Fixes using external Java Actions(Quick fixes working with Sirius 4.x are not with 5.x)
Validation Quick Fixes using external Java Actions [message #1768872] Mon, 24 July 2017 14:15 Go to next message
Loris Boiteux is currently offline Loris BoiteuxFriend
Messages: 1
Registered: July 2017
Junior Member
Hi everyone,

We are willing to migrate our Eclipse Neon & Sirius 4.1.2 based application to Sirius 5.0.1 & Eclipse Oxygen.
The only problem we face for now is that a simple Quick Fix using external Java Action is not working anymore. You can see the definition of this feature in the attachment (quickFix.png).

The called service is properly provided as a java action to Sirius extension point:
<extension point="org.eclipse.sirius.externalJavaAction">
    <javaActions  actionClass="thales.thav.dsi.em.common.project.AutoSetAttribute"
            id="thales.thav.dsi.em.common.project.autoSetAttribute">
    </javaActions>
...
</extension>


The service code extends org.eclipse.sirius.business.api.action.AbstractExternalJavaAction and overrides both execute and canExecute methods which are not reached in debug mode.


We are running out of ideas after few hours of research and tests.

Does anyone face the same problem or knows how to fix... the fix ? ;)

Best regards,

Loris
  • Attachment: quickFix.png
    (Size: 42.64KB, Downloaded 61 times)
Re: Validation Quick Fixes using external Java Actions [message #1768963 is a reply to message #1768872] Tue, 25 July 2017 08:46 Go to previous message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 470
Registered: May 2011
Senior Member
Hello,

The external java action mechanism has not been changed recently. The one in the org.eclipse.sirius.sample.ecore.design still works fine, both execute and canExecute methods are reached in debug.

Do you have an exception somewhere? Does your VSM validates? Do you have your metamodel added to the "Selected Metamodels" on you diagram description (tab metamodels)?

Regards,
Steve


Steve Monnier - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:I want to get mouse event information (Mouse down/Up).
Next Topic:Deleting the root element from a child representation corrupts the session
Goto Forum:
  


Current Time: Sun Mar 29 06:56:46 GMT 2020

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

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

Back to the top