[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.gef] Re: getTargetEditPart method
|
That would be convenient. Open a bugzilla. We would have to investigate the
effects on existing clients.
"Eugene Ostroukhov" <eostroukhov@xxxxxxxxxxx> wrote in message
news:cnct6m$sva$1@xxxxxxxxxxxxxxxxxx
> 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
>
>