public class TemplateModelEditorPart extends GenericEditor
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() |
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 Object |
modifyEditorInput(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Allows to modify the input object for 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, deleteMarkers, doSave, doSaveAs, enableValidation, getCommandStack, getContextId, getCreateElementCallback, getDiagnosticCache, getEditingDomain, getEditorTitle, getResourceSet, getToolbarActions, gotoMarker, handleResourceChange, hasShortcuts, isDirty, isSaveAsAllowed, loadResource, postSave, preSave, readToolbarActions, setFocus
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 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 revealCopyright © 2016. All rights reserved.