public interface UsageView extends Disposable
Modifier and Type | Interface and Description |
---|---|
static interface |
UsageView.ExcludeListener |
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
static DataKey<UsageInfo> |
USAGE_INFO_KEY |
static DataKey<java.util.List<UsageInfo>> |
USAGE_INFO_LIST_KEY |
static DataKey<SearchScope> |
USAGE_SCOPE |
static DataKey<UsageTarget[]> |
USAGE_TARGETS_KEY
Returns
UsageTarget to look usages for |
static DataKey<UsageView> |
USAGE_VIEW_KEY |
static DataKey<Usage[]> |
USAGES_KEY
Returns
Usage which are selected in usage view |
Modifier and Type | Method and Description |
---|---|
void |
addButtonToLowerPane(javax.swing.Action action) |
void |
addButtonToLowerPane(java.lang.Runnable runnable,
java.lang.String text) |
void |
addButtonToLowerPane(java.lang.Runnable runnable,
java.lang.String text,
char mnemonic)
Deprecated.
please specify mnemonic by prefixing the mnemonic character with an ampersand (&& for Mac-specific ampersands)
|
default void |
addExcludeListener(Disposable disposable,
UsageView.ExcludeListener listener) |
void |
addPerformOperationAction(java.lang.Runnable processRunnable,
java.lang.String commandName,
java.lang.String cannotMakeString,
java.lang.String shortDescription) |
void |
addPerformOperationAction(java.lang.Runnable processRunnable,
java.lang.String commandName,
java.lang.String cannotMakeString,
java.lang.String shortDescription,
boolean checkReadOnlyStatus) |
void |
appendUsage(Usage usage) |
void |
close() |
void |
excludeUsages(Usage [] usages) |
javax.swing.JComponent |
getComponent() |
java.util.Set<Usage> |
getExcludedUsages() |
default javax.swing.JComponent |
getPreferredFocusableComponent() |
UsageViewPresentation |
getPresentation() |
java.util.Set<Usage> |
getSelectedUsages() |
java.util.List<Usage> |
getSortedUsages() |
java.util.Set<Usage> |
getUsages() |
int |
getUsagesCount() |
void |
includeUsages(Usage [] usages) |
boolean |
isSearchInProgress() |
void |
removeUsage(Usage usage) |
void |
removeUsagesBulk(java.util.Collection<? extends Usage> usages)
Removes all specified usages from the usage view in one heroic swoop.
|
void |
selectUsages(Usage [] usages) |
void |
setAdditionalComponent(javax.swing.JComponent component) |
default void |
setRerunAction(javax.swing.Action rerunAction) |
default void |
setReRunActivity(java.lang.Runnable runnable)
Deprecated.
|
dispose
static final DataKey<UsageTarget[]> USAGE_TARGETS_KEY
UsageTarget
to look usages forstatic final DataKey<SearchScope> USAGE_SCOPE
void appendUsage(Usage usage)
void removeUsage(Usage usage)
void includeUsages(Usage [] usages)
void excludeUsages(Usage [] usages)
void selectUsages(Usage [] usages)
void close()
boolean isSearchInProgress()
@Deprecated void addButtonToLowerPane(java.lang.Runnable runnable, java.lang.String text, char mnemonic)
void addButtonToLowerPane(java.lang.Runnable runnable, java.lang.String text)
void addButtonToLowerPane(javax.swing.Action action)
@Deprecated default void setReRunActivity(java.lang.Runnable runnable)
setRerunAction(Action)
default void setRerunAction(javax.swing.Action rerunAction)
rerunAction
- this action is used to provide non-standard search restart. Disabled action makes toolbar button disabled too.void setAdditionalComponent(javax.swing.JComponent component)
void addPerformOperationAction(java.lang.Runnable processRunnable, java.lang.String commandName, java.lang.String cannotMakeString, java.lang.String shortDescription)
void addPerformOperationAction(java.lang.Runnable processRunnable, java.lang.String commandName, java.lang.String cannotMakeString, java.lang.String shortDescription, boolean checkReadOnlyStatus)
checkReadOnlyStatus
- if false, check is performed inside processRunnableUsageViewPresentation getPresentation()
java.util.Set<Usage> getExcludedUsages()
java.util.Set<Usage> getSelectedUsages()
java.util.Set<Usage> getUsages()
java.util.List<Usage> getSortedUsages()
javax.swing.JComponent getComponent()
default javax.swing.JComponent getPreferredFocusableComponent()
int getUsagesCount()
void removeUsagesBulk(java.util.Collection<? extends Usage> usages)
default void addExcludeListener(Disposable disposable, UsageView.ExcludeListener listener)