Community
Participate
Working Groups
The class JavaEditor does an == check inside isActivePart(). This means that if the part is embedded inside another one then the check fails. Rather than this can it use .equals instead and dispatch this to the other part that can specialize accordingly, e.g. instead of the current method protected boolean isActivePart() { IWorkbenchWindow window= getSite().getWorkbenchWindow(); IPartService service= window.getPartService(); return (this == service.getActivePart()); } it could have the last line as return (service.getActivePart().equals(this));
Kai pls comment, this bug is on a fix wish list. To me it would be OK to consider for 2.1 but for 2.0.1 it is questionable.
This code change is no problem for us. However, just for the record, this is not a blessing of embedding the editor into another part. There might be more problems when doing this.
Change released to 2.0.1 and 2.1 stream.
verified in code (2.0.1 - 20020821)