Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » ConnectionDragCreationTool and eraseSourceFeedback()
ConnectionDragCreationTool and eraseSourceFeedback() [message #187776] Fri, 15 July 2005 15:09 Go to next message
Matt is currently offline MattFriend
Messages: 40
Registered: July 2009
Member
Hi,

I'm using a ConnectionDragCreationTool and everything works fine up to
eraseCreationFeedback(). The removeFeedback(connectionFeedback) method
gives me an 'Unhandled event loop exception' because of a
java.lang.NullPointerException.

FWIW, I'm using a ScrollingGraphicalViewer and a
ScalableFreeformRootEditPart. My top-level figure is a FreeformLayer and
its LayerManager is a FreeformLayout. Also, I changed the feedback layer
to SCALED_FEEDBACK_LAYER and both the layer and the connectionFeedback are
non-null.

Any help would be appreciated. Thanks.

Matt
Re: ConnectionDragCreationTool and eraseSourceFeedback() [message #187792 is a reply to message #187776] Fri, 15 July 2005 15:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.unknown.com

In GEF 3.1? Stack trace?

"mscar" <mattscar@yahoo.com> wrote in message
news:4efd15387931a9d1b116d3f0b8461fb6$1@www.eclipse.org...
> Hi,
>
> I'm using a ConnectionDragCreationTool and everything works fine up to
> eraseCreationFeedback(). The removeFeedback(connectionFeedback) method
> gives me an 'Unhandled event loop exception' because of a
> java.lang.NullPointerException.
>
> FWIW, I'm using a ScrollingGraphicalViewer and a
> ScalableFreeformRootEditPart. My top-level figure is a FreeformLayer and
> its LayerManager is a FreeformLayout. Also, I changed the feedback layer
> to SCALED_FEEDBACK_LAYER and both the layer and the connectionFeedback are
> non-null.
>
> Any help would be appreciated. Thanks.
>
> Matt
>
Re: ConnectionDragCreationTool and eraseSourceFeedback() [message #187823 is a reply to message #187792] Fri, 15 July 2005 15:49 Go to previous messageGo to next message
Matt is currently offline MattFriend
Messages: 40
Registered: July 2009
Member
Pratik,

Yes, I'm using 3.1. I'm running this as an Eclipse application (RCP), so
nothing shows up on the error log. I've tried debugging as an
application, but execution doesn't halt at breakpoints or exceptions.

I'm using a GraphicalEditorWithPalette instead of a
GraphicalEditorWithFlyoutPalette. Could that be part of the problem?

Thanks.
Re: ConnectionDragCreationTool and eraseSourceFeedback() [message #187831 is a reply to message #187823] Fri, 15 July 2005 16:07 Go to previous message
Matt is currently offline MattFriend
Messages: 40
Registered: July 2009
Member
Ahem, I got the stack trace and it looks like I have something wrong with
my custom ConnectionAnchor and its removeAnchorListener() method. Sorry
'bout that.
Previous Topic:updating state-dependent figure
Next Topic:A question.
Goto Forum:
  


Current Time: Tue Dec 10 16:07:14 GMT 2024

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

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

Back to the top