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:
IAdaptable,IExecutableExtension,IPartListener,IPersistable,ISaveablePart,ISaveablePart2,IViewPart,IWorkbenchPart,IWorkbenchPart2,IWorkbenchPart3,IWorkbenchPartOrientation
-
Field Summary
Fields inherited from interface org.eclipse.ui.ISaveablePart
PROP_DIRTYFields inherited from interface org.eclipse.ui.ISaveablePart2
CANCEL, DEFAULT, NO, YESFields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreatePartControl(Composite parent) voiddispose()voiddoSave(IProgressMonitor monitor) voiddoSaveAs()booleanisDirty()booleanbooleanvoidpartActivated(IWorkbenchPart part) voidvoidpartClosed(IWorkbenchPart part) voidvoidpartOpened(IWorkbenchPart part) intstatic StringRead the contents of the notes file, based on the snapshot resource.voidvoidsetFocus()Methods inherited from class org.eclipse.ui.part.ViewPart
getViewSite, init, init, saveState, setInitializationDataMethods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, getAdapter, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, showBusyMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapterMethods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
-
Constructor Details
-
NotesView
public NotesView()
-
-
Method Details
-
createPartControl
- Specified by:
createPartControlin interfaceIWorkbenchPart- Specified by:
createPartControlin classWorkbenchPart
-
setFocus
public void setFocus()- Specified by:
setFocusin interfaceIWorkbenchPart- Specified by:
setFocusin classWorkbenchPart
-
partActivated
- Specified by:
partActivatedin interfaceIPartListener
-
partBroughtToTop
- Specified by:
partBroughtToTopin interfaceIPartListener
-
partClosed
- Specified by:
partClosedin interfaceIPartListener
-
partDeactivated
- Specified by:
partDeactivatedin interfaceIPartListener
-
partOpened
- Specified by:
partOpenedin interfaceIPartListener
-
dispose
public void dispose()- Specified by:
disposein interfaceIWorkbenchPart- Overrides:
disposein classWorkbenchPart
-
resetUndoManager
public void resetUndoManager() -
readNotes
Read the contents of the notes file, based on the snapshot resource.- Parameters:
resourcePath- The editor file (snapshot or index file).- Returns:
- The contents of the notes file, lines separated by \n.
- Throws:
UncheckedIOException- for some IO errors.
-
doSave
- 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
-