View | Details | Raw Unified | Return to bug 96129 | Differences between
and this patch

Collapse All | Expand All

(-)Eclipse UI/org/eclipse/ui/internal/PartList.java (-1 / +7 lines)
Lines 17-22 Link Here
17
import org.eclipse.ui.IWorkbenchPart;
17
import org.eclipse.ui.IWorkbenchPart;
18
import org.eclipse.ui.IWorkbenchPartConstants;
18
import org.eclipse.ui.IWorkbenchPartConstants;
19
import org.eclipse.ui.IWorkbenchPartReference;
19
import org.eclipse.ui.IWorkbenchPartReference;
20
import org.eclipse.ui.part.MultiEditor;
20
21
21
public abstract class PartList {
22
public abstract class PartList {
22
    private IWorkbenchPartReference activePartReference;
23
    private IWorkbenchPartReference activePartReference;
Lines 61-67 Link Here
61
    }
62
    }
62
    
63
    
63
    public IWorkbenchPart getActivePart() {
64
    public IWorkbenchPart getActivePart() {
64
        return activePartReference == null ? null : activePartReference.getPart(false);
65
    		IWorkbenchPart part = activePartReference == null ? null
66
				: activePartReference.getPart(false);
67
		if (part instanceof MultiEditor) {
68
			part = ((MultiEditor) part).getActiveEditor();
69
		}
70
		return part;
65
    }
71
    }
66
    
72
    
67
    public void addPart(WorkbenchPartReference ref) {
73
    public void addPart(WorkbenchPartReference ref) {

Return to bug 96129