Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » getTargetEditPart method
getTargetEditPart method [message #158138] Tue, 16 November 2004 12:52 Go to next message
Eclipse UserFriend
Originally posted by: eostroukhov.hotmail.com

Hello all.

Once again ours were spent debugging until it was discovered that the
problem was that the getTargetEditPart returns null. I'm constantly
forgetting to override this method - and not only I.
Maybe it would make sense to provide the default implementation like:
public EditPart getTargetEditPart(Request request) {
if (understandsRequest(request)) {
return getHost();
} else {
retrun null;
}
}

Are there any reasons it couldn't be done this way?

Eugene
Re: getTargetEditPart method [message #158170 is a reply to message #158138] Tue, 16 November 2004 21:26 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

That would be convenient. Open a bugzilla. We would have to investigate the
effects on existing clients.

"Eugene Ostroukhov" <eostroukhov@hotmail.com> wrote in message
news:cnct6m$sva$1@www.eclipse.org...
> Hello all.
>
> Once again ours were spent debugging until it was discovered that the
> problem was that the getTargetEditPart returns null. I'm constantly
> forgetting to override this method - and not only I.
> Maybe it would make sense to provide the default implementation like:
> public EditPart getTargetEditPart(Request request) {
> if (understandsRequest(request)) {
> return getHost();
> } else {
> retrun null;
> }
> }
>
> Are there any reasons it couldn't be done this way?
>
> Eugene
>
>
Previous Topic:Reacting on single-click
Next Topic:UI SWTException: Invalid thread access during a stack command
Goto Forum:
  


Current Time: Tue Apr 23 13:42:23 GMT 2024

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

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

Back to the top