[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.gef] getTargetEditPart method
|
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