Class NotesView
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.ui.part.WorkbenchPart
-
- org.eclipse.ui.part.ViewPart
-
- org.eclipse.mat.ui.internal.views.NotesView
-
- All Implemented Interfaces:
Observer,IAdaptable,IExecutableExtension,IPartListener,IPersistable,ISaveablePart,ISaveablePart2,IViewPart,IWorkbenchPart,IWorkbenchPart2,IWorkbenchPart3,IWorkbenchPartOrientation
public class NotesView extends ViewPart implements IPartListener, Observer, ISaveablePart, ISaveablePart2
-
-
Field Summary
-
Fields inherited from interface org.eclipse.ui.ISaveablePart
PROP_DIRTY
-
Fields inherited from interface org.eclipse.ui.ISaveablePart2
CANCEL, DEFAULT, NO, YES
-
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
-
-
Constructor Summary
Constructors Constructor Description NotesView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreatePartControl(Composite parent)voiddispose()voiddoSave(IProgressMonitor monitor)voiddoSaveAs()booleanisDirty()booleanisSaveAsAllowed()booleanisSaveOnCloseNeeded()voidpartActivated(IWorkbenchPart part)voidpartBroughtToTop(IWorkbenchPart part)voidpartClosed(IWorkbenchPart part)voidpartDeactivated(IWorkbenchPart part)voidpartOpened(IWorkbenchPart part)intpromptToSaveOnClose()voidresetUndoManager()voidsetFocus()voidupdate(Observable o, Object arg)-
Methods inherited from class org.eclipse.ui.part.ViewPart
getViewSite, init, init, saveState, setInitializationData
-
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, getAdapter, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, showBusy
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
-
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
-
-
-
-
Method Detail
-
createPartControl
public void createPartControl(Composite parent)
- Specified by:
createPartControlin interfaceIWorkbenchPart- Specified by:
createPartControlin classWorkbenchPart
-
setFocus
public void setFocus()
- Specified by:
setFocusin interfaceIWorkbenchPart- Specified by:
setFocusin classWorkbenchPart
-
partActivated
public void partActivated(IWorkbenchPart part)
- Specified by:
partActivatedin interfaceIPartListener
-
partBroughtToTop
public void partBroughtToTop(IWorkbenchPart part)
- Specified by:
partBroughtToTopin interfaceIPartListener
-
partClosed
public void partClosed(IWorkbenchPart part)
- Specified by:
partClosedin interfaceIPartListener
-
partDeactivated
public void partDeactivated(IWorkbenchPart part)
- Specified by:
partDeactivatedin interfaceIPartListener
-
partOpened
public void partOpened(IWorkbenchPart part)
- Specified by:
partOpenedin interfaceIPartListener
-
update
public void update(Observable o, Object arg)
-
dispose
public void dispose()
- Specified by:
disposein interfaceIWorkbenchPart- Overrides:
disposein classWorkbenchPart
-
resetUndoManager
public void resetUndoManager()
-
doSave
public void doSave(IProgressMonitor monitor)
- Specified by:
doSavein interfaceISaveablePart
-
doSaveAs
public void doSaveAs()
- Specified by:
doSaveAsin interfaceISaveablePart
-
isDirty
public boolean isDirty()
- Specified by:
isDirtyin interfaceISaveablePart
-
isSaveAsAllowed
public boolean isSaveAsAllowed()
- Specified by:
isSaveAsAllowedin interfaceISaveablePart
-
isSaveOnCloseNeeded
public boolean isSaveOnCloseNeeded()
- Specified by:
isSaveOnCloseNeededin interfaceISaveablePart
-
promptToSaveOnClose
public int promptToSaveOnClose()
- Specified by:
promptToSaveOnClosein interfaceISaveablePart2
-
-