Connection does not show on viewer once created [message #75978] |
Fri, 18 April 2003 10:43  |
Eclipse User |
|
|
|
Hi everyone,
I have two nodes that I connect with a Connection.
The ConnectionCommand is correctly created via the
getConnectionCreateCommand of the nodes EditPolicy.
When I click on the target Node, the ConnectionCommand is executed, the
Connection model is created, and event is fired, the Connection EditPart
is created and then... nothing. The createFigure of the Connection
EditPart is never called and the Connection does not display on the Viewer.
What did I miss?
Bruno
|
|
|
Re: Connection does not show on viewer once created [message #76005 is a reply to message #75978] |
Fri, 18 April 2003 11:05   |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
Here is the stack trace for the logic example.
Thread [main] (Suspended (breakpoint at line 85 in
AbstractConnectionEditPart))
WireEditPart(AbstractConnectionEditPart).activateFigure() line: 85
WireEditPart.activateFigure() line: 52
WireEditPart(AbstractConnectionEditPart).addNotify() line: 92
WireEditPart(AbstractConnectionEditPart).setParent(EditPart) line: 243
WireEditPart(AbstractConnectionEditPart).setSource(EditPart) line: 254
CircuitEditPart(AbstractGraphicalEditPart).addSourceConnecti on(ConnectionEdi
tPart, int) line: 209
CircuitEditPart(AbstractGraphicalEditPart).refreshSourceConn ections() line:
567
CircuitEditPart(LogicEditPart).propertyChange(PropertyChange Event) line:
175
PropertyChangeSupport.firePropertyChange(String, Object, Object) line: 252
Circuit(LogicElement).fireStructureChange(String, Object) line: 41
Circuit(LogicSubpart).connectOutput(Wire) line: 60
Wire.attachSource() line: 34
ConnectionCommand.execute() line: 45
CommandStack.execute(Command) line: 68
ConnectionCreationTool(AbstractTool).executeCurrentCommand() line: 311
are you calling refreshSourceConnections() at any placed?
"Bruno GRIEDER" <bgrieder@quadrem.com> wrote in message
news:b7p2ho$1v8$1@rogue.oti.com...
> Hi everyone,
>
> I have two nodes that I connect with a Connection.
>
> The ConnectionCommand is correctly created via the
> getConnectionCreateCommand of the nodes EditPolicy.
>
> When I click on the target Node, the ConnectionCommand is executed, the
> Connection model is created, and event is fired, the Connection EditPart
> is created and then... nothing. The createFigure of the Connection
> EditPart is never called and the Connection does not display on the
Viewer.
>
> What did I miss?
>
> Bruno
>
|
|
|
Re: Connection does not show on viewer once created [message #76069 is a reply to message #76005] |
Sat, 19 April 2003 06:22  |
Eclipse User |
|
|
|
Randy,
thanks. I was not using an instance of AbstractConnectionEditPart for my
connection and had not realized that the notification mechanism is
different from "standard graphical" EditParts
bg
Randy Hudson wrote:
> Here is the stack trace for the logic example.
>
> Thread [main] (Suspended (breakpoint at line 85 in
> AbstractConnectionEditPart))
> WireEditPart(AbstractConnectionEditPart).activateFigure() line: 85
> WireEditPart.activateFigure() line: 52
> WireEditPart(AbstractConnectionEditPart).addNotify() line: 92
> WireEditPart(AbstractConnectionEditPart).setParent(EditPart) line: 243
> WireEditPart(AbstractConnectionEditPart).setSource(EditPart) line: 254
>
> CircuitEditPart(AbstractGraphicalEditPart).addSourceConnecti on(ConnectionEdi
> tPart, int) line: 209
> CircuitEditPart(AbstractGraphicalEditPart).refreshSourceConn ections() line:
> 567
> CircuitEditPart(LogicEditPart).propertyChange(PropertyChange Event) line:
> 175
> PropertyChangeSupport.firePropertyChange(String, Object, Object) line: 252
> Circuit(LogicElement).fireStructureChange(String, Object) line: 41
> Circuit(LogicSubpart).connectOutput(Wire) line: 60
> Wire.attachSource() line: 34
> ConnectionCommand.execute() line: 45
> CommandStack.execute(Command) line: 68
> ConnectionCreationTool(AbstractTool).executeCurrentCommand() line: 311
>
> are you calling refreshSourceConnections() at any placed?
>
> "Bruno GRIEDER" <bgrieder@quadrem.com> wrote in message
> news:b7p2ho$1v8$1@rogue.oti.com...
>
>>Hi everyone,
>>
>>I have two nodes that I connect with a Connection.
>>
>>The ConnectionCommand is correctly created via the
>>getConnectionCreateCommand of the nodes EditPolicy.
>>
>>When I click on the target Node, the ConnectionCommand is executed, the
>>Connection model is created, and event is fired, the Connection EditPart
>>is created and then... nothing. The createFigure of the Connection
>>EditPart is never called and the Connection does not display on the
>
> Viewer.
>
>>What did I miss?
>>
>>Bruno
>>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02309 seconds