View | Details | Raw Unified | Return to bug 84407
Collapse All | Expand All

(-)Eclipse UI/org/eclipse/ui/internal/EditorReference.java (-6 lines)
Lines 229-240 Link Here
229
        return editorMemento;
229
        return editorMemento;
230
    }
230
    }
231
231
232
    public boolean isDirty() {
233
        if (part == null)
234
            return false;
235
        return ((IEditorPart) part).isDirty();
236
    }
237
238
    public IWorkbenchPage getPage() {
232
    public IWorkbenchPage getPage() {
239
        return this.manager.page;
233
        return this.manager.page;
240
    }
234
    }
(-)Eclipse UI/org/eclipse/ui/internal/SaveAllAction.java (-3 / +2 lines)
Lines 14-20 Link Here
14
import java.util.Iterator;
14
import java.util.Iterator;
15
import java.util.List;
15
import java.util.List;
16
16
17
import org.eclipse.ui.IEditorPart;
18
import org.eclipse.ui.IPropertyListener;
17
import org.eclipse.ui.IPropertyListener;
19
import org.eclipse.ui.ISaveablePart;
18
import org.eclipse.ui.ISaveablePart;
20
import org.eclipse.ui.IWorkbenchPage;
19
import org.eclipse.ui.IWorkbenchPage;
Lines 113-120 Link Here
113
     * Method declared on IPropertyListener.
112
     * Method declared on IPropertyListener.
114
     */
113
     */
115
    public void propertyChanged(Object source, int propID) {
114
    public void propertyChanged(Object source, int propID) {
116
        if (source instanceof IEditorPart) {
115
        if (source instanceof ISaveablePart) {
117
            if (propID == IEditorPart.PROP_DIRTY) {
116
            if (propID == ISaveablePart.PROP_DIRTY) {
118
                updateState();
117
                updateState();
119
            }
118
            }
120
        }
119
        }
(-)Eclipse UI/org/eclipse/ui/internal/WorkbenchPartReference.java (-1 / +4 lines)
Lines 24-29 Link Here
24
import org.eclipse.swt.widgets.Control;
24
import org.eclipse.swt.widgets.Control;
25
import org.eclipse.swt.widgets.Display;
25
import org.eclipse.swt.widgets.Display;
26
import org.eclipse.ui.IPropertyListener;
26
import org.eclipse.ui.IPropertyListener;
27
import org.eclipse.ui.ISaveablePart;
27
import org.eclipse.ui.ISharedImages;
28
import org.eclipse.ui.ISharedImages;
28
import org.eclipse.ui.IWorkbenchPart;
29
import org.eclipse.ui.IWorkbenchPart;
29
import org.eclipse.ui.IWorkbenchPart2;
30
import org.eclipse.ui.IWorkbenchPart2;
Lines 445-451 Link Here
445
    }
446
    }
446
447
447
    public boolean isDirty() {
448
    public boolean isDirty() {
448
        return false;
449
        if (!(part instanceof ISaveablePart))
450
            return false;
451
        return ((ISaveablePart) part).isDirty();
449
    }
452
    }
450
453
451
    public String getTitle() {
454
    public String getTitle() {
(-)Eclipse UI/org/eclipse/ui/internal/ViewPane.java (-12 lines)
Lines 313-330 Link Here
313
    }
313
    }
314
314
315
    /**
315
    /**
316
     * Indicates that a property has changed.
317
     *
318
     * @param source the object whose property has changed
319
     * @param propId the id of the property which has changed; property ids
320
     *   are generally defined as constants on the source class
321
     */
322
    public void propertyChanged(Object source, int propId) {
323
        if (propId == IWorkbenchPart.PROP_TITLE)
324
            updateTitles();
325
    }
326
327
    /**
328
     * Sets the fast view state.  If this view is a fast view then
316
     * Sets the fast view state.  If this view is a fast view then
329
     * various controls like pin and minimize are added to the
317
     * various controls like pin and minimize are added to the
330
     * system bar.
318
     * system bar.

Return to bug 84407