public abstract class OnesideDiffViewer<T extends EditorHolder> extends ListenerDiffViewerBase
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
protected OnesideContentPanel |
myContentPanel |
protected SimpleDiffPanel |
myPanel |
LOG, myContext, myProject, myRequest
Constructor and Description |
---|
OnesideDiffViewer(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 T |
createEditorHolder(EditorHolderFactory<T> factory) |
protected javax.swing.JComponent |
createTitle() |
javax.swing.JComponent |
getComponent() |
protected DiffContent |
getContent() |
java.lang.Object |
getData(java.lang.String dataId)
Returns the object corresponding to the specified data identifier.
|
protected T |
getEditorHolder() |
protected Navigatable |
getNavigatable() |
javax.swing.JComponent |
getPreferredFocusedComponent() |
Side |
getSide() |
protected void |
onDispose() |
protected void |
onInit() |
createDocumentListener, createFileListener, onBeforeDocumentChange, onDocumentChange, onFileChange, onFileChange
abortRediff, addListener, createPopupActions, createToolbarActions, dispose, forceRediffSynchronously, getContext, getListeners, getProject, getRequest, getStatusPanel, init, isDisposed, onAfterRediff, onBeforeRediff, onSlowRediff, performRediff, processContextHints, rediff, rediff, removeListener, scheduleRediff, tryRediffSynchronously, updateContextHints
protected final SimpleDiffPanel myPanel
protected final OnesideContentPanel myContentPanel
public OnesideDiffViewer(DiffContext context, ContentDiffRequest request, EditorHolderFactory<T> factory)
protected void onInit()
onInit
in class ListenerDiffViewerBase
protected void onDispose()
onDispose
in class DiffViewerBase
protected T createEditorHolder(EditorHolderFactory<T> factory)
protected javax.swing.JComponent createTitle()
public javax.swing.JComponent getComponent()
public javax.swing.JComponent getPreferredFocusedComponent()
public Side getSide()
protected DiffContent getContent()
protected T getEditorHolder()
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)