Skip to main content



      Home
Home » Eclipse Projects » GEF » Connection does not show on viewer once created
Connection does not show on viewer once created [message #75978] Fri, 18 April 2003 10:43 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>>
>
>
>
Previous Topic:relation between tigris.org's GEF and eclipse's GEF?
Next Topic:Definitions
Goto Forum:
  


Current Time: Tue Jun 03 10:17:10 EDT 2025

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

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

Back to the top