public class ModelCompareEditor extends org.eclipse.compare.internal.CompareEditor implements IModelEditorInputChangeAnalyzer
Modifier and Type | Class and Description |
---|---|
class |
ModelCompareEditor.ModelCompareEditorInputChangeHandler |
Modifier and Type | Field and Description |
---|---|
protected ModelEditorInputSynchronizer |
editorInputSynchronizer |
static java.lang.String |
ID
The identifier of this editor (as contributed).
|
protected ModelEditorUndoContextManager |
undoContextManager |
Constructor and Description |
---|
ModelCompareEditor()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsEditorInputObject(org.eclipse.ui.IEditorInput editorInput,
java.util.Set<org.eclipse.emf.ecore.EObject> objects) |
boolean |
containsEditorInputResourceURI(org.eclipse.ui.IEditorInput editorInput,
java.util.Set<org.eclipse.emf.common.util.URI> resourceURIs) |
protected ModelEditorUndoContextManager |
createModelEditorUndoContextManager() |
org.eclipse.ui.ISaveablesLifecycleListener |
createModelSaveablesLifecycleListener() |
void |
dispose() |
java.lang.Object |
getAdapter(java.lang.Class key) |
protected org.eclipse.emf.common.notify.AdapterFactory[] |
getAdapterFactories() |
org.eclipse.emf.transaction.TransactionalEditingDomain[] |
getEditingDomains() |
protected org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator[] |
getItemDelegators() |
protected ModelEditorUndoContextManager |
getModelEditorUndoContextManager() |
java.lang.Object[] |
getModelRoots() |
void |
init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput input) |
protected boolean |
isActivePart() |
boolean |
isSaveAsAllowed() |
boolean |
isSaveOnCloseNeeded() |
void |
setInput(org.eclipse.ui.IEditorInput input) |
createPartControl, doSave, doSaveAs, getActionBars, getActiveSaveables, getSaveables, handleLifecycleEvent, initializeInBackground, isDirty, propertyChange, refreshActionBarsContributor, setFocus
checkSite, getEditorInput, getEditorSite, getTitleToolTip, setContentDescription, setInitializationData, setInputWithNotify, setPartName
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
public static java.lang.String ID
protected ModelEditorUndoContextManager undoContextManager
protected ModelEditorInputSynchronizer editorInputSynchronizer
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 org.eclipse.compare.internal.CompareEditor
org.eclipse.ui.PartInitException
protected ModelEditorUndoContextManager getModelEditorUndoContextManager()
protected ModelEditorUndoContextManager createModelEditorUndoContextManager()
public void dispose()
dispose
in interface org.eclipse.ui.IWorkbenchPart
dispose
in class org.eclipse.compare.internal.CompareEditor
public org.eclipse.ui.ISaveablesLifecycleListener createModelSaveablesLifecycleListener()
public boolean isSaveOnCloseNeeded()
isSaveOnCloseNeeded
in interface org.eclipse.ui.ISaveablePart
isSaveOnCloseNeeded
in class org.eclipse.ui.part.EditorPart
public boolean isSaveAsAllowed()
isSaveAsAllowed
in interface org.eclipse.ui.ISaveablePart
isSaveAsAllowed
in class org.eclipse.compare.internal.CompareEditor
public java.lang.Object getAdapter(java.lang.Class key)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
getAdapter
in class org.eclipse.compare.internal.CompareEditor
public org.eclipse.emf.transaction.TransactionalEditingDomain[] getEditingDomains()
public java.lang.Object[] getModelRoots()
protected org.eclipse.emf.common.notify.AdapterFactory[] getAdapterFactories()
protected org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator[] getItemDelegators()
protected boolean isActivePart()
public void setInput(org.eclipse.ui.IEditorInput input)
setInput
in interface org.eclipse.ui.IReusableEditor
setInput
in class org.eclipse.compare.internal.CompareEditor
public boolean containsEditorInputObject(org.eclipse.ui.IEditorInput editorInput, java.util.Set<org.eclipse.emf.ecore.EObject> objects)
containsEditorInputObject
in interface IModelEditorInputChangeAnalyzer
public boolean containsEditorInputResourceURI(org.eclipse.ui.IEditorInput editorInput, java.util.Set<org.eclipse.emf.common.util.URI> resourceURIs)
containsEditorInputResourceURI
in interface IModelEditorInputChangeAnalyzer