Class ViewModelEditor
- 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.viewmodel.ViewModelEditor
-
- 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
public class ViewModelEditor extends GenericEditor
The Editor for ViewModels.- Author:
- Clemens Elflein
-
-
Constructor Summary
Constructors Constructor Description ViewModelEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetEditorTitle()Returns the title for the currently displayed editor.VViewgetView()Returns the currently edited View.protected booleanhasShortcuts()Returns true, if the editor should have shortcuts.protected java.lang.ObjectmodifyEditorInput(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)Allows to modify the input object for the editor.-
Methods inherited from class org.eclipse.emfforms.spi.editor.GenericEditor
adjustErrorMarker, createDiangosticCache, createPartControl, createRootView, createTreeMasterDetail, createTreeViewerBuilder, customizeTree, deleteMarkers, dispose, doSave, doSaveAs, enableValidation, getCommandStack, getContextId, getCreateElementCallback, getDiagnosticCache, getEditingDomain, getNotifierFromEditorInput, getResourceLoadOptions, getResourceSaveOptions, getResourceSet, getRootView, getToolbarActions, gotoMarker, handleDetailActivated, handleResourceChange, init, isClosing, isDirty, isEditable, isSaveAsAllowed, loadResource, 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
-
hasShortcuts
protected boolean hasShortcuts()
Returns true, if the editor should have shortcuts.- Overrides:
hasShortcutsin classGenericEditor- Returns:
- true, if the editor has shortcuts
- See Also:
GenericEditor.hasShortcuts()
-
getEditorTitle
protected java.lang.String getEditorTitle()
Returns the title for the currently displayed editor. Subclasses should override this function to change the Editor's title- Overrides:
getEditorTitlein classGenericEditor- Returns:
- the title
- See Also:
GenericEditor.getEditorTitle()
-
getView
public VView getView()
Returns the currently edited View.- Returns:
- The currently edited view
-
modifyEditorInput
protected java.lang.Object modifyEditorInput(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Allows to modify the input object for the editor.- Overrides:
modifyEditorInputin classGenericEditor- Parameters:
resourceSet- the resourceSet which is the default editor input- Returns:
- the object to set as the input
- See Also:
GenericEditor.modifyEditorInput(org.eclipse.emf.ecore.resource.ResourceSet)
-
-