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() { |