public abstract class AbstractFindUsagesDialog extends DialogWrapper
DialogWrapper.CancelAction, DialogWrapper.DialogStyle, DialogWrapper.DialogWrapperAction, DialogWrapper.DialogWrapperExitAction, DialogWrapper.DoNotAskOption, DialogWrapper.IdeModalityType, DialogWrapper.OkAction| Modifier and Type | Field and Description |
|---|---|
protected StateRestoringCheckBox |
myCbToSearchForTextOccurrences |
protected javax.swing.JCheckBox |
myCbToSkipResultsWhenOneUsage |
protected FindUsagesOptions |
myFindUsagesOptions |
CANCEL_EXIT_CODE, CLOSE_EXIT_CODE, DEFAULT_ACTION, DIALOG_CONTENT_PANEL_PROPERTY, ERROR_FOREGROUND_COLOR, FOCUSED_ACTION, IS_VISUAL_PADDING_COMPENSATED_ON_COMPONENT_LEVEL_KEY, myCancelAction, myCheckBoxDoNotShowDialog, myDisposable, myHelpAction, myOKAction, myPerformAction, myPreferredFocusedComponent, NEXT_USER_EXIT_CODE, OK_EXIT_CODE| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFindUsagesDialog(Project project,
FindUsagesOptions findUsagesOptions,
boolean toShowInNewTab,
boolean mustOpenInNewTab,
boolean isSingleFile,
boolean searchForTextOccurrencesAvailable,
boolean searchInLibrariesAvailable) |
| Modifier and Type | Method and Description |
|---|---|
protected StateRestoringCheckBox |
addCheckboxToPanel(java.lang.String name,
boolean toSelect,
javax.swing.JPanel panel,
boolean toUpdate) |
protected void |
addScopeData(FeatureUsageData data,
SearchScope scope) |
protected void |
addUsagesOptions(javax.swing.JPanel optionsPanel) |
FindUsagesOptions |
calcFindUsagesOptions() |
void |
calcFindUsagesOptions(FindUsagesOptions options) |
abstract void |
configureLabelComponent(SimpleColoredComponent coloredComponent) |
protected javax.swing.Action [] |
createActions()
Creates actions for dialog.
|
protected javax.swing.JPanel |
createAllOptionsPanel() |
protected javax.swing.JComponent |
createCenterPanel()
Factory method.
|
protected abstract javax.swing.JPanel |
createFindWhatPanel() |
protected javax.swing.JComponent |
createNorthPanel()
Factory method.
|
protected javax.swing.JPanel |
createUsagesOptionsPanel() |
protected void |
doOKAction()
This method is invoked by default implementation of "OK" action.
|
javax.swing.JComponent |
getPreferredFocusedComponent() |
protected javax.swing.JComponent |
getPreferredFocusedControl() |
protected void |
init() |
protected boolean |
isInFileOnly() |
protected static boolean |
isSelected(javax.swing.JCheckBox cb) |
protected static boolean |
isToChange(javax.swing.JCheckBox cb) |
protected boolean |
shouldDoOkAction() |
protected void |
update() |
addKeyListener, addMouseListener, addMouseListener, canRecordDialogId, centerRelativeToParent, cleanupRootPane, cleanupWindowListeners, clickDefaultButton, close, close, createButtonsPanel, createCancelAction, createContentPane, createContentPaneBorder, createDefaultActions, createDefaultBorder, createDoNotAskCheckbox, createHelpButton, createJButtonForAction, createJButtonForAction, createLeftSideActions, createPeer, createPeer, createPeer, createPeer, createPeer, createPeer, createRootLayout, createSouthAdditionalPanel, createSouthPanel, createTitlePane, dispose, disposeIfNeeded, doCancelAction, doCancelAction, doHelpAction, doValidate, doValidateAll, extractMnemonic, findInstance, findInstanceFromFocus, getButton, getCancelAction, getContentPane, getContentPanel, getDimensionKey, getDimensionServiceKey, getDisposable, getDoNotShowMessage, getErrorTextAlignment, getExitCode, getHelpAction, getHelpId, getHorizontalStretch, getInitialLocation, getLocation, getOKAction, getOwner, getPeer, getPreferredSize, getRootPane, getSize, getStyle, getTitle, getTypeAheadTimeoutMs, getValidationThreadToUse, getVerticalStretch, getWindow, hasErrors, initValidation, isAutoAdjustable, isCenterStrictedToPreferredSize, isDisposed, isModal, isModalProgress, isMoveHelpButtonLeft, isNorthStrictedToPreferredSize, isOK, isOKActionEnabled, isProgressDialog, isResizable, isShowing, isSouthStrictedToPreferredSize, isToDispatchTypeAhead, isTypeAheadEnabled, isVisible, layoutButtonsPanel, pack, postponeValidation, processDoNotAskOnOk, repaint, setAutoAdjustable, setButtonsAlignment, setButtonsMargin, setCancelButtonIcon, setCancelButtonText, setCrossClosesWindow, setDoNotAskOption, setErrorInfoAll, setErrorText, setErrorText, setHelpTooltip, setHorizontalStretch, setInitialLocationCallback, setLocation, setLocation, setModal, setOKActionEnabled, setOKButtonIcon, setOKButtonMnemonic, setOKButtonText, setOKButtonTooltip, setResizable, setSize, setTitle, setUndecorated, setValidationDelay, setVerticalStretch, shouldAddErrorNearButtons, shouldCloseOnCross, show, showAndGet, showAndGetOk, startTrackingValidation, toBack, toBeShown, toFront, unregisterKeyboardActions, updateErrorInfo, validateprotected final FindUsagesOptions myFindUsagesOptions
protected StateRestoringCheckBox myCbToSearchForTextOccurrences
protected javax.swing.JCheckBox myCbToSkipResultsWhenOneUsage
protected AbstractFindUsagesDialog(Project project, FindUsagesOptions findUsagesOptions, boolean toShowInNewTab, boolean mustOpenInNewTab, boolean isSingleFile, boolean searchForTextOccurrencesAvailable, boolean searchInLibrariesAvailable)
protected javax.swing.Action [] createActions()
DialogWrapperDialogWrapper.getHelpId() returns non-null value.
Each action is represented by JButton created by DialogWrapper.createJButtonForAction(Action).
These buttons are then placed into south panel of dialog.createActions in class DialogWrapperDialogWrapper.createSouthPanel(),
DialogWrapper.createJButtonForAction(javax.swing.Action)protected boolean isInFileOnly()
protected javax.swing.JComponent createNorthPanel()
DialogWrappernull
value. In this case there will be no input panel.createNorthPanel in class DialogWrapperpublic abstract void configureLabelComponent(SimpleColoredComponent coloredComponent)
protected javax.swing.JComponent createCenterPanel()
DialogWrappernull
value. In this case there will be no options panel.createCenterPanel in class DialogWrapperpublic final FindUsagesOptions calcFindUsagesOptions()
protected void init()
init in class DialogWrapperpublic void calcFindUsagesOptions(FindUsagesOptions options)
protected void update()
protected void doOKAction()
DialogWrapperOK_EXIT_CODE. This is convenient place to override functionality of "OK" action.
Note that the method does nothing if "OK" action isn't enabled.doOKAction in class DialogWrapperprotected boolean shouldDoOkAction()
protected static boolean isToChange(javax.swing.JCheckBox cb)
protected static boolean isSelected(javax.swing.JCheckBox cb)
protected StateRestoringCheckBox addCheckboxToPanel(java.lang.String name, boolean toSelect, javax.swing.JPanel panel, boolean toUpdate)
protected javax.swing.JPanel createAllOptionsPanel()
protected abstract javax.swing.JPanel createFindWhatPanel()
protected void addUsagesOptions(javax.swing.JPanel optionsPanel)
protected javax.swing.JPanel createUsagesOptionsPanel()
protected javax.swing.JComponent getPreferredFocusedControl()
public javax.swing.JComponent getPreferredFocusedComponent()
getPreferredFocusedComponent in class DialogWrapperprotected final void addScopeData(FeatureUsageData data,
SearchScope scope)