Skip to main content



      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 10:15 Go to next message
Eclipse UserFriend
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 114 times)
Re: Validation Quick Fixes using external Java Actions [message #1768963 is a reply to message #1768872] Tue, 25 July 2017 04:46 Go to previous message
Eclipse UserFriend
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
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: Fri Jul 04 09:35:46 EDT 2025

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

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

Back to the top