public abstract class TwosideTextDiffViewer extends TwosideDiffViewer<TextEditorHolder>
Modifier and Type | Class and Description |
---|---|
protected class |
TwosideTextDiffViewer.MyInitialScrollPositionHelper |
protected class |
TwosideTextDiffViewer.MyToggleAutoScrollAction |
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
protected SetEditorSettingsAction |
myEditorSettingsAction |
myContentPanel, myPanel
LOG, myContext, myProject, myRequest
Constructor and Description |
---|
TwosideTextDiffViewer(DiffContext context,
ContentDiffRequest request) |
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 final SetEditorSettingsAction myEditorSettingsAction
public TwosideTextDiffViewer(DiffContext context, ContentDiffRequest request)
protected void onInit()
onInit
in class TwosideDiffViewer<TextEditorHolder>
protected void onDispose()
onDispose
in class TwosideDiffViewer<TextEditorHolder>
protected java.util.List<TextEditorHolder> createEditorHolders(EditorHolderFactory<TextEditorHolder> factory)
createEditorHolders
in class TwosideDiffViewer<TextEditorHolder>
protected java.util.List<javax.swing.JComponent> createTitles()
createTitles
in class TwosideDiffViewer<TextEditorHolder>
public TextDiffSettings getTextSettings()
protected java.util.List<AnAction> createEditorPopupActions()
protected void onDocumentChange(DocumentEvent event)
onDocumentChange
in class ListenerDiffViewerBase
protected void installEditorListeners()
protected void destroyEditorListeners()
protected void disableSyncScrollSupport(boolean disable)
protected java.util.List<? extends DocumentContent> getContents()
public java.util.List<? extends EditorEx> getEditors()
protected java.util.List<? extends EditorEx> getEditableEditors()
public EditorEx getCurrentEditor()
public DocumentContent getCurrentContent()
public EditorEx getEditor1()
public EditorEx getEditor2()
public DocumentContent getContent(Side side)
public DocumentContent getContent1()
public DocumentContent getContent2()
public SyncScrollSupport.TwosideSyncScrollSupport getSyncScrollSupport()
protected void scrollToLine(Side side, int line)
protected abstract SyncScrollSupport.SyncScrollable getSyncScrollable()
protected Navigatable getNavigatable()
getNavigatable
in class TwosideDiffViewer<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 TwosideDiffViewer<TextEditorHolder>
dataId
- the data identifier for which the value is requested.