public abstract class DiffRequestProcessor extends java.lang.Object implements Disposable
Modifier and Type | Class and Description |
---|---|
protected class |
DiffRequestProcessor.MyNextChangeAction |
protected class |
DiffRequestProcessor.MyNextDifferenceAction |
protected class |
DiffRequestProcessor.MyOpenInEditorAction |
protected class |
DiffRequestProcessor.MyPrevChangeAction |
protected class |
DiffRequestProcessor.MyPrevDifferenceAction |
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
protected Wrapper |
myContentPanel |
protected Wrapper |
myToolbarWrapper |
Constructor and Description |
---|
DiffRequestProcessor(Project project) |
DiffRequestProcessor(Project project,
java.lang.String place) |
DiffRequestProcessor(Project project,
UserDataHolder context) |
Modifier and Type | Method and Description |
---|---|
protected void |
applyRequest(DiffRequest request,
boolean force,
DiffUserDataKeysEx.ScrollToPolicy scrollToChangePolicy) |
protected void |
applyRequest(DiffRequest request,
boolean force,
DiffUserDataKeysEx.ScrollToPolicy scrollToChangePolicy,
boolean sync) |
protected void |
buildActionPopup(java.util.List<? extends AnAction> viewerActions) |
protected void |
buildToolbar(java.util.List<? extends AnAction> viewerActions) |
protected void |
collectPopupActions(java.util.List<? extends AnAction> viewerActions) |
protected void |
collectToolbarActions(java.util.List<? extends AnAction> viewerActions) |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
javax.swing.JComponent |
getComponent() |
DiffContext |
getContext() |
<T> T |
getContextUserData(Key<T> key) |
protected java.util.List<AnAction> |
getNavigationActions() |
javax.swing.JComponent |
getPreferredFocusedComponent() |
Project |
getProject() |
protected DiffSettings |
getSettings() |
protected java.util.List<DiffTool> |
getToolOrderFromSettings(java.util.List<? extends DiffTool> availableTools) |
protected void |
goToNextChange(boolean fromDifferences) |
protected void |
goToPrevChange(boolean fromDifferences) |
protected boolean |
hasNextChange(boolean fromUpdate) |
protected boolean |
hasPrevChange(boolean fromUpdate) |
boolean |
isDisposed() |
protected boolean |
isNavigationEnabled() |
protected boolean |
isWindowFocused() |
protected void |
onAfterNavigate() |
protected void |
onDispose() |
protected static void |
patchShortcutSet(AnAction action,
java.lang.String originalActionId,
java.lang.String replacementActionId) |
<T> void |
putContextUserData(Key<T> key,
T value) |
protected void |
reloadRequest() |
protected void |
setWindowTitle(java.lang.String title) |
protected boolean |
shouldAddToolbarBottomBorder(FrameDiffTool.ToolbarComponents toolbarComponents) |
void |
updateRequest() |
void |
updateRequest(boolean force) |
abstract void |
updateRequest(boolean force,
DiffUserDataKeysEx.ScrollToPolicy scrollToChangePolicy) |
protected void |
updateToolOrderSettings(java.util.List<? extends DiffTool> toolOrder) |
protected final Wrapper myContentPanel
protected final Wrapper myToolbarWrapper
public DiffRequestProcessor(Project project)
public DiffRequestProcessor(Project project, java.lang.String place)
public DiffRequestProcessor(Project project, UserDataHolder context)
protected boolean shouldAddToolbarBottomBorder(FrameDiffTool.ToolbarComponents toolbarComponents)
protected void reloadRequest()
public void updateRequest()
public void updateRequest(boolean force)
public abstract void updateRequest(boolean force, DiffUserDataKeysEx.ScrollToPolicy scrollToChangePolicy)
protected void applyRequest(DiffRequest request, boolean force, DiffUserDataKeysEx.ScrollToPolicy scrollToChangePolicy)
protected void applyRequest(DiffRequest request, boolean force, DiffUserDataKeysEx.ScrollToPolicy scrollToChangePolicy, boolean sync)
protected void setWindowTitle(java.lang.String title)
protected void onAfterNavigate()
protected void onDispose()
public <T> T getContextUserData(Key<T> key)
public <T> void putContextUserData(Key<T> key, T value)
protected java.util.List<AnAction> getNavigationActions()
protected boolean isWindowFocused()
protected java.util.List<DiffTool> getToolOrderFromSettings(java.util.List<? extends DiffTool> availableTools)
protected void updateToolOrderSettings(java.util.List<? extends DiffTool> toolOrder)
public void dispose()
Disposable
dispose
in interface Disposable
protected void collectToolbarActions(java.util.List<? extends AnAction> viewerActions)
protected void collectPopupActions(java.util.List<? extends AnAction> viewerActions)
protected void buildToolbar(java.util.List<? extends AnAction> viewerActions)
protected void buildActionPopup(java.util.List<? extends AnAction> viewerActions)
public javax.swing.JComponent getComponent()
public javax.swing.JComponent getPreferredFocusedComponent()
public Project getProject()
public DiffContext getContext()
protected DiffSettings getSettings()
public boolean isDisposed()
protected boolean hasNextChange(boolean fromUpdate)
protected boolean hasPrevChange(boolean fromUpdate)
protected void goToNextChange(boolean fromDifferences)
protected void goToPrevChange(boolean fromDifferences)
protected boolean isNavigationEnabled()
protected static void patchShortcutSet(AnAction action, java.lang.String originalActionId, java.lang.String replacementActionId)