Class EcoreEditor
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.ui.part.WorkbenchPart
-
- org.eclipse.ui.part.EditorPart
-
- org.eclipse.emfforms.spi.editor.GenericEditor
-
- org.eclipse.emfforms.internal.editor.ecore.EcoreEditor
-
- All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable
,org.eclipse.core.runtime.IExecutableExtension
,org.eclipse.emf.edit.domain.IEditingDomainProvider
,org.eclipse.ui.ide.IGotoMarker
,org.eclipse.ui.IEditorPart
,org.eclipse.ui.ISaveablePart
,org.eclipse.ui.IWorkbenchPart
,org.eclipse.ui.IWorkbenchPart2
,org.eclipse.ui.IWorkbenchPart3
,org.eclipse.ui.part.IWorkbenchPartOrientation
- Direct Known Subclasses:
EcoreEditorPerformance_PTest.Editor
public class EcoreEditor extends GenericEditor
This class extends the GenericEditor to provide customized features for Ecore files.
-
-
Constructor Summary
Constructors Constructor Description EcoreEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DiagnosticCache
createDiangosticCache(org.eclipse.emf.common.notify.Notifier input)
Creates the diagnostic cache.protected TreeMasterDetailComposite
createTreeMasterDetail(org.eclipse.swt.widgets.Composite composite, java.lang.Object editorInput, CreateElementCallback createElementCallback)
This method creates a tree master detail.protected boolean
enableValidation()
protected java.lang.String
getContextId()
Returns the context id set for this editor.protected CreateElementCallback
getCreateElementCallback()
Returns the createElementCallback for this editor.protected java.lang.String
getEditorTitle()
Returns the title for the currently displayed editor.-
Methods inherited from class org.eclipse.emfforms.spi.editor.GenericEditor
adjustErrorMarker, createPartControl, createRootView, createTreeViewerBuilder, customizeTree, deleteMarkers, dispose, doSave, doSaveAs, getCommandStack, getDiagnosticCache, getEditingDomain, getNotifierFromEditorInput, getResourceLoadOptions, getResourceSaveOptions, getResourceSet, getRootView, getToolbarActions, gotoMarker, handleDetailActivated, handleResourceChange, hasShortcuts, init, isClosing, isDirty, isEditable, isSaveAsAllowed, loadResource, modifyEditorInput, postSave, preSave, readToolbarActions, refreshTreeAfterResourceChange, reloadResources, removeResources, reveal, reveal, setClosing, setFocus, verifyEditorResource
-
Methods inherited from class org.eclipse.ui.part.EditorPart
checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setInputWithNotify, setPartName
-
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
-
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
-
-
-
-
Method Detail
-
getCreateElementCallback
protected CreateElementCallback getCreateElementCallback()
Description copied from class:GenericEditor
Returns the createElementCallback for this editor. By default, there is none.- Overrides:
getCreateElementCallback
in classGenericEditor
- Returns:
- the callback
-
getEditorTitle
protected java.lang.String getEditorTitle()
Description copied from class:GenericEditor
Returns the title for the currently displayed editor. Subclasses should override this function to change the Editor's title- Overrides:
getEditorTitle
in classGenericEditor
- Returns:
- the title
-
createTreeMasterDetail
protected TreeMasterDetailComposite createTreeMasterDetail(org.eclipse.swt.widgets.Composite composite, java.lang.Object editorInput, CreateElementCallback createElementCallback)
Description copied from class:GenericEditor
This method creates a tree master detail. Override this method if you want to customize the tree.- Overrides:
createTreeMasterDetail
in classGenericEditor
- Parameters:
composite
- the parent compositeeditorInput
- the editor inputcreateElementCallback
- the create element callback to add- Returns:
- the
TreeMasterDetailComposite
-
createDiangosticCache
protected DiagnosticCache createDiangosticCache(org.eclipse.emf.common.notify.Notifier input)
Description copied from class:GenericEditor
Creates the diagnostic cache.- Overrides:
createDiangosticCache
in classGenericEditor
- Parameters:
input
- the input- Returns:
- the cache
-
getContextId
protected java.lang.String getContextId()
Description copied from class:GenericEditor
Returns the context id set for this editor.- Overrides:
getContextId
in classGenericEditor
- Returns:
- the context id
-
enableValidation
protected boolean enableValidation()
- Overrides:
enableValidation
in classGenericEditor
- Returns:
- whether a diagnostic cache should be managed.
-
-