Package org.eclipse.emf.cdo.ui.compare
Class CDOCompareEditorUtil.Input
java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.compare.CompareEditorInput
org.eclipse.emf.compare.ide.ui.internal.editor.AbstractEMFCompareEditorInput
org.eclipse.emf.compare.ide.ui.internal.editor.ComparisonEditorInput
org.eclipse.emf.cdo.ui.compare.CDOCompareEditorUtil.Input
- All Implemented Interfaces:
ICompareContainer
,IPropertyChangeNotifier
,IAdaptable
,IRunnableContext
,IRunnableWithProgress
,org.eclipse.net4j.util.properties.IPropertiesContainer
,IEditorInput
- Enclosing class:
- CDOCompareEditorUtil
public static final class CDOCompareEditorUtil.Input
extends org.eclipse.emf.compare.ide.ui.internal.editor.ComparisonEditorInput
implements org.eclipse.net4j.util.properties.IPropertiesContainer
- Since:
- 4.4
- Author:
- Eike Stepper
-
Field Summary
Fields inherited from class org.eclipse.compare.CompareEditorInput
DIRTY_STATE, PROP_SELECTED_EDITION, PROP_TITLE, PROP_TITLE_IMAGE
-
Method Summary
Modifier and TypeMethodDescriptioncreateContents
(Composite parent) protected CompareViewerPane
createStructureInputPane
(Composite parent) boolean
forEachDiffElement
(Predicate<Object> consumer) <T> T
getAdapter
(Class<T> type) org.eclipse.emf.compare.Comparison
static TreeNode
getTreeNode
(Object diffElement) boolean
boolean
isModal()
boolean
isOK()
Returnstrue
if the OK button was pressed,false
otherwise.boolean
void
void
saveChanges
(IProgressMonitor monitor) void
setDisposeRunnables
(List<Runnable> disposeRunnables) void
setEditionSelectionDialog
(boolean editionSelectionDialog) void
setModal
(boolean modal) void
setSaveHandler
(Consumer<IProgressMonitor> saveHandler) Methods inherited from class org.eclipse.emf.compare.ide.ui.internal.editor.ComparisonEditorInput
doPrepareInput
Methods inherited from class org.eclipse.emf.compare.ide.ui.internal.editor.AbstractEMFCompareEditorInput
cancelPressed, getAdapterFactory, getCompareConfiguration, getEditingDomain, prepareInput
Methods inherited from class org.eclipse.compare.CompareEditorInput
addCompareInputChangeListener, addPropertyChangeListener, belongsTo, canRunAsJob, contentsCreated, contributeToToolBar, createContentViewerSwitchingPane, createDiffViewer, createOutlineContents, exists, findContentViewer, findStructureViewer, firePropertyChange, flushLeftViewers, flushRightViewers, flushViewers, getActionBars, getCancelButtonLabel, getCompareResult, getContainer, getContentViewerDescriptor, getImageDescriptor, getMessage, getName, getNavigator, getOKButtonLabel, getPersistable, getSelectedEdition, getServiceLocator, getStructureViewerDescriptor, getTitle, getToolTipText, getWorkbenchPart, handleDispose, isDirty, isLeftSaveNeeded, isRightSaveNeeded, isSaveNeeded, registerContextMenu, removeCompareInputChangeListener, run, run, runAsynchronously, save, setContainer, setContentViewerDescriptor, setDirty, setFocus, setFocus2, setHelpContextId, setLeftDirty, setMessage, setRightDirty, setStatusMessage, setStructureViewerDescriptor, setTitle
-
Method Details
-
getComparison
public org.eclipse.emf.compare.Comparison getComparison() -
getTitleImage
- Overrides:
getTitleImage
in classCompareEditorInput
-
isModal
public boolean isModal()- Since:
- 4.8
-
setModal
public void setModal(boolean modal) - Since:
- 4.8
-
isEditionSelectionDialog
public boolean isEditionSelectionDialog()- Overrides:
isEditionSelectionDialog
in classCompareEditorInput
-
setEditionSelectionDialog
public void setEditionSelectionDialog(boolean editionSelectionDialog) - Since:
- 4.9
-
createContents
- Overrides:
createContents
in classCompareEditorInput
-
createStructureInputPane
- Overrides:
createStructureInputPane
in classCompareEditorInput
-
getStructureInputPane
- Since:
- 4.9
-
getViewerWrapper
- Since:
- 4.9
-
getTreeViewer
- Since:
- 4.9
-
forEachDiffElement
- Since:
- 4.9
-
getAdapter
- Specified by:
getAdapter
in interfaceIAdaptable
- Overrides:
getAdapter
in classCompareEditorInput
-
getEditor
- Since:
- 4.9
-
setDisposeRunnables
-
getSaveHandler
- Since:
- 4.9
-
setSaveHandler
- Since:
- 4.9
-
saveChanges
- Overrides:
saveChanges
in classCompareEditorInput
- Throws:
CoreException
-
getCommitInfo
- Since:
- 4.6
-
isOK
public boolean isOK()Returnstrue
if the OK button was pressed,false
otherwise. -
okPressed
public boolean okPressed()- Overrides:
okPressed
in classCompareEditorInput
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListener
in interfaceIPropertyChangeNotifier
- Overrides:
removePropertyChangeListener
in classCompareEditorInput
-
properties
- Specified by:
properties
in interfaceorg.eclipse.net4j.util.properties.IPropertiesContainer
-
getTreeNode
- Since:
- 4.9
-