|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
org.eclipse.ui.part.MultiPageEditorPart
org.eclipse.ui.forms.editor.FormEditor
org.mockcentral.editor.MockCentralPluginEditor
public class MockCentralPluginEditor
A FormEditor used to edit Mock Central configuration files. This
editor contains a single FormPage (an instance of
EditorFormPage) for the display of the editor input.
| Field Summary | |
|---|---|
static java.lang.String |
EDITOR_ID
The editor id. |
| Fields inherited from class org.eclipse.ui.forms.editor.FormEditor |
|---|
pages |
| Fields inherited from interface org.eclipse.ui.IEditorPart |
|---|
PROP_DIRTY, PROP_INPUT |
| Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
PROP_TITLE |
| Constructor Summary | |
|---|---|
MockCentralPluginEditor()
|
|
| Method Summary | |
|---|---|
protected void |
addPages()
|
void |
classpathChanged()
Notification that the Classpath affecting the editor has
changed. |
void |
classpathElementsChanged(java.util.List<java.lang.String> changedClassNames)
Notification that compilation unit elements on the Classpath affecting the editor have changed. |
void |
dispose()
|
void |
doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
|
void |
doSaveAs()
|
protected void |
firePropertyChange(int propertyId)
|
java.lang.Object |
getAdapter(java.lang.Class key)
|
java.lang.ClassLoader |
getClassLoader()
|
org.mockcentral.editor.nodes.MockCentralNode |
getCurrentNode()
|
java.lang.Object |
getInput()
|
MarkerManager |
getMarkerManager()
Returns the MarkerManager used for managing the IMarker instances belonging to
the editor's IResource. |
org.mockcentral.editor.nodes.IMockCentralNodeView |
getNodeView(org.mockcentral.editor.nodes.MockCentralNodeType nodeType)
|
OperationsManager |
getOperationsManager()
Returns the OperationsManager used to manage undoable
operation history. |
java.lang.Object |
getPreferenceValue(java.lang.String preferenceName)
|
org.eclipse.core.resources.IProject |
getProject()
Returns the IProject enclosing the configuration file open
in this editor. |
org.eclipse.core.resources.IResource |
getResource()
Returns the IResource for this editor's input. |
TitleImagesManager |
getTitleImagesManager()
Returns the TitleImagesManager used for accessing images for the editor title. |
void |
gotoMarker(org.eclipse.core.resources.IMarker marker)
|
void |
init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput editorInput)
|
boolean |
isDirty()
|
boolean |
isSaveAsAllowed()
|
void |
loadPageFor(org.mockcentral.editor.nodes.MockCentralNode node)
|
void |
nodeDeleted()
Notification that a MockCentralNode instance has been
deleted. |
void |
nodeProblemsChanged()
|
protected void |
rebuildAffectedNodes(java.util.List<java.lang.String> changedClassNames)
Rebuilds all nodes referencing the class names in the supplied list. |
void |
setDirty(boolean isDirty)
|
void |
setEditorTitleImage(org.eclipse.swt.graphics.Image image)
Sets the editor's title Image. |
void |
setFirePropertyChanges(boolean firePropertyChanges)
Sets the value for whether property changes should be fired. |
void |
setFocus()
|
void |
setInputToFile(org.eclipse.core.resources.IFile file)
Creates a new FileEditorInput for this editor from the
supplied file. |
void |
setMarkerManager(MarkerManager markerManager)
Sets the MarkerManager used for managing the
IMarker instances belonging to the IResource. |
void |
setPreference(java.lang.String preferenceName,
java.lang.Object preferenceValue)
|
| Methods inherited from class org.eclipse.ui.forms.editor.FormEditor |
|---|
addPage, addPage, addPage, addPage, addPage, addPage, addPageChangedListener, close, configurePage, createPages, createToolkit, editorDirtyStateChanged, findPage, getActiveEditor, getActivePageInstance, getCurrentPage, getSelectedPage, getToolkit, pageChange, removePage, removePageChangedListener, selectReveal, setActivePage, setActivePage, setActivePage, updateActionBarContributor |
| Methods inherited from class org.eclipse.ui.part.MultiPageEditorPart |
|---|
createPartControl, createSite, getActivePage, getContainer, getControl, getEditor, getPageCount, getPageImage, getPageText, handlePropertyChange, setControl, setPageImage, setPageText |
| Methods inherited from class org.eclipse.ui.part.EditorPart |
|---|
checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setPartName |
| Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
|---|
addPropertyListener, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getSite, getTitle, getTitleImage, removePropertyListener, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.ui.IEditorPart |
|---|
getEditorInput, getEditorSite |
| Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
addPropertyListener, createPartControl, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener |
| Methods inherited from interface org.eclipse.ui.ISaveablePart |
|---|
isSaveOnCloseNeeded |
| Field Detail |
|---|
public static final java.lang.String EDITOR_ID
| Constructor Detail |
|---|
public MockCentralPluginEditor()
| Method Detail |
|---|
public void init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput editorInput)
throws org.eclipse.ui.PartInitException
init in interface org.eclipse.ui.IEditorPartinit in class org.eclipse.ui.forms.editor.FormEditororg.eclipse.ui.PartInitExceptionprotected void addPages()
addPages in class org.eclipse.ui.forms.editor.FormEditorpublic void setFocus()
setFocus in interface org.eclipse.ui.IWorkbenchPartsetFocus in class org.eclipse.ui.part.MultiPageEditorPartpublic java.lang.Object getAdapter(java.lang.Class key)
getAdapter in interface org.eclipse.core.runtime.IAdaptablegetAdapter in class org.eclipse.ui.part.WorkbenchPartpublic void setFirePropertyChanges(boolean firePropertyChanges)
firePropertyChanges - the value for whether property changes should
be fired.public void setDirty(boolean isDirty)
setDirty in interface org.mockcentral.editor.IMockCentralEditorpublic boolean isDirty()
isDirty in interface org.eclipse.ui.ISaveablePartisDirty in class org.eclipse.ui.forms.editor.FormEditorpublic void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
doSave in interface org.eclipse.ui.ISaveablePartdoSave in class org.eclipse.ui.part.EditorPartpublic boolean isSaveAsAllowed()
isSaveAsAllowed in interface org.eclipse.ui.ISaveablePartisSaveAsAllowed in class org.eclipse.ui.part.EditorPartpublic void doSaveAs()
doSaveAs in interface org.eclipse.ui.ISaveablePartdoSaveAs in class org.eclipse.ui.part.EditorPartpublic void dispose()
dispose in interface org.eclipse.ui.IWorkbenchPartdispose in class org.eclipse.ui.forms.editor.FormEditorpublic void gotoMarker(org.eclipse.core.resources.IMarker marker)
gotoMarker in interface org.eclipse.ui.ide.IGotoMarkerpublic java.lang.Object getInput()
getInput in interface org.mockcentral.editor.IMockCentralEditorpublic java.lang.ClassLoader getClassLoader()
getClassLoader in interface org.mockcentral.editor.IMockCentralEditorpublic OperationsManager getOperationsManager()
OperationsManager used to manage undoable
operation history.
OperationsManager used to manage undoable
operation history.public MarkerManager getMarkerManager()
IMockCentralPluginEditorMarkerManager used for managing the IMarker instances belonging to
the editor's IResource.
getMarkerManager in interface IMockCentralPluginEditorMarkerManager.public void setMarkerManager(MarkerManager markerManager)
MarkerManager used for managing the
IMarker instances belonging to the IResource.
markerManager - the MarkerManager to set.public TitleImagesManager getTitleImagesManager()
IMockCentralPluginEditorTitleImagesManager used for accessing images for the editor title.
getTitleImagesManager in interface IMockCentralPluginEditorTitleImagesManager.public org.eclipse.core.resources.IResource getResource()
IResource for this editor's input.
IResource for this editor's input.public org.eclipse.core.resources.IProject getProject()
IProject enclosing the configuration file open
in this editor.
IProject enclosing the configuration file open
in this editor.public org.mockcentral.editor.nodes.IMockCentralNodeView getNodeView(org.mockcentral.editor.nodes.MockCentralNodeType nodeType)
getNodeView in interface org.mockcentral.editor.IMockCentralEditorpublic org.mockcentral.editor.nodes.MockCentralNode getCurrentNode()
getCurrentNode in interface org.mockcentral.editor.IMockCentralEditorpublic void loadPageFor(org.mockcentral.editor.nodes.MockCentralNode node)
loadPageFor in interface org.mockcentral.editor.IMockCentralEditorpublic void classpathChanged()
IMockCentralPluginEditorClasspath affecting the editor has
changed.
classpathChanged in interface IMockCentralPluginEditorpublic void classpathElementsChanged(java.util.List<java.lang.String> changedClassNames)
IMockCentralPluginEditorClasspath affecting the editor have changed.
classpathElementsChanged in interface IMockCentralPluginEditorchangedClassNames - the names of the affected compilation units.protected void rebuildAffectedNodes(java.util.List<java.lang.String> changedClassNames)
changedClassNames - the list of class names.public void nodeProblemsChanged()
nodeProblemsChanged in interface org.mockcentral.editor.IMockCentralEditorpublic void nodeDeleted()
MockCentralNode instance has been
deleted. If the node (or one of its children) was currently in view in
this editor the view is reset.
public void setPreference(java.lang.String preferenceName,
java.lang.Object preferenceValue)
setPreference in interface org.mockcentral.editor.IMockCentralEditorpublic java.lang.Object getPreferenceValue(java.lang.String preferenceName)
getPreferenceValue in interface org.mockcentral.editor.IMockCentralEditorpublic void setInputToFile(org.eclipse.core.resources.IFile file)
IMockCentralPluginEditorFileEditorInput for this editor from the
supplied file.
setInputToFile in interface IMockCentralPluginEditorfile - the IFile containing the new input.public void setEditorTitleImage(org.eclipse.swt.graphics.Image image)
IMockCentralPluginEditorImage.
setEditorTitleImage in interface IMockCentralPluginEditorimage - the Image.protected void firePropertyChange(int propertyId)
firePropertyChange in class org.eclipse.ui.part.WorkbenchPart
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||