Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » external java action(call an external Java action)
external java action [message #1759887] Wed, 19 April 2017 06:50 Go to next message
sarah sh is currently offline sarah shFriend
Messages: 32
Registered: March 2017
Member
Hello,

I want to use an external java call.
I added an extension "org.eclipse.sirius.tools.api.ui.IExternalJavaAction."

I added a class that implements IExternalJavaAction and defined methodes.

But when I added in my odesign file an external java call, I can't call any one.

Can you help me

Thank you
Re: external java action [message #1759892 is a reply to message #1759887] Wed, 19 April 2017 15:15 Go to previous message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior Member
Hi Sarah,

From your description, it seems you want to use Java Services and not IExternalJavaActions.
See [1] for documentation on java services, you can also find an example in the advanced tutorial [2]

If you really want to use the IExternalJavaAction( as model operation in an other tool or as popup menu), please look at [3] and [4] but note that you will need to launch a runtime to be able to execute them.

Regards,

Maxime

[1] https://www.eclipse.org/sirius/doc/specifier/general/Writing_Queries.html#service_methods
[2] https://wiki.eclipse.org/Sirius/Tutorials/AdvancedTutorial#Java_Services
[3] https://www.eclipse.org/sirius/doc/specifier/general/Model_Operations.html#external_java_action
[4] https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#tools
Previous Topic:Edges between Nodes inside a Container
Next Topic:add listener to an element
Goto Forum:
  


Current Time: Thu Mar 28 20:54:28 GMT 2024

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

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

Back to the top