Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Sapphire » How To Use Context When Creating New Diagram Node
How To Use Context When Creating New Diagram Node [message #1709738] Wed, 30 September 2015 15:47 Go to next message
Justin Albright is currently offline Justin AlbrightFriend
Messages: 10
Registered: September 2015
Junior Member
I am attempting to open up a wizard when the user drags in a new node to my diagram page. I have created this action handler for my diagram page.

<action-handler>
    <action>Sapphire.Add</action>
    <impl>ocpi.ide.oas.internal.InstanceNodeActionHandler</impl>
    <id>NewInstanceNodeActionHandler</id>
    <condition>ocpi.ide.oas.internal.NewInstanceNodeActionCondition</condition>
    <context>Sapphire.Diagram.Node</context>
</action-handler>


When I drag in a new node to the diagram I am not getting the print message I have placed in the run function of the ActionHandler class I created.

Could you please offer some help as to how to properly get my action handler to run when I drag in a new node so that I may then pop up a wizard?

[Updated on: Wed, 30 September 2015 17:28]

Report message to a moderator

Re: How To Use Context When Creating New Diagram Node [message #1709753 is a reply to message #1709738] Wed, 30 September 2015 17:06 Go to previous message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
You are specifying the wrong context. You need to use Sapphire.Diagram.Editor instead. You also need to filter out the system-supplied add handlers.
Previous Topic:Creating custom connection bindings
Next Topic:Sapphire mac issues with help and calendar
Goto Forum:
  


Current Time: Thu Apr 18 00:27:25 GMT 2024

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

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

Back to the top