|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.runtime.PlatformObject
org.eclipse.compare.CompareEditorInput
org.eclipse.emf.compare.ui.editor.ModelCompareEditorInput
public class ModelCompareEditorInput
This will be used as input for the CompareEditor used for the edition of emfdiff files.
Field Summary | |
---|---|
protected ModelContentMergeViewer |
contentMergeViewer
Content merge viewer of this CompareViewerPane . |
protected ComparisonSnapshot |
inputSnapshot
ComparisonSnapshot result of the underlying comparison. |
protected ModelCompareInput |
preparedInput
This is the input that will be used throughout. |
protected ModelStructureMergeViewer |
structureMergeViewer
Structure merge viewer of this CompareViewerPane . |
Fields inherited from class org.eclipse.compare.CompareEditorInput |
---|
DIRTY_STATE, PROP_SELECTED_EDITION, PROP_TITLE, PROP_TITLE_IMAGE |
Constructor Summary | |
---|---|
ModelCompareEditorInput(ComparisonSnapshot snapshot)
This constructor takes a ComparisonSnapshot as input. |
Method Summary | |
---|---|
org.eclipse.swt.widgets.Control |
createContents(org.eclipse.swt.widgets.Composite parent)
|
protected ModelContentMergeViewer |
createMergeViewer(org.eclipse.compare.CompareViewerPane pane,
org.eclipse.compare.CompareConfiguration config)
Creates and returns the merge viewer constituting the content of this
compare editor input. |
protected ModelCompareInput |
createModelCompareInput(ComparisonSnapshot snap)
Creates the ModelCompareInput for this editor input. |
org.eclipse.swt.widgets.Control |
createOutlineContents(org.eclipse.swt.widgets.Composite parent,
int direction)
|
protected java.lang.Object |
prepareInput(org.eclipse.core.runtime.IProgressMonitor monitor)
|
void |
saveChanges(org.eclipse.core.runtime.IProgressMonitor monitor)
|
Methods inherited from class org.eclipse.compare.CompareEditorInput |
---|
addCompareInputChangeListener, addPropertyChangeListener, belongsTo, cancelPressed, canRunAsJob, contentsCreated, contributeToToolBar, createContentViewerSwitchingPane, createDiffViewer, createStructureInputPane, exists, findContentViewer, findStructureViewer, firePropertyChange, flushViewers, getActionBars, getAdapter, getCancelButtonLabel, getCompareConfiguration, getCompareResult, getContainer, getContentViewerDescriptor, getImageDescriptor, getMessage, getName, getNavigator, getOKButtonLabel, getPersistable, getSelectedEdition, getServiceLocator, getStructureViewerDescriptor, getTitle, getTitleImage, getToolTipText, getWorkbenchPart, handleDispose, isDirty, isEditionSelectionDialog, isSaveNeeded, okPressed, registerContextMenu, removeCompareInputChangeListener, removePropertyChangeListener, run, run, runAsynchronously, save, setContainer, setContentViewerDescriptor, setDirty, setFocus, setFocus2, setHelpContextId, setMessage, setStatusMessage, setStructureViewerDescriptor, setTitle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ModelContentMergeViewer contentMergeViewer
CompareViewerPane
. It represents the bottom
splitted part of the view.
protected final ComparisonSnapshot inputSnapshot
ComparisonSnapshot
result of the underlying comparison.
protected ModelCompareInput preparedInput
protected ModelStructureMergeViewer structureMergeViewer
CompareViewerPane
. It represents the top
TreeViewer of the view.
Constructor Detail |
---|
public ModelCompareEditorInput(ComparisonSnapshot snapshot)
ComparisonSnapshot
as input.
snapshot
- The ComparisonSnapshot
loaded from an emfdiff.Method Detail |
---|
public void saveChanges(org.eclipse.core.runtime.IProgressMonitor monitor)
saveChanges
in class org.eclipse.compare.CompareEditorInput
CompareEditorInput.saveChanges(org.eclipse.core.runtime.IProgressMonitor)
public org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
createContents
in class org.eclipse.compare.CompareEditorInput
CompareEditorInput.createContents(Composite)
protected ModelContentMergeViewer createMergeViewer(org.eclipse.compare.CompareViewerPane pane, org.eclipse.compare.CompareConfiguration config)
merge viewer
constituting the content of this
compare editor input. Clients may override this method in order to create their own merge viewer.
pane
- The compare viewer pane to use as a parent composite for the viewer to create.config
- The compare configuration
to consider.
merge viewer
constituting the content of this compare
editor input.public org.eclipse.swt.widgets.Control createOutlineContents(org.eclipse.swt.widgets.Composite parent, int direction)
createOutlineContents
in class org.eclipse.compare.CompareEditorInput
CompareEditorInput.createOutlineContents(Composite, int)
protected java.lang.Object prepareInput(org.eclipse.core.runtime.IProgressMonitor monitor)
prepareInput
in class org.eclipse.compare.CompareEditorInput
CompareEditorInput.prepareInput(IProgressMonitor)
protected ModelCompareInput createModelCompareInput(ComparisonSnapshot snap)
snap
- Snapshot of the current comparison.
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |