org.eclipse.emf.compare.ui.editor
Class ModelCompareEditorInput

java.lang.Object
  extended by org.eclipse.compare.CompareEditorInput
      extended by org.eclipse.emf.compare.ui.editor.ModelCompareEditorInput
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

public class ModelCompareEditorInput
extends org.eclipse.compare.CompareEditorInput

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  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 ModelInputSnapshot as input.
 
Method Summary
 org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
          
 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)
          
 
Methods inherited from class org.eclipse.compare.CompareEditorInput
addCompareInputChangeListener, addPropertyChangeListener, belongsTo, cancelPressed, canRunAsJob, contentsCreated, contributeToToolBar, createDiffViewer, createStructureInputPane, dispose, 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, saveChanges, 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

contentMergeViewer

protected ModelContentMergeViewer contentMergeViewer
Content merge viewer of this CompareViewerPane. It represents the bottom splitted part of the view.


structureMergeViewer

protected ModelStructureMergeViewer structureMergeViewer
Structure merge viewer of this CompareViewerPane. It represents the top TreeViewer of the view.

Constructor Detail

ModelCompareEditorInput

public ModelCompareEditorInput(ComparisonSnapshot snapshot)
This constructor takes a ModelInputSnapshot as input.

Parameters:
snapshot - The ModelInputSnapshot loaded from an emfdiff.
Method Detail

createContents

public org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)

Overrides:
createContents in class org.eclipse.compare.CompareEditorInput
See Also:
CompareEditorInput.createContents(Composite)

createOutlineContents

public org.eclipse.swt.widgets.Control createOutlineContents(org.eclipse.swt.widgets.Composite parent,
                                                             int direction)

Overrides:
createOutlineContents in class org.eclipse.compare.CompareEditorInput
See Also:
CompareEditorInput.createOutlineContents(Composite, int)

prepareInput

protected java.lang.Object prepareInput(org.eclipse.core.runtime.IProgressMonitor monitor)

Specified by:
prepareInput in class org.eclipse.compare.CompareEditorInput
See Also:
CompareEditorInput.prepareInput(IProgressMonitor)

Copyright 2006 IBM Corporation and others.
All Rights Reserved.