public abstract class ChangeViewDiffRequestProcessor extends CacheDiffRequestProcessor.Simple implements DiffPreviewUpdateProcessor
Modifier and Type | Class and Description |
---|---|
protected static class |
ChangeViewDiffRequestProcessor.ChangeWrapper |
protected static class |
ChangeViewDiffRequestProcessor.UnversionedFileWrapper |
protected static class |
ChangeViewDiffRequestProcessor.Wrapper |
CacheDiffRequestProcessor.ReloadRequestAction, CacheDiffRequestProcessor.Simple
DiffRequestProcessor.MyNextChangeAction, DiffRequestProcessor.MyNextDifferenceAction, DiffRequestProcessor.MyOpenInEditorAction, DiffRequestProcessor.MyPrevChangeAction, DiffRequestProcessor.MyPrevDifferenceAction
Disposable.Parent
myContentPanel, myToolbarWrapper
Constructor and Description |
---|
ChangeViewDiffRequestProcessor(Project project,
java.lang.String place) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Notify currently shown diff that it's not needed now and cached values can be reset, a.e.
|
protected abstract java.util.stream.Stream<ChangeViewDiffRequestProcessor.Wrapper> |
getAllChanges() |
java.lang.String |
getCurrentChangeName() |
protected DiffRequestProducer |
getCurrentRequestProvider() |
Project |
getProject() |
protected abstract java.util.stream.Stream<ChangeViewDiffRequestProcessor.Wrapper> |
getSelectedChanges() |
protected void |
goToNextChange(boolean fromDifferences) |
protected void |
goToPrevChange(boolean fromDifferences) |
protected boolean |
hasNextChange(boolean fromUpdate) |
protected boolean |
hasPrevChange(boolean fromUpdate) |
protected boolean |
isNavigationEnabled() |
boolean |
isWindowFocused() |
protected DiffRequest |
loadRequestFast(DiffRequestProducer provider) |
void |
refresh(boolean fromModelRefresh)
Get newly requested element for diff and update/create new diff request for it
a.e.
|
protected abstract void |
selectChange(ChangeViewDiffRequestProcessor.Wrapper change) |
void |
setCurrentChange(ChangeViewDiffRequestProcessor.Wrapper change) |
void |
updatePreview(boolean state,
boolean fromModelRefresh) |
getRequestName, loadRequest
dropCaches, getFastLoadingTimeMillis, onDispose, reloadRequest, updateRequest, updateRequest
applyRequest, applyRequest, buildActionPopup, buildToolbar, collectPopupActions, collectToolbarActions, dispose, getComponent, getContext, getContextUserData, getNavigationActions, getPreferredFocusedComponent, getSettings, getToolOrderFromSettings, isDisposed, onAfterNavigate, patchShortcutSet, putContextUserData, setWindowTitle, shouldAddToolbarBottomBorder, updateRequest, updateRequest, updateToolOrderSettings
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponent
public ChangeViewDiffRequestProcessor(Project project, java.lang.String place)
protected abstract java.util.stream.Stream<ChangeViewDiffRequestProcessor.Wrapper> getSelectedChanges()
protected abstract java.util.stream.Stream<ChangeViewDiffRequestProcessor.Wrapper> getAllChanges()
protected abstract void selectChange(ChangeViewDiffRequestProcessor.Wrapper change)
protected DiffRequestProducer getCurrentRequestProvider()
getCurrentRequestProvider
in class CacheDiffRequestProcessor<DiffRequestProducer>
protected DiffRequest loadRequestFast(DiffRequestProducer provider)
loadRequestFast
in class CacheDiffRequestProcessor<DiffRequestProducer>
public void updatePreview(boolean state, boolean fromModelRefresh)
public Project getProject()
getProject
in class DiffRequestProcessor
public boolean isWindowFocused()
isWindowFocused
in class DiffRequestProcessor
public void clear()
DiffPreviewUpdateProcessor
clear
in interface DiffPreviewUpdateProcessor
public void refresh(boolean fromModelRefresh)
DiffPreviewUpdateProcessor
refresh
in interface DiffPreviewUpdateProcessor
fromModelRefresh
- Whether refresh was triggered without explicit change of selected item by user.
In this case, we might want not to close active viewer while it is in focus.public java.lang.String getCurrentChangeName()
public void setCurrentChange(ChangeViewDiffRequestProcessor.Wrapper change)
protected boolean hasNextChange(boolean fromUpdate)
hasNextChange
in class DiffRequestProcessor
protected boolean hasPrevChange(boolean fromUpdate)
hasPrevChange
in class DiffRequestProcessor
protected void goToNextChange(boolean fromDifferences)
goToNextChange
in class DiffRequestProcessor
protected void goToPrevChange(boolean fromDifferences)
goToPrevChange
in class DiffRequestProcessor
protected boolean isNavigationEnabled()
isNavigationEnabled
in class DiffRequestProcessor