public class ModelComparisonScopeEditorInput
extends org.eclipse.emf.compare.ide.ui.internal.editor.ComparisonScopeEditorInput
implements org.eclipse.ui.ISaveablesSource
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.ui.navigator.SaveablesProvider |
modelSaveablesProvider |
Constructor and Description |
---|
ModelComparisonScopeEditorInput(org.eclipse.emf.compare.ide.ui.internal.configuration.EMFCompareConfiguration configuration,
org.eclipse.emf.compare.domain.ICompareEditingDomain editingDomain,
org.eclipse.emf.common.notify.AdapterFactory adapterFactory,
org.eclipse.emf.compare.EMFCompare comparator,
org.eclipse.emf.compare.scope.IComparisonScope scope) |
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.ui.navigator.SaveablesProvider |
createModelSaveablesProvider() |
protected java.lang.Object |
doPrepareInput(org.eclipse.core.runtime.IProgressMonitor monitor) |
protected void |
finalize() |
org.eclipse.ui.Saveable[] |
getActiveSaveables() |
protected java.lang.String |
getAncestorLabel()
Returns the label of the ancestor object in case of three way comparison.
|
protected java.lang.String |
getLabel(java.lang.Object object)
Returns the label of the provided object to use it in the title and the tool tip of the compare editor.
|
java.lang.Object |
getLeftObject() |
org.eclipse.emf.ecore.resource.Resource |
getLeftResource() |
protected java.util.Map<?,?> |
getLoadOptions()
Returns the load options to consider while loading the underlying model being edited.
|
java.lang.Object |
getRightObject() |
org.eclipse.emf.ecore.resource.Resource |
getRightResource() |
org.eclipse.ui.Saveable[] |
getSaveables() |
protected java.util.Map<?,?> |
getSaveOptions()
Returns the save options to consider while saving the underlying model being edited.
|
org.eclipse.emf.compare.scope.IComparisonScope |
getScope() |
protected void |
handleDispose() |
protected void |
init() |
boolean |
isDirty() |
protected void |
loadModel(IModelComparisonScope comparisonScope,
org.eclipse.core.runtime.IProgressMonitor monitor) |
void |
saveChanges(org.eclipse.core.runtime.IProgressMonitor monitor) |
cancelPressed
getAdapterFactory, getCompareConfiguration, getEditingDomain, prepareInput
addCompareInputChangeListener, addPropertyChangeListener, belongsTo, canRunAsJob, contentsCreated, contributeToToolBar, createContents, createContentViewerSwitchingPane, createDiffViewer, createOutlineContents, createStructureInputPane, exists, findContentViewer, findStructureViewer, firePropertyChange, flushLeftViewers, flushRightViewers, flushViewers, getActionBars, getAdapter, getCancelButtonLabel, getCompareResult, getContainer, getContentViewerDescriptor, getImageDescriptor, getMessage, getName, getNavigator, getOKButtonLabel, getPersistable, getSelectedEdition, getServiceLocator, getStructureViewerDescriptor, getTitle, getTitleImage, getToolTipText, getWorkbenchPart, isEditionSelectionDialog, isLeftSaveNeeded, isRightSaveNeeded, isSaveNeeded, okPressed, registerContextMenu, removeCompareInputChangeListener, removePropertyChangeListener, run, run, runAsynchronously, save, setContainer, setContentViewerDescriptor, setDirty, setFocus, setFocus2, setHelpContextId, setLeftDirty, setMessage, setRightDirty, setStatusMessage, setStructureViewerDescriptor, setTitle
protected org.eclipse.ui.navigator.SaveablesProvider modelSaveablesProvider
public ModelComparisonScopeEditorInput(org.eclipse.emf.compare.ide.ui.internal.configuration.EMFCompareConfiguration configuration, org.eclipse.emf.compare.domain.ICompareEditingDomain editingDomain, org.eclipse.emf.common.notify.AdapterFactory adapterFactory, org.eclipse.emf.compare.EMFCompare comparator, org.eclipse.emf.compare.scope.IComparisonScope scope)
public org.eclipse.emf.compare.scope.IComparisonScope getScope()
public org.eclipse.emf.ecore.resource.Resource getLeftResource()
public org.eclipse.emf.ecore.resource.Resource getRightResource()
public boolean isDirty()
isDirty
in class org.eclipse.compare.CompareEditorInput
protected void init()
public java.lang.Object getLeftObject()
null
if no such is
available.public java.lang.Object getRightObject()
null
if no such is
available.protected org.eclipse.ui.navigator.SaveablesProvider createModelSaveablesProvider()
protected java.lang.Object doPrepareInput(org.eclipse.core.runtime.IProgressMonitor monitor) throws java.lang.reflect.InvocationTargetException, java.lang.InterruptedException
doPrepareInput
in class org.eclipse.emf.compare.ide.ui.internal.editor.ComparisonScopeEditorInput
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException
892 - Indicate files being compared in compare editor tab title
,
CompareEditorInput.setTitle(String)
protected void loadModel(IModelComparisonScope comparisonScope, org.eclipse.core.runtime.IProgressMonitor monitor)
protected java.lang.String getLabel(java.lang.Object object)
object
- an EMF object or a IFile.protected java.lang.String getAncestorLabel()
public void saveChanges(org.eclipse.core.runtime.IProgressMonitor monitor)
saveChanges
in class org.eclipse.compare.CompareEditorInput
protected java.util.Map<?,?> getLoadOptions()
protected java.util.Map<?,?> getSaveOptions()
public org.eclipse.ui.Saveable[] getActiveSaveables()
getActiveSaveables
in interface org.eclipse.ui.ISaveablesSource
public org.eclipse.ui.Saveable[] getSaveables()
getSaveables
in interface org.eclipse.ui.ISaveablesSource
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
protected void handleDispose()
handleDispose
in class org.eclipse.compare.CompareEditorInput