public class ListCompareView extends SequenceCompareView
SequenceCompareView.OverviewComponent, SequenceCompareView.OverviewComponentMouseHandlerBaseCompareView.CentralGutterMouseHandler, BaseCompareView.ContributorBias, BaseCompareView.CustomFocusTraversalPolicy, BaseCompareView.PositionListener_centerScrollPane, _centerTitle, _leftDiffGutter, _leftOverview, _leftScrollPane, _leftTitle, _rightDiffGutter, _rightOverview, _rightScrollPane, _rightTitle, GUI_VERTICAL_SCROLLBAR, GUI_VERTICAL_SPACER| Constructor and Description |
|---|
ListCompareView() |
ListCompareView(CompareMode compareMode) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDefaultActionListener(java.awt.event.ActionListener l) |
void |
addPopupManager(ComparePopupManager popupManager)
Add a popup manager to this view.
|
protected boolean |
canReadElement(CompareDifference difference,
ContributorKind contributorKind) |
protected boolean |
canWriteElement(CompareDifference difference,
ContributorKind contributorKind) |
protected javax.swing.JScrollPane |
createHorizontalScrollPane(java.awt.Component view) |
protected javax.swing.Action |
createInsertBlockAction(oracle.javatools.compare.algorithm.BaseCompareDifference difference,
ContributorKind contributor,
ContributorKind adjacentContributor) |
protected void |
createOverviews() |
protected void |
deleteBlock(oracle.javatools.compare.algorithm.BaseCompareDifference difference,
ContributorKind contributorKind)
Remove the specified difference block from the specified contributor.
|
protected ContributorKind |
getCurrentContributorKind() |
protected CompareDifference |
getCurrentDifference() |
protected java.util.Iterator |
getDiffBlockIterator()
Get an iterator over the diff blocks in the model.
|
protected java.awt.Component |
getFocusableCenterEditor() |
java.awt.Component |
getFocusComponent() |
protected CompareDifference |
getNextConflict() |
protected CompareDifference |
getNextDifference() |
protected java.awt.Color |
getOverviewDifferenceColor(oracle.javatools.compare.algorithm.sequence.SequenceCompareDifference differenceBlock,
boolean isLeft,
ContributorKind firstContributorKind,
ContributorKind secondContributorKind) |
protected java.awt.Component |
getOverviewLeftEditor() |
protected java.awt.Component |
getOverviewRightEditor() |
protected CompareDifference |
getPreviousConflict() |
protected CompareDifference |
getPreviousDifference() |
java.lang.Object[] |
getSelectionForCompare() |
protected int |
getVirtualHeightLines(ContributorKind contributor)
Get the virtual height of the compare view in lines.
|
protected void |
goToDifference(CompareDifference difference,
boolean requestFocus) |
protected void |
initializeView(CompareModel compareModel) |
protected void |
insertBlockCopy(oracle.javatools.compare.algorithm.BaseCompareDifference difference,
ContributorKind fromContributorKind,
ContributorKind toContributorKind)
Take a copy of the block from the specified contributor and insert
it into the other contributor after the change.
|
boolean |
isSelectionComparable() |
protected boolean |
isViewFocusOwner() |
void |
removeDefaultActionListener(java.awt.event.ActionListener l) |
void |
removePopupManager(ComparePopupManager popupManager)
Remove a popup manager from this view.
|
protected void |
replaceBlock(oracle.javatools.compare.algorithm.BaseCompareDifference difference,
ContributorKind fromContributorKind,
ContributorKind toContributorKind)
Take a copy of the block from the specified contributor and replace the
text of the adjacent contributor with the text.
|
protected void |
updateModelImpl()
Reapplies the specified model to the view.
|
protected void |
verticalScrollTo(int virtualLine) |
createModel, getVirtualLineForReal, initializeOverviewacceptLeftThenRightSide, acceptRightThenLeftSide, addPositionListener, addStatusListener, addViewEditListener, attachContributorChangeListeners, calculateRightEditorInset, createDeleteBlockAction, createFocusTraversalPolicy, createMarkAllResolvedAction, createMarkResolvedAction, createMemento, createModel, createMutableModel, createReplaceBlockAction, detachContributorChangeListeners, dispose, firePositionChanged, fireStatusChanged, fireViewEditEvent, getAdjacentContributorKind, getAdjacentContributorKind, getAnnotations, getBias, getBundle, getCenterScrollPane, getCenterTitle, getCompareMode, getCompareModel, getContributor, getDecorations, getDefaultEditAction, getDefaultEditActionIcon, getEditActions, getEditActions, getFocusContributor, getGUI, getHorizontalScrollBars, getHorizontalScrollComponent, getLeftDiffGutter, getLeftOrCenterSplitter, getLeftOverview, getLeftScrollPane, getLeftTitle, getLowPriorityEditActions, getLowPriorityEditActions, getModel, getOverviewWidth, getPanelBounds, getPopupManager, getRightDiffGutter, getRightOverview, getRightScrollPane, getRightSplitter, getRightTitle, getSplitPanel, getSplitterLocation, getToolTipProvider, getUndoableEditListeners, getVerticalScrollbar, getVerticalScrollBar, getVerticalScrollCardLayout, getVerticalScrollPanel, getViewEditListeners, goToDifference, goToFirstConflict, goToFirstDifference, goToInitialDifference, goToLastConflict, goToLastDifference, goToNextConflict, goToNextDifference, goToPreviousConflict, goToPreviousDifference, hasCurrentDifference, hasDefaultEditAction, hasNavigableConflicts, hasNavigableDifferences, hasNextConflict, hasNextDifference, hasPreviousConflict, hasPreviousDifference, horizontalScrollTo, initScrollPane, isAddition, isEditable, isEditLocked, isOverviewFocusOwner, isRemoval, isSyncVerticalScroll, markAllResolved, markResolved, moveTo, moveToLine, registerViewAnnotate, registerViewDecoration, registerViewDecoration, removePositionListener, removeStatusListener, removeViewEditListener, repaintDiffGutters, resetGUI, setCenterScrollPane, setCompareModel, setEditLocked, setLeftDiffGutter, setLeftScrollPane, setMemento, setModel, setRightDiffGutter, setRightScrollPane, setSplitPanel, setSplitterLocation, setSplitterLocation, setSyncVerticalScroll, setToolTipProvider, updateModel, updateOnEdit, updateTitlespublic ListCompareView()
public ListCompareView(CompareMode compareMode)
public java.awt.Component getFocusComponent()
getFocusComponent in class BaseCompareViewprotected void initializeView(CompareModel compareModel)
initializeView in class BaseCompareViewprotected void updateModelImpl()
BaseCompareViewupdateModelImpl in class BaseCompareViewprotected java.awt.Component getOverviewLeftEditor()
getOverviewLeftEditor in class BaseCompareViewprotected java.awt.Component getOverviewRightEditor()
getOverviewRightEditor in class BaseCompareViewprotected java.awt.Component getFocusableCenterEditor()
getFocusableCenterEditor in class BaseCompareViewprotected javax.swing.JScrollPane createHorizontalScrollPane(java.awt.Component view)
createHorizontalScrollPane in class BaseCompareViewprotected java.awt.Color getOverviewDifferenceColor(oracle.javatools.compare.algorithm.sequence.SequenceCompareDifference differenceBlock,
boolean isLeft,
ContributorKind firstContributorKind,
ContributorKind secondContributorKind)
getOverviewDifferenceColor in class SequenceCompareViewprotected int getVirtualHeightLines(ContributorKind contributor)
SequenceCompareViewgetVirtualHeightLines in class SequenceCompareViewprotected void verticalScrollTo(int virtualLine)
verticalScrollTo in class BaseCompareViewprotected java.util.Iterator getDiffBlockIterator()
SequenceCompareViewgetDiffBlockIterator in class SequenceCompareViewprotected CompareDifference getPreviousDifference()
getPreviousDifference in class BaseCompareViewprotected CompareDifference getNextDifference()
getNextDifference in class BaseCompareViewprotected CompareDifference getPreviousConflict()
getPreviousConflict in class BaseCompareViewprotected CompareDifference getNextConflict()
getNextConflict in class BaseCompareViewprotected CompareDifference getCurrentDifference()
getCurrentDifference in class BaseCompareViewprotected ContributorKind getCurrentContributorKind()
getCurrentContributorKind in class BaseCompareViewprotected void goToDifference(CompareDifference difference, boolean requestFocus)
goToDifference in class BaseCompareViewprotected boolean isViewFocusOwner()
isViewFocusOwner in class BaseCompareViewprotected javax.swing.Action createInsertBlockAction(oracle.javatools.compare.algorithm.BaseCompareDifference difference,
ContributorKind contributor,
ContributorKind adjacentContributor)
createInsertBlockAction in class BaseCompareViewprotected void replaceBlock(oracle.javatools.compare.algorithm.BaseCompareDifference difference,
ContributorKind fromContributorKind,
ContributorKind toContributorKind)
BaseCompareViewreplaceBlock in class BaseCompareViewdifference - the block to changefromContributorKind - the contributor to copy fromtoContributorKind - the contributor whose block will be replaced.protected void insertBlockCopy(oracle.javatools.compare.algorithm.BaseCompareDifference difference,
ContributorKind fromContributorKind,
ContributorKind toContributorKind)
BaseCompareViewinsertBlockCopy in class BaseCompareViewdifference - the block to copyfromContributorKind - the contributor to copy fromtoContributorKind - the contributor to copy toprotected void deleteBlock(oracle.javatools.compare.algorithm.BaseCompareDifference difference,
ContributorKind contributorKind)
BaseCompareViewdeleteBlock in class BaseCompareViewdifference - the block to removecontributorKind - the contributor to remove the block frompublic void addPopupManager(ComparePopupManager popupManager)
ActionMenuViewaddPopupManager in interface ActionMenuViewaddPopupManager in class BaseCompareViewpopupManager - the popup manager to attachpublic void removePopupManager(ComparePopupManager popupManager)
ActionMenuViewremovePopupManager in interface ActionMenuViewremovePopupManager in class BaseCompareViewpopupManager - the popup manager to removeprotected boolean canReadElement(CompareDifference difference, ContributorKind contributorKind)
canReadElement in class BaseCompareViewprotected boolean canWriteElement(CompareDifference difference, ContributorKind contributorKind)
canWriteElement in class BaseCompareViewpublic boolean isSelectionComparable()
public java.lang.Object[] getSelectionForCompare()
public void addDefaultActionListener(java.awt.event.ActionListener l)
public void removeDefaultActionListener(java.awt.event.ActionListener l)
protected void createOverviews()
createOverviews in class SequenceCompareView