public abstract class ThreesideTextDiffViewer extends ThreesideDiffViewer<TextEditorHolder>
Modifier and Type | Class and Description |
---|---|
protected class |
ThreesideTextDiffViewer.MyInitialScrollPositionHelper |
protected class |
ThreesideTextDiffViewer.MyToggleAutoScrollAction |
protected class |
ThreesideTextDiffViewer.TextShowPartialDiffAction |
ThreesideDiffViewer.PartialDiffMode, ThreesideDiffViewer.ShowPartialDiffAction
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
protected SetEditorSettingsAction |
myEditorSettingsAction |
protected SyncScrollSupport.ThreesideSyncScrollSupport |
mySyncScrollSupport |
myContentPanel, myLoadingPanel, myPanel
LOG, myContext, myProject, myRequest
Constructor and Description |
---|
ThreesideTextDiffViewer(DiffContext context,
ContentDiffRequest request) |
Modifier and Type | Method and Description |
---|---|
static boolean |
canShowRequest(DiffContext context,
DiffRequest request) |
protected java.util.List<TextEditorHolder> |
createEditorHolders(EditorHolderFactory<TextEditorHolder> factory) |
protected java.util.List<AnAction> |
createEditorPopupActions() |
protected java.util.List<javax.swing.JComponent> |
createTitles() |
void |
destroyEditorListeners() |
protected void |
disableSyncScrollSupport(boolean disable) |
DocumentContent |
getContent(ThreeSide side) |
protected java.util.List<? extends DocumentContent> |
getContents() |
DocumentContent |
getCurrentContent() |
EditorEx |
getCurrentEditor() |
java.lang.Object |
getData(java.lang.String dataId)
Returns the object corresponding to the specified data identifier.
|
protected java.util.List<? extends EditorEx> |
getEditableEditors() |
EditorEx |
getEditor(ThreeSide side) |
java.util.List<? extends EditorEx> |
getEditors() |
ThreeSide |
getEditorSide(Editor editor) |
protected Navigatable |
getNavigatable() |
protected abstract SyncScrollSupport.SyncScrollable |
getSyncScrollable(Side side) |
TextDiffSettings |
getTextSettings() |
protected void |
installEditorListeners() |
protected void |
onDispose() |
protected void |
onDocumentChange(DocumentEvent event) |
protected void |
onInit() |
protected void |
scrollToLine(ThreeSide side,
int line) |
protected LogicalPosition |
transferPosition(ThreeSide baseSide,
ThreeSide targetSide,
LogicalPosition position) |
canShowRequest, getComponent, getCurrentEditorHolder, getCurrentSide, getEditorHolders, getPreferredFocusedComponent, processContextHints, setCurrentSide, updateContextHints
createDocumentListener, createFileListener, onBeforeDocumentChange, onFileChange, onFileChange
abortRediff, addListener, createPopupActions, createToolbarActions, dispose, forceRediffSynchronously, getContext, getListeners, getProject, getRequest, getStatusPanel, init, isDisposed, onAfterRediff, onBeforeRediff, onSlowRediff, performRediff, rediff, rediff, removeListener, scheduleRediff, tryRediffSynchronously
protected SyncScrollSupport.ThreesideSyncScrollSupport mySyncScrollSupport
protected final SetEditorSettingsAction myEditorSettingsAction
public ThreesideTextDiffViewer(DiffContext context, ContentDiffRequest request)
protected void onInit()
onInit
in class ThreesideDiffViewer<TextEditorHolder>
protected void onDispose()
onDispose
in class ThreesideDiffViewer<TextEditorHolder>
protected java.util.List<TextEditorHolder> createEditorHolders(EditorHolderFactory<TextEditorHolder> factory)
createEditorHolders
in class ThreesideDiffViewer<TextEditorHolder>
protected java.util.List<javax.swing.JComponent> createTitles()
createTitles
in class ThreesideDiffViewer<TextEditorHolder>
protected void installEditorListeners()
public void destroyEditorListeners()
protected void disableSyncScrollSupport(boolean disable)
public TextDiffSettings getTextSettings()
protected java.util.List<AnAction> createEditorPopupActions()
protected void onDocumentChange(DocumentEvent event)
onDocumentChange
in class ListenerDiffViewerBase
public EditorEx getCurrentEditor()
public DocumentContent getCurrentContent()
protected java.util.List<? extends DocumentContent> getContents()
public java.util.List<? extends EditorEx> getEditors()
protected java.util.List<? extends EditorEx> getEditableEditors()
public DocumentContent getContent(ThreeSide side)
protected void scrollToLine(ThreeSide side, int line)
protected abstract SyncScrollSupport.SyncScrollable getSyncScrollable(Side side)
protected LogicalPosition transferPosition(ThreeSide baseSide, ThreeSide targetSide, LogicalPosition position)
protected Navigatable getNavigatable()
getNavigatable
in class ThreesideDiffViewer<TextEditorHolder>
public static boolean canShowRequest(DiffContext context, DiffRequest request)
public java.lang.Object getData(java.lang.String dataId)
DataProvider
PlatformDataKeys
class.getData
in interface DataProvider
getData
in class ThreesideDiffViewer<TextEditorHolder>
dataId
- the data identifier for which the value is requested.