public abstract class TwosideDiffViewer<T extends EditorHolder> extends ListenerDiffViewerBase
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
protected TwosideContentPanel |
myContentPanel |
protected SimpleDiffPanel |
myPanel |
LOG, myContext, myProject, myRequest
Constructor and Description |
---|
TwosideDiffViewer(DiffContext context,
ContentDiffRequest request,
EditorHolderFactory<T> factory) |
Modifier and Type | Method and Description |
---|---|
static <T extends EditorHolder> |
canShowRequest(DiffContext context,
DiffRequest request,
EditorHolderFactory<T> factory) |
protected java.util.List<T> |
createEditorHolders(EditorHolderFactory<T> factory) |
protected java.util.List<javax.swing.JComponent> |
createTitles() |
javax.swing.JComponent |
getComponent() |
protected T |
getCurrentEditorHolder() |
Side |
getCurrentSide() |
java.lang.Object |
getData(java.lang.String dataId)
Returns the object corresponding to the specified data identifier.
|
protected java.util.List<T> |
getEditorHolders() |
protected Navigatable |
getNavigatable() |
javax.swing.JComponent |
getPreferredFocusedComponent() |
protected void |
onDispose() |
protected void |
onInit() |
protected void |
processContextHints() |
protected void |
setCurrentSide(Side side) |
protected void |
updateContextHints() |
createDocumentListener, createFileListener, onBeforeDocumentChange, onDocumentChange, 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 SimpleDiffPanel myPanel
protected final TwosideContentPanel myContentPanel
public TwosideDiffViewer(DiffContext context, ContentDiffRequest request, EditorHolderFactory<T> factory)
protected void onInit()
onInit
in class ListenerDiffViewerBase
protected void onDispose()
onDispose
in class DiffViewerBase
protected void processContextHints()
processContextHints
in class DiffViewerBase
protected void updateContextHints()
updateContextHints
in class DiffViewerBase
protected java.util.List<T> createEditorHolders(EditorHolderFactory<T> factory)
protected java.util.List<javax.swing.JComponent> createTitles()
public javax.swing.JComponent getComponent()
public javax.swing.JComponent getPreferredFocusedComponent()
public Side getCurrentSide()
protected void setCurrentSide(Side side)
protected java.util.List<T> getEditorHolders()
protected T getCurrentEditorHolder()
public java.lang.Object getData(java.lang.String dataId)
DataProvider
PlatformDataKeys
class.getData
in interface DataProvider
getData
in class DiffViewerBase
dataId
- the data identifier for which the value is requested.protected Navigatable getNavigatable()
getNavigatable
in class DiffViewerBase
public static <T extends EditorHolder> boolean canShowRequest(DiffContext context, DiffRequest request, EditorHolderFactory<T> factory)