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

Collapse All | Expand All

(-)Eclipse UI/org/eclipse/ui/internal/ViewStack.java (-1 / +1 lines)
Lines 108-114 Link Here
108
        return !perspective.isFixedLayout();
108
        return !perspective.isFixedLayout();
109
    }
109
    }
110
110
111
    protected void updateActions(PresentablePart current) {
111
    public void updateActions(PresentablePart current) {
112
        ViewPane pane = null;
112
        ViewPane pane = null;
113
113
114
        if (current != null && current.getPane() instanceof ViewPane) {
114
        if (current != null && current.getPane() instanceof ViewPane) {
(-)Eclipse UI/org/eclipse/ui/internal/PartStack.java (-1 / +1 lines)
Lines 1213-1219 Link Here
1213
     * Subclasses should override this method to update the enablement state of their
1213
     * Subclasses should override this method to update the enablement state of their
1214
     * actions
1214
     * actions
1215
     */
1215
     */
1216
    protected abstract void updateActions(PresentablePart current);
1216
    public abstract void updateActions(PresentablePart current);
1217
1217
1218
    /* (non-Javadoc)
1218
    /* (non-Javadoc)
1219
	 * @see org.eclipse.ui.internal.LayoutPart#handleDeferredEvents()
1219
	 * @see org.eclipse.ui.internal.LayoutPart#handleDeferredEvents()
(-)Eclipse UI/org/eclipse/ui/internal/EditorStack.java (-1 / +1 lines)
Lines 116-122 Link Here
116
        }
116
        }
117
    }
117
    }
118
118
119
    protected void updateActions(PresentablePart current) {
119
    public void updateActions(PresentablePart current) {
120
        EditorPane pane = null;
120
        EditorPane pane = null;
121
        if (current != null && current.getPane() instanceof EditorPane) {
121
        if (current != null && current.getPane() instanceof EditorPane) {
122
            pane = (EditorPane) current.getPane();
122
            pane = (EditorPane) current.getPane();
(-)Eclipse UI/org/eclipse/ui/internal/presentations/util/TabbedStackPresentation.java (-1 / +5 lines)
Lines 27-37 Link Here
27
import org.eclipse.swt.widgets.Control;
27
import org.eclipse.swt.widgets.Control;
28
import org.eclipse.ui.IMemento;
28
import org.eclipse.ui.IMemento;
29
import org.eclipse.ui.PlatformUI;
29
import org.eclipse.ui.PlatformUI;
30
import org.eclipse.ui.internal.PartStack;
30
import org.eclipse.ui.internal.preferences.IDynamicPropertyMap;
31
import org.eclipse.ui.internal.preferences.IDynamicPropertyMap;
31
import org.eclipse.ui.internal.preferences.PreferenceStoreAdapter;
32
import org.eclipse.ui.internal.preferences.PreferenceStoreAdapter;
32
import org.eclipse.ui.internal.preferences.PreferencesAdapter;
33
import org.eclipse.ui.internal.preferences.PreferencesAdapter;
33
import org.eclipse.ui.internal.preferences.PropertyMapAdapter;
34
import org.eclipse.ui.internal.preferences.PropertyMapAdapter;
34
import org.eclipse.ui.internal.preferences.ThemeManagerAdapter;
35
import org.eclipse.ui.internal.preferences.ThemeManagerAdapter;
36
import org.eclipse.ui.internal.presentations.PresentablePart;
35
import org.eclipse.ui.internal.presentations.defaultpresentation.DefaultPartList;
37
import org.eclipse.ui.internal.presentations.defaultpresentation.DefaultPartList;
36
import org.eclipse.ui.internal.util.PrefUtil;
38
import org.eclipse.ui.internal.util.PrefUtil;
37
import org.eclipse.ui.presentations.IPartMenu;
39
import org.eclipse.ui.presentations.IPartMenu;
Lines 486-492 Link Here
486
    
488
    
487
    public void showSystemMenu(Point displayCoordinates, IPresentablePart context) {
489
    public void showSystemMenu(Point displayCoordinates, IPresentablePart context) {
488
        if (context != getSite().getSelectedPart()) {
490
        if (context != getSite().getSelectedPart()) {
489
            getSite().selectPart(context);
491
        	PresentablePart part = (PresentablePart) context;
492
        	PartStack stack = part.getPane().getStack();
493
        	stack.updateActions(part);
490
        }
494
        }
491
        systemMenu.show(getControl(), displayCoordinates, context);
495
        systemMenu.show(getControl(), displayCoordinates, context);
492
    }
496
    }

Return to bug 60833