please help me!!! How to add serval connection creation tools? [message #97384] |
Mon, 06 October 2003 05:34 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.02924 seconds