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_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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createPartControl
(Composite parent) void
dispose()
void
doSave
(IProgressMonitor monitor) void
doSaveAs()
boolean
isDirty()
boolean
boolean
void
partActivated
(IWorkbenchPart part) void
void
partClosed
(IWorkbenchPart part) void
void
partOpened
(IWorkbenchPart part) int
static String
Read the contents of the notes file, based on the snapshot resource.void
void
setFocus()
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
-
Constructor Details
-
NotesView
public NotesView()
-
-
Method Details
-
createPartControl
- Specified by:
createPartControl
in interfaceIWorkbenchPart
- Specified by:
createPartControl
in classWorkbenchPart
-
setFocus
public void setFocus()- Specified by:
setFocus
in interfaceIWorkbenchPart
- Specified by:
setFocus
in classWorkbenchPart
-
partActivated
- Specified by:
partActivated
in interfaceIPartListener
-
partBroughtToTop
- Specified by:
partBroughtToTop
in interfaceIPartListener
-
partClosed
- Specified by:
partClosed
in interfaceIPartListener
-
partDeactivated
- Specified by:
partDeactivated
in interfaceIPartListener
-
partOpened
- Specified by:
partOpened
in interfaceIPartListener
-
dispose
public void dispose()- Specified by:
dispose
in interfaceIWorkbenchPart
- Overrides:
dispose
in 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:
doSave
in interfaceISaveablePart
-
doSaveAs
public void doSaveAs()- Specified by:
doSaveAs
in interfaceISaveablePart
-
isDirty
public boolean isDirty()- Specified by:
isDirty
in interfaceISaveablePart
-
isSaveAsAllowed
public boolean isSaveAsAllowed()- Specified by:
isSaveAsAllowed
in interfaceISaveablePart
-
isSaveOnCloseNeeded
public boolean isSaveOnCloseNeeded()- Specified by:
isSaveOnCloseNeeded
in interfaceISaveablePart
-
promptToSaveOnClose
public int promptToSaveOnClose()- Specified by:
promptToSaveOnClose
in interfaceISaveablePart2
-