public class NotesView extends ViewPart implements IPartListener, Observer, ISaveablePart, ISaveablePart2
CANCEL, DEFAULT, NO, YES
PROP_DIRTY
PROP_TITLE
Constructor and Description |
---|
NotesView() |
Modifier and Type | Method and Description |
---|---|
void |
createPartControl(Composite parent) |
void |
dispose() |
void |
doSave(IProgressMonitor monitor) |
void |
doSaveAs() |
boolean |
isDirty() |
boolean |
isSaveAsAllowed() |
boolean |
isSaveOnCloseNeeded() |
void |
partActivated(IWorkbenchPart part) |
void |
partBroughtToTop(IWorkbenchPart part) |
void |
partClosed(IWorkbenchPart part) |
void |
partDeactivated(IWorkbenchPart part) |
void |
partOpened(IWorkbenchPart part) |
int |
promptToSaveOnClose() |
void |
resetUndoManager() |
void |
setFocus() |
void |
update(Observable o,
Object arg) |
getViewSite, init, init, saveState, setInitializationData
addPartPropertyListener, addPropertyListener, getAdapter, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, showBusy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
getAdapter
public void createPartControl(Composite parent)
createPartControl
in interface IWorkbenchPart
createPartControl
in class WorkbenchPart
public void setFocus()
setFocus
in interface IWorkbenchPart
setFocus
in class WorkbenchPart
public void partActivated(IWorkbenchPart part)
partActivated
in interface IPartListener
public void partBroughtToTop(IWorkbenchPart part)
partBroughtToTop
in interface IPartListener
public void partClosed(IWorkbenchPart part)
partClosed
in interface IPartListener
public void partDeactivated(IWorkbenchPart part)
partDeactivated
in interface IPartListener
public void partOpened(IWorkbenchPart part)
partOpened
in interface IPartListener
public void update(Observable o, Object arg)
public void dispose()
dispose
in interface IWorkbenchPart
dispose
in class WorkbenchPart
public void resetUndoManager()
public void doSave(IProgressMonitor monitor)
doSave
in interface ISaveablePart
public void doSaveAs()
doSaveAs
in interface ISaveablePart
public boolean isDirty()
isDirty
in interface ISaveablePart
public boolean isSaveAsAllowed()
isSaveAsAllowed
in interface ISaveablePart
public boolean isSaveOnCloseNeeded()
isSaveOnCloseNeeded
in interface ISaveablePart
public int promptToSaveOnClose()
promptToSaveOnClose
in interface ISaveablePart2