Skip to main content



      Home
Home » Eclipse Projects » GEF » please help me!!! How to add serval connection creation tools?
please help me!!! How to add serval connection creation tools? [message #97384] Mon, 06 October 2003 05:34
Eclipse UserFriend
Originally posted by: hskim.miracom.co.kr

Hi,
Could you please tell me how can I add multiple connection creation tools so
that user can draw different type of connection?

In the logic editor example, it does this to create 1 connection tool:
tool = new DefaultPaletteToolEntry(

new ConnectionCreationTool(),

LogicMessages.LogicPlugin_Tool_ConnectionCreationTool_Connec tionCreationTool
_Label,

LogicMessages.LogicPlugin_Tool_ConnectionCreationTool_Connec tionCreationTool
_Description,

....);

My question is how can I add another one (with different connection type)?
The code above does not take the Wire.class as its factory (unlike
components). And the Wire object is created in getConnectionCreateCommand()
method of the LogicNodeEditPolicy class. If I want multiple connection (e.g
solid line, dash line), how does the LogicNodeEditPolicy knows which
connection to create?

Thank you.
Previous Topic:Editor dimensions and center point
Next Topic:Anchor on a Connection
Goto Forum:
  


Current Time: Thu Jul 03 14:56:25 EDT 2025

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

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

Back to the top