Package com._1c.g5.v8.dt.compare.ui
Class DtCompareEditorInput
java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.compare.CompareEditorInput
org.eclipse.team.ui.synchronize.SaveableCompareEditorInput
com._1c.g5.v8.dt.compare.ui.DtCompareEditorInput
- All Implemented Interfaces:
org.eclipse.compare.ICompareContainer
,org.eclipse.compare.IPropertyChangeNotifier
,org.eclipse.core.runtime.IAdaptable
,org.eclipse.jface.operation.IRunnableContext
,org.eclipse.jface.operation.IRunnableWithProgress
,org.eclipse.ui.IEditorInput
,org.eclipse.ui.ISaveablesSource
- Direct Known Subclasses:
ReadOnlyCompareEditorInput
public class DtCompareEditorInput
extends org.eclipse.team.ui.synchronize.SaveableCompareEditorInput
The extension of
SaveableCompareEditorInput
to set up compare configuration via typed elements.-
Field Summary
Fields inherited from class org.eclipse.compare.CompareEditorInput
DIRTY_STATE, PROP_SELECTED_EDITION, PROP_TITLE, PROP_TITLE_IMAGE
-
Constructor Summary
ConstructorsConstructorDescriptionDtCompareEditorInput
(org.eclipse.compare.ITypedElement leftTypedElement, org.eclipse.compare.ITypedElement rightTypedElement, org.eclipse.compare.ITypedElement ancestorTypedElement, org.eclipse.ui.IWorkbenchPage page, org.eclipse.compare.CompareConfiguration compareConfiguration) CreatesDtCompareEditorInput
with the given parameters. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.compare.CompareViewerSwitchingPane
createContentViewerSwitchingPane
(org.eclipse.compare.Splitter parent, int style, org.eclipse.compare.CompareEditorInput cei) void
org.eclipse.compare.ITypedElement
Returns the ancestor typed element.org.eclipse.compare.ITypedElement
getLeft()
Returns the left typed element.org.eclipse.compare.ITypedElement
getRight()
Returns the right typed element.protected org.eclipse.compare.structuremergeviewer.ICompareInput
prepareCompareInput
(org.eclipse.core.runtime.IProgressMonitor monitor) void
setAncestor
(org.eclipse.compare.ITypedElement ancestorTypedElement) Sets the ancestor typed element.void
setLeft
(org.eclipse.compare.ITypedElement leftTypedElement) Sets the left typed element.void
setRight
(org.eclipse.compare.ITypedElement rightTypedElement) Sets the right typed element.Methods inherited from class org.eclipse.team.ui.synchronize.SaveableCompareEditorInput
addCompareInputChangeListener, canRunAsJob, closeEditor, contentsCreated, createFileElement, createSaveable, findContentViewer, getActiveSaveables, getAdapter, getCompareInput, getImageDescriptor, getSaveable, getSaveables, getTitleImage, handleDispose, isDirty, prepareInput, registerContextMenu, removeCompareInputChangeListener
Methods inherited from class org.eclipse.compare.CompareEditorInput
addPropertyChangeListener, belongsTo, cancelPressed, contributeToToolBar, createContents, createDiffViewer, createOutlineContents, createStructureInputPane, exists, findStructureViewer, firePropertyChange, flushLeftViewers, flushRightViewers, flushViewers, getActionBars, getCancelButtonLabel, getCompareConfiguration, getCompareResult, getContainer, getContentViewerDescriptor, getMessage, getName, getNavigator, getPersistable, getSelectedEdition, getServiceLocator, getStructureViewerDescriptor, getTitle, getToolTipText, getWorkbenchPart, isEditionSelectionDialog, isLeftSaveNeeded, isRightSaveNeeded, isSaveNeeded, okPressed, removePropertyChangeListener, run, run, runAsynchronously, save, saveChanges, setContainer, setContentViewerDescriptor, setDirty, setFocus, setFocus2, setHelpContextId, setLeftDirty, setMessage, setRightDirty, setStatusMessage, setStructureViewerDescriptor, setTitle
-
Constructor Details
-
DtCompareEditorInput
public DtCompareEditorInput(org.eclipse.compare.ITypedElement leftTypedElement, org.eclipse.compare.ITypedElement rightTypedElement, org.eclipse.compare.ITypedElement ancestorTypedElement, org.eclipse.ui.IWorkbenchPage page, org.eclipse.compare.CompareConfiguration compareConfiguration) CreatesDtCompareEditorInput
with the given parameters. Left and right typed elements can not benull
simultaneously.- Parameters:
leftTypedElement
- the left typed element, may benull
rightTypedElement
- the right typed element, may not benull
ancestorTypedElement
- the ancestor typed element, may benull
page
- theIWorkbenchPage
, can not benull
compareConfiguration
- the compare configuration, cannot benull
-
-
Method Details
-
getLeft
public org.eclipse.compare.ITypedElement getLeft()Returns the left typed element.- Returns:
- the left typed element, can
null
-
getRight
public org.eclipse.compare.ITypedElement getRight()Returns the right typed element.- Returns:
- the right typed element, can
null
-
getAncestor
public org.eclipse.compare.ITypedElement getAncestor()Returns the ancestor typed element.- Returns:
- the ancestor typed element, may be
null
-
setLeft
public void setLeft(org.eclipse.compare.ITypedElement leftTypedElement) Sets the left typed element.- Parameters:
leftTypedElement
- the left typed element to set, cannot benull
-
setRight
public void setRight(org.eclipse.compare.ITypedElement rightTypedElement) Sets the right typed element.- Parameters:
rightTypedElement
- the right typed element to set, cannot benull
-
setAncestor
public void setAncestor(org.eclipse.compare.ITypedElement ancestorTypedElement) Sets the ancestor typed element.- Parameters:
ancestorTypedElement
- the ancestor typed element to set, cannot benull
-
prepareCompareInput
protected org.eclipse.compare.structuremergeviewer.ICompareInput prepareCompareInput(org.eclipse.core.runtime.IProgressMonitor monitor) throws InvocationTargetException, InterruptedException - Specified by:
prepareCompareInput
in classorg.eclipse.team.ui.synchronize.SaveableCompareEditorInput
- Throws:
InvocationTargetException
InterruptedException
-
fireInputChange
public void fireInputChange()- Specified by:
fireInputChange
in classorg.eclipse.team.ui.synchronize.SaveableCompareEditorInput
-
getOKButtonLabel
- Overrides:
getOKButtonLabel
in classorg.eclipse.compare.CompareEditorInput
-
createContentViewerSwitchingPane
protected org.eclipse.compare.CompareViewerSwitchingPane createContentViewerSwitchingPane(org.eclipse.compare.Splitter parent, int style, org.eclipse.compare.CompareEditorInput cei) - Overrides:
createContentViewerSwitchingPane
in classorg.eclipse.compare.CompareEditorInput
-