public abstract class DiffViewerBase extends java.lang.Object implements FrameDiffTool.DiffViewer, DataProvider
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOG |
protected DiffContext |
myContext |
protected Project |
myProject |
protected ContentDiffRequest |
myRequest |
Constructor and Description |
---|
DiffViewerBase(DiffContext context,
ContentDiffRequest request) |
Modifier and Type | Method and Description |
---|---|
void |
abortRediff() |
void |
addListener(DiffViewerListener listener) |
protected java.util.List<AnAction> |
createPopupActions() |
protected java.util.List<AnAction> |
createToolbarActions() |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
protected boolean |
forceRediffSynchronously() |
DiffContext |
getContext() |
java.lang.Object |
getData(java.lang.String dataId)
Returns the object corresponding to the specified data identifier.
|
protected java.util.List<DiffViewerListener> |
getListeners() |
protected Navigatable |
getNavigatable() |
Project |
getProject() |
ContentDiffRequest |
getRequest() |
protected javax.swing.JComponent |
getStatusPanel() |
FrameDiffTool.ToolbarComponents |
init()
Should be called after adding
FrameDiffTool.DiffViewer.getComponent() to the components hierarchy. |
boolean |
isDisposed() |
protected void |
onAfterRediff() |
protected void |
onBeforeRediff() |
protected void |
onDispose() |
protected void |
onInit() |
protected void |
onSlowRediff() |
protected abstract java.lang.Runnable |
performRediff(ProgressIndicator indicator) |
protected void |
processContextHints() |
void |
rediff() |
void |
rediff(boolean trySync) |
void |
removeListener(DiffViewerListener listener) |
void |
scheduleRediff() |
protected boolean |
tryRediffSynchronously() |
protected void |
updateContextHints() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponent, getPreferredFocusedComponent
protected static final Logger LOG
protected final Project myProject
protected final DiffContext myContext
protected final ContentDiffRequest myRequest
public DiffViewerBase(DiffContext context, ContentDiffRequest request)
public final FrameDiffTool.ToolbarComponents init()
FrameDiffTool.DiffViewer
FrameDiffTool.DiffViewer.getComponent()
to the components hierarchy.init
in interface FrameDiffTool.DiffViewer
public final void dispose()
Disposable
dispose
in interface FrameDiffTool.DiffViewer
dispose
in interface Disposable
protected void processContextHints()
protected void updateContextHints()
public final void scheduleRediff()
public final void abortRediff()
public final void rediff()
public void rediff(boolean trySync)
public Project getProject()
public ContentDiffRequest getRequest()
public DiffContext getContext()
public boolean isDisposed()
protected boolean tryRediffSynchronously()
protected boolean forceRediffSynchronously()
protected java.util.List<AnAction> createToolbarActions()
protected java.util.List<AnAction> createPopupActions()
protected javax.swing.JComponent getStatusPanel()
protected void onInit()
protected void onSlowRediff()
protected void onBeforeRediff()
protected void onAfterRediff()
protected abstract java.lang.Runnable performRediff(ProgressIndicator indicator)
protected void onDispose()
protected Navigatable getNavigatable()
public void addListener(DiffViewerListener listener)
public void removeListener(DiffViewerListener listener)
protected java.util.List<DiffViewerListener> getListeners()
public java.lang.Object getData(java.lang.String dataId)
DataProvider
PlatformDataKeys
class.getData
in interface DataProvider
dataId
- the data identifier for which the value is requested.