getTargetEditPart method [message #158138] |
Tue, 16 November 2004 12:52 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02645 seconds