Class StringCompareEditorInput

  • 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 StringCompareEditorInput
    extends org.eclipse.compare.CompareEditorInput
    Extremely simple CompareEditorInput implementation which compares two Java strings. Created using the tips in this forum post.
    Author:
    Antonio García-Domínguez
    • Field Summary

      • Fields inherited from class org.eclipse.compare.CompareEditorInput

        DIRTY_STATE, PROP_SELECTED_EDITION, PROP_TITLE, PROP_TITLE_IMAGE
    • Constructor Summary

      Constructors 
      Constructor Description
      StringCompareEditorInput​(org.eclipse.compare.CompareConfiguration configuration, java.lang.String obtained, java.lang.String expected)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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, createContents, createContentViewerSwitchingPane, createDiffViewer, createOutlineContents, createStructureInputPane, exists, findContentViewer, findStructureViewer, firePropertyChange, flushLeftViewers, flushRightViewers, flushViewers, getActionBars, getAdapter, getCancelButtonLabel, getCompareConfiguration, getCompareResult, getContainer, getContentViewerDescriptor, getImageDescriptor, getMessage, getName, getNavigator, getOKButtonLabel, getPersistable, getSelectedEdition, getServiceLocator, getStructureViewerDescriptor, getTitle, getTitleImage, getToolTipText, getWorkbenchPart, handleDispose, isDirty, isEditionSelectionDialog, isLeftSaveNeeded, isRightSaveNeeded, isSaveNeeded, okPressed, registerContextMenu, removeCompareInputChangeListener, removePropertyChangeListener, run, run, runAsynchronously, save, saveChanges, setContainer, setContentViewerDescriptor, setDirty, setFocus, setFocus2, setHelpContextId, setLeftDirty, setMessage, setRightDirty, setStatusMessage, setStructureViewerDescriptor, setTitle
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StringCompareEditorInput

        public StringCompareEditorInput​(org.eclipse.compare.CompareConfiguration configuration,
                                        java.lang.String obtained,
                                        java.lang.String expected)
    • Method Detail

      • prepareInput

        protected java.lang.Object prepareInput​(org.eclipse.core.runtime.IProgressMonitor monitor)
                                         throws java.lang.reflect.InvocationTargetException,
                                                java.lang.InterruptedException
        Specified by:
        prepareInput in class org.eclipse.compare.CompareEditorInput
        Throws:
        java.lang.reflect.InvocationTargetException
        java.lang.InterruptedException