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:
java.util.EventListener
,IResourceChangeListener
,IAdaptable
,IExecutableExtension
,IEditorPart
,ISaveablePart
,IWorkbenchPart
,IWorkbenchPart2
,IWorkbenchPart3
,IWorkbenchPartOrientation
- Direct Known Subclasses:
HeapEditor
public class MultiPaneEditor extends EditorPart implements IResourceChangeListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MultiPaneEditor.Handler
class
MultiPaneEditor.TabMenuAction
-
Field Summary
Fields Modifier and Type Field Description static int
PROP_ACTION_BAR
static int
PROP_FOLDER_IMAGE
-
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
Constructors Constructor Description MultiPaneEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addNewPage(java.lang.String id, java.lang.Object argument)
Create and add a new pane to the folder.void
addNewPage(java.lang.String paneId, java.lang.Object argument, boolean isSingelton)
Create and add a new pane if only if a pane with that id does not exist.void
addNewPage(java.lang.String paneId, java.lang.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(java.lang.String paneId, java.lang.Object argument, boolean isSingelton, boolean doFocus, java.lang.String title, Image image)
void
addNewPage(AbstractEditorPane pane, java.lang.Object argument, java.lang.String title, Image image)
void
bringPageToTop(PaneState state)
void
closePage(PaneState state)
void
createPartControl(Composite parent)
void
dispose()
void
doSave(IProgressMonitor monitor)
void
doSaveAs()
AbstractEditorPane
getActiveEditor()
AbstractEditorPane
getEditor(PaneState state)
NavigatorState
getNavigatorState()
IEditorInput
getPaneEditorInput()
IQueryContext
getQueryContext()
java.io.File
getResourceFile()
ToolBarManager
getToolBarManager()
void
init(IEditorSite site, IEditorInput input)
void
initWithAnotherArgument(PaneState parent, PaneState child)
boolean
isDirty()
boolean
isDisposed()
boolean
isSaveAsAllowed()
void
resourceChanged(IResourceChangeEvent event)
void
setFocus()
void
updateToolbar()
-
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 Detail
-
PROP_ACTION_BAR
public static final int PROP_ACTION_BAR
- See Also:
- Constant Field Values
-
PROP_FOLDER_IMAGE
public static final int PROP_FOLDER_IMAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
createPartControl
public final void createPartControl(Composite parent)
- Specified by:
createPartControl
in interfaceIWorkbenchPart
- Specified by:
createPartControl
in classWorkbenchPart
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceIWorkbenchPart
- Overrides:
dispose
in classWorkbenchPart
-
getPaneEditorInput
public IEditorInput getPaneEditorInput()
-
addNewPage
public void addNewPage(java.lang.String paneId, java.lang.Object argument, boolean isSingelton)
Create and add a new pane if only if a pane with that id does not exist.
-
addNewPage
public void addNewPage(java.lang.String paneId, java.lang.Object argument, boolean isSingelton, boolean doFocus)
Create and add a new pane if only if a pane with that id does not exist.
-
addNewPage
public void addNewPage(java.lang.String id, java.lang.Object argument)
Create and add a new pane to the folder.
-
addNewPage
public void addNewPage(AbstractEditorPane pane, java.lang.Object argument, java.lang.String title, Image image)
-
addNewPage
public void addNewPage(java.lang.String paneId, java.lang.Object argument, boolean isSingelton, boolean doFocus, java.lang.String title, Image image)
-
init
public void init(IEditorSite site, IEditorInput input) throws PartInitException
- Specified by:
init
in interfaceIEditorPart
- Specified by:
init
in classEditorPart
- Throws:
PartInitException
-
getNavigatorState
public NavigatorState getNavigatorState()
-
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
public void doSave(IProgressMonitor monitor)
- 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
public void resourceChanged(IResourceChangeEvent event)
- Specified by:
resourceChanged
in interfaceIResourceChangeListener
-
updateToolbar
public void updateToolbar()
-
getToolBarManager
public ToolBarManager getToolBarManager()
-
getActiveEditor
public AbstractEditorPane getActiveEditor()
-
bringPageToTop
public void bringPageToTop(PaneState state)
-
closePage
public void closePage(PaneState state)
-
getEditor
public AbstractEditorPane getEditor(PaneState state)
-
isDisposed
public boolean isDisposed()
-
getResourceFile
public java.io.File getResourceFile()
-
getQueryContext
public IQueryContext getQueryContext()
-
-