public class TemplateModelEditorPart extends GenericEditor
Modifier and Type | Class and Description |
---|---|
protected static class |
TemplateModelEditorPart.DmrSelectorPreReplaceProcessor
DmrToSegmentsMigrator.PreReplaceProcessor for the legacy dmr migration which extracts the root EClass from a legacy dmr and
sets it to its containing VTDomainModelReferenceSelector . |
Constructor and Description |
---|
TemplateModelEditorPart() |
Modifier and Type | Method and Description |
---|---|
protected TreeMasterDetailComposite |
createTreeMasterDetail(org.eclipse.swt.widgets.Composite composite,
Object editorInput,
CreateElementCallback createElementCallback)
This method creates a tree master detail.
|
void |
dispose() |
protected boolean |
enableValidation() |
VTViewTemplate |
getTemplate()
Gives access to the template model which is the input of the editor.
|
void |
init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput input) |
protected org.eclipse.emf.ecore.resource.ResourceSet |
loadResource(org.eclipse.ui.IEditorInput editorInput)
Creates a resource set and loads all required resources for the editor input.
|
protected Object |
modifyEditorInput(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Allows to modify the input object for the editor.
|
protected void |
refreshTreeAfterResourceChange()
Called after a resource change to refresh the tree master detail of the editor.
|
void |
reveal(org.eclipse.emf.ecore.EObject objectToReveal)
The given element will be revealed in the tree of the editor.
|
adjustErrorMarker, createDiangosticCache, createPartControl, createRootView, createTreeViewerBuilder, deleteMarkers, doSave, doSaveAs, getCommandStack, getContextId, getCreateElementCallback, getDiagnosticCache, getEditingDomain, getEditorTitle, getNotifierFromEditorInput, getResourceLoadOptions, getResourceSaveOptions, getResourceSet, getRootView, getToolbarActions, gotoMarker, handleResourceChange, hasShortcuts, isClosing, isDirty, isEditable, isSaveAsAllowed, postSave, preSave, readToolbarActions, reloadResources, removeResources, reveal, setClosing, setFocus, verifyEditorResource
checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setInputWithNotify, setPartName
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void init(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput input) throws org.eclipse.ui.PartInitException
init
in interface org.eclipse.ui.IEditorPart
init
in class GenericEditor
org.eclipse.ui.PartInitException
protected org.eclipse.emf.ecore.resource.ResourceSet loadResource(org.eclipse.ui.IEditorInput editorInput) throws org.eclipse.ui.PartInitException
GenericEditor
loadResource
in class GenericEditor
editorInput
- the editor inputorg.eclipse.ui.PartInitException
- if the resource could not be loadedprotected void refreshTreeAfterResourceChange()
GenericEditor
refreshTreeAfterResourceChange
in class GenericEditor
protected Object modifyEditorInput(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
GenericEditor
modifyEditorInput
in class GenericEditor
resourceSet
- the resourceSet which is the default editor inputprotected TreeMasterDetailComposite createTreeMasterDetail(org.eclipse.swt.widgets.Composite composite, Object editorInput, CreateElementCallback createElementCallback)
GenericEditor
createTreeMasterDetail
in class GenericEditor
composite
- the parent compositeeditorInput
- the editor inputcreateElementCallback
- the create element callback to addTreeMasterDetailComposite
public void dispose()
dispose
in interface org.eclipse.ui.IWorkbenchPart
dispose
in class GenericEditor
public VTViewTemplate getTemplate()
VTViewTemplate
public void reveal(org.eclipse.emf.ecore.EObject objectToReveal)
reveal
in class GenericEditor
objectToReveal
- the object to revealprotected boolean enableValidation()
enableValidation
in class GenericEditor
Copyright © 2019. All rights reserved.