Package org.eclipse.mat.ui.editor
Class MultiPaneEditor
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
org.eclipse.mat.ui.editor.MultiPaneEditor
- All Implemented Interfaces:
EventListener
,IResourceChangeListener
,IAdaptable
,IExecutableExtension
,IEditorPart
,ISaveablePart
,IWorkbenchPart
,IWorkbenchPart2
,IWorkbenchPart3
,IWorkbenchPartOrientation
- Direct Known Subclasses:
HeapEditor
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
Fields inherited from interface org.eclipse.ui.IEditorPart
PROP_DIRTY, PROP_INPUT
Fields inherited from interface org.eclipse.core.resources.IResourceChangeListener
PROPERTY_EVENT_MASK
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addNewPage
(String id, Object argument) Create and add a new pane to the folder.void
addNewPage
(String paneId, Object argument, boolean isSingelton) Create and add a new pane if only if a pane with that id does not exist.void
addNewPage
(String paneId, Object argument, boolean isSingelton, boolean doFocus) Create and add a new pane if only if a pane with that id does not exist.void
addNewPage
(String paneId, Object argument, boolean isSingelton, boolean doFocus, String title, Image image) void
addNewPage
(AbstractEditorPane pane, Object argument, String title, Image image) void
bringPageToTop
(PaneState state) void
final void
createPartControl
(Composite parent) void
dispose()
void
doSave
(IProgressMonitor monitor) void
doSaveAs()
void
init
(IEditorSite site, IEditorInput input) void
initWithAnotherArgument
(PaneState parent, PaneState child) boolean
isDirty()
boolean
boolean
void
void
setFocus()
void
Methods inherited from class org.eclipse.ui.part.EditorPart
getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setInitializationData
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, getAdapter, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, 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, removePropertyListener
-
Field Details
-
PROP_ACTION_BAR
public static final int PROP_ACTION_BAR- See Also:
-
PROP_FOLDER_IMAGE
public static final int PROP_FOLDER_IMAGE- See Also:
-
-
Constructor Details
-
MultiPaneEditor
public MultiPaneEditor()
-
-
Method Details
-
createPartControl
- Specified by:
createPartControl
in interfaceIWorkbenchPart
- Specified by:
createPartControl
in classWorkbenchPart
-
dispose
public void dispose()- Specified by:
dispose
in interfaceIWorkbenchPart
- Overrides:
dispose
in classWorkbenchPart
-
getPaneEditorInput
-
addNewPage
Create and add a new pane if only if a pane with that id does not exist. -
addNewPage
Create and add a new pane if only if a pane with that id does not exist. -
addNewPage
Create and add a new pane to the folder. -
addNewPage
-
addNewPage
-
init
- Specified by:
init
in interfaceIEditorPart
- Specified by:
init
in classEditorPart
- Throws:
PartInitException
-
isDirty
public boolean isDirty()- Specified by:
isDirty
in interfaceISaveablePart
- Specified by:
isDirty
in classEditorPart
-
isSaveAsAllowed
public boolean isSaveAsAllowed()- Specified by:
isSaveAsAllowed
in interfaceISaveablePart
- Specified by:
isSaveAsAllowed
in classEditorPart
-
doSave
- Specified by:
doSave
in interfaceISaveablePart
- Specified by:
doSave
in classEditorPart
-
doSaveAs
public void doSaveAs()- Specified by:
doSaveAs
in interfaceISaveablePart
- Specified by:
doSaveAs
in classEditorPart
-
setFocus
public void setFocus()- Specified by:
setFocus
in interfaceIWorkbenchPart
- Specified by:
setFocus
in classWorkbenchPart
-
resourceChanged
- Specified by:
resourceChanged
in interfaceIResourceChangeListener
-
updateToolbar
public void updateToolbar() -
getToolBarManager
-
getActiveEditor
-
bringPageToTop
-
initWithAnotherArgument
-
closePage
-
getEditor
-
isDisposed
public boolean isDisposed() -
getResourceFile
-
getQueryContext
-