public final class SubmissionCompareEditorInput
extends org.eclipse.compare.CompareEditorInput
CompareEditorInput
implementation for comparing
problem output files.
TODO : Check for setMessage() and setAncestorLabel() content.Modifier and Type | Class and Description |
---|---|
private static class |
SubmissionCompareEditorInput.Item
Item wrapper class for compared file.
|
Modifier and Type | Field and Description |
---|---|
private org.eclipse.core.resources.IFile |
actual
Actual file.
|
private org.eclipse.core.resources.IFile |
expected
Expected file.
|
private static java.lang.String |
LEFT_LABEL
Label used for the left side of the compare editor.
|
private static java.lang.String |
RIGHT_LABEL
Label used for the right side of the compare editor.
|
private static java.lang.String |
TITLE
Editor title.
|
Modifier | Constructor and Description |
---|---|
private |
SubmissionCompareEditorInput(org.eclipse.compare.CompareConfiguration configuration,
org.eclipse.core.resources.IFile actual,
org.eclipse.core.resources.IFile expected)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
static SubmissionCompareEditorInput |
create(org.eclipse.core.resources.IFile actual,
org.eclipse.core.resources.IFile expected)
Static factory method that creates a
SubmissionCompareEditorInput from the given
actual and expected file. |
protected java.lang.Object |
prepareInput(org.eclipse.core.runtime.IProgressMonitor monitor) |
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
private static final java.lang.String TITLE
private static final java.lang.String LEFT_LABEL
private static final java.lang.String RIGHT_LABEL
private final org.eclipse.core.resources.IFile actual
private final org.eclipse.core.resources.IFile expected
private SubmissionCompareEditorInput(org.eclipse.compare.CompareConfiguration configuration, org.eclipse.core.resources.IFile actual, org.eclipse.core.resources.IFile expected)
configuration
- Editor configuration.actual
- Actual file.expected
- Expected file.protected java.lang.Object prepareInput(org.eclipse.core.runtime.IProgressMonitor monitor) throws java.lang.reflect.InvocationTargetException, java.lang.InterruptedException
prepareInput
in class org.eclipse.compare.CompareEditorInput
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException
public static SubmissionCompareEditorInput create(org.eclipse.core.resources.IFile actual, org.eclipse.core.resources.IFile expected)
SubmissionCompareEditorInput
from the given
actual and expected file.actual
- Actual file to be compared.expected
- Expected file to be compared.