Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Define Java services when the selected node
Define Java services when the selected node [message #1767073] Fri, 30 June 2017 11:59 Go to next message
Martin Jedlicka is currently offline Martin JedlickaFriend
Messages: 122
Registered: January 2016
Senior Member
Hi,

I need to do some action (Java services) when selected a node.

How do I define Java services when the selected node in VSM?

Thanks.

Martin
Re: Define Java services when the selected node [message #1767173 is a reply to message #1767073] Mon, 03 July 2017 07:46 Go to previous messageGo to next message
Martin Jedlicka is currently offline Martin JedlickaFriend
Messages: 122
Registered: January 2016
Senior Member
Hi,

any idea how call java services when selected node?

Thanks.

Martin
Re: Define Java services when the selected node [message #1767199 is a reply to message #1767173] Mon, 03 July 2017 13:44 Go to previous messageGo to next message
Florian Barbin is currently offline Florian BarbinFriend
Messages: 253
Registered: August 2010
Senior Member
Hello,

You mean by applying a tool on a node ? Sirius doesn't allow to execute tools on a simple selection. You can use the double click tool.

Regards,

Florian
Re: Define Java services when the selected node [message #1767237 is a reply to message #1767199] Tue, 04 July 2017 05:24 Go to previous messageGo to next message
Martin Jedlicka is currently offline Martin JedlickaFriend
Messages: 122
Registered: January 2016
Senior Member
Hi Florian,

Thanks. I need to call an action when a node selected. Either the definition in VSM or some implementation. I understand that in VSM it is not possible (just double click), but another way?

Martin
Re: Define Java services when the selected node [message #1767443 is a reply to message #1767237] Thu, 06 July 2017 07:51 Go to previous message
Florian Barbin is currently offline Florian BarbinFriend
Messages: 253
Registered: August 2010
Senior Member
Sirius does not provide API for that. You can take a look in GEF (the framework with GMF on which Sirius rely on) how SWT events are handled (http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.gef.doc.isv%2Fguide%2Fguide.html). The mehod org.eclipse.gef.tools.SelectionTool.mouseDown(MouseEvent, EditPartViewer) is a good entry point.

Regards,

Florian
Previous Topic:Rotate (re-layout) the diagram to 90 degrees.
Next Topic:Runtime no longer opens .odesigns from newer specification version
Goto Forum:
  


Current Time: Sun Jan 24 06:21:39 GMT 2021

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

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

Back to the top