public class SimpleDiffViewer extends TwosideTextDiffViewer
Modifier and Type | Class and Description |
---|---|
class |
SimpleDiffViewer.ModifierProvider |
protected class |
SimpleDiffViewer.SelectedChangesActionBase |
TwosideTextDiffViewer.MyInitialScrollPositionHelper, TwosideTextDiffViewer.MyToggleAutoScrollAction
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
protected TwosideTextDiffProvider |
myTextDiffProvider |
myEditorSettingsAction
myContentPanel, myPanel
LOG, myContext, myProject, myRequest
Constructor and Description |
---|
SimpleDiffViewer(DiffContext context,
DiffRequest request) |
Modifier and Type | Method and Description |
---|---|
void |
appendChange(SimpleDiffChange change,
Side sourceSide) |
protected java.lang.Runnable |
apply(java.util.List<SimpleDiffChange> changes,
boolean isContentsEqual) |
protected java.lang.Runnable |
applyNotification(javax.swing.JComponent notification) |
static boolean |
canShowRequest(DiffContext context,
DiffRequest request) |
protected java.lang.Runnable |
computeDifferences(ProgressIndicator indicator) |
protected java.util.List<AnAction> |
createEditorPopupActions() |
protected java.util.List<AnAction> |
createPopupActions() |
protected java.util.List<AnAction> |
createToolbarActions() |
protected SimpleDiffChangeUi |
createUi(SimpleDiffChange change) |
protected boolean |
doScrollToChange(DiffUserDataKeysEx.ScrollToPolicy scrollToPolicy) |
protected boolean |
doScrollToContext(DiffNavigationContext context) |
java.lang.Object |
getData(java.lang.String dataId)
Returns the object corresponding to the specified data identifier.
|
protected java.util.List<SimpleDiffChange> |
getDiffChanges() |
FoldingModelSupport.Settings |
getFoldingModelSettings() |
KeyboardModifierListener |
getModifierProvider() |
protected SimpleDiffChange |
getSelectedChange(Side side) |
protected java.util.List<SimpleDiffChange> |
getSelectedChanges(Side side) |
protected StatusPanel |
getStatusPanel() |
protected SyncScrollSupport.SyncScrollable |
getSyncScrollable() |
SyncScrollSupport.TwosideSyncScrollSupport |
getSyncScrollSupport() |
protected boolean |
isEditable(Side side) |
protected boolean |
isSomeChangeSelected(Side side) |
protected void |
onBeforeDocumentChange(DocumentEvent e) |
protected void |
onDispose() |
protected void |
onInit() |
protected void |
onSlowRediff() |
protected java.lang.Runnable |
performRediff(ProgressIndicator indicator) |
protected void |
processContextHints() |
void |
replaceChange(SimpleDiffChange change,
Side sourceSide) |
protected void |
updateContextHints() |
createEditorHolders, createTitles, destroyEditorListeners, disableSyncScrollSupport, getContent, getContent1, getContent2, getContents, getCurrentContent, getCurrentEditor, getEditableEditors, getEditor, getEditor1, getEditor2, getEditors, getNavigatable, getTextSettings, installEditorListeners, onDocumentChange, scrollToLine, transferPosition
canShowRequest, getComponent, getCurrentEditorHolder, getCurrentSide, getEditorHolders, getPreferredFocusedComponent, setCurrentSide
createDocumentListener, createFileListener, onFileChange, onFileChange
abortRediff, addListener, dispose, forceRediffSynchronously, getContext, getListeners, getProject, getRequest, init, isDisposed, onAfterRediff, onBeforeRediff, rediff, rediff, removeListener, scheduleRediff, tryRediffSynchronously
protected final TwosideTextDiffProvider myTextDiffProvider
public SimpleDiffViewer(DiffContext context, DiffRequest request)
protected void onInit()
onInit
in class TwosideTextDiffViewer
protected void onDispose()
onDispose
in class TwosideTextDiffViewer
protected java.util.List<AnAction> createToolbarActions()
createToolbarActions
in class DiffViewerBase
protected java.util.List<AnAction> createPopupActions()
createPopupActions
in class DiffViewerBase
protected java.util.List<AnAction> createEditorPopupActions()
createEditorPopupActions
in class TwosideTextDiffViewer
protected void processContextHints()
processContextHints
in class TwosideDiffViewer<TextEditorHolder>
protected void updateContextHints()
updateContextHints
in class TwosideDiffViewer<TextEditorHolder>
protected SimpleDiffChangeUi createUi(SimpleDiffChange change)
public FoldingModelSupport.Settings getFoldingModelSettings()
protected void onSlowRediff()
onSlowRediff
in class DiffViewerBase
protected java.lang.Runnable performRediff(ProgressIndicator indicator)
performRediff
in class DiffViewerBase
protected java.lang.Runnable computeDifferences(ProgressIndicator indicator)
protected java.lang.Runnable apply(java.util.List<SimpleDiffChange> changes, boolean isContentsEqual)
protected java.lang.Runnable applyNotification(javax.swing.JComponent notification)
protected void onBeforeDocumentChange(DocumentEvent e)
onBeforeDocumentChange
in class ListenerDiffViewerBase
protected boolean doScrollToChange(DiffUserDataKeysEx.ScrollToPolicy scrollToPolicy)
protected boolean doScrollToContext(DiffNavigationContext context)
protected java.util.List<SimpleDiffChange> getDiffChanges()
protected SyncScrollSupport.SyncScrollable getSyncScrollable()
getSyncScrollable
in class TwosideTextDiffViewer
protected StatusPanel getStatusPanel()
getStatusPanel
in class DiffViewerBase
public KeyboardModifierListener getModifierProvider()
public SyncScrollSupport.TwosideSyncScrollSupport getSyncScrollSupport()
getSyncScrollSupport
in class TwosideTextDiffViewer
protected boolean isEditable(Side side)
public static boolean canShowRequest(DiffContext context, DiffRequest request)
protected boolean isSomeChangeSelected(Side side)
protected java.util.List<SimpleDiffChange> getSelectedChanges(Side side)
protected SimpleDiffChange getSelectedChange(Side side)
public void replaceChange(SimpleDiffChange change, Side sourceSide)
public void appendChange(SimpleDiffChange change, Side sourceSide)
public java.lang.Object getData(java.lang.String dataId)
DataProvider
PlatformDataKeys
class.getData
in interface DataProvider
getData
in class TwosideTextDiffViewer
dataId
- the data identifier for which the value is requested.