public class StructuralSearchDialog extends DialogWrapper implements ProjectManagerListener, DocumentListener
DialogWrapper.CancelAction, DialogWrapper.DialogStyle, DialogWrapper.DialogWrapperAction, DialogWrapper.DialogWrapperExitAction, DialogWrapper.DoNotAskOption, DialogWrapper.IdeModalityType, DialogWrapper.OkAction| Modifier and Type | Field and Description |
|---|---|
static Key<StructuralSearchDialog> |
STRUCTURAL_SEARCH_DIALOG |
static Key<java.lang.Runnable> |
STRUCTURAL_SEARCH_ERROR_CALLBACK |
static Key<java.lang.String> |
STRUCTURAL_SEARCH_PATTERN_CONTEXT_ID |
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_CODEEMPTY_ARRAYARRAY_FACTORY, EMPTY_ARRAY| Constructor and Description |
|---|
StructuralSearchDialog(SearchContext searchContext,
boolean replace) |
StructuralSearchDialog(SearchContext searchContext,
boolean replace,
boolean editConfigOnly) |
| Modifier and Type | Method and Description |
|---|---|
protected javax.swing.JComponent |
createCenterPanel()
Factory method.
|
protected javax.swing.JComponent |
createNorthPanel()
Factory method.
|
protected javax.swing.JPanel |
createSouthAdditionalPanel()
Additional panel in the lower left part of dialog to the left from additional buttons
|
void |
dispose()
Dispose the wrapped and releases all resources allocated be the wrapper to help
more efficient garbage collection.
|
void |
doCancelAction()
This method is invoked by default implementation of "Cancel" action.
|
void |
documentChanged(DocumentEvent event)
Called after the text of the document has been changed.
|
protected void |
doOKAction()
This method is invoked by default implementation of "OK" action.
|
Configuration |
getConfiguration() |
protected java.lang.String |
getDimensionServiceKey()
Returns key for persisting dialog dimensions.
|
protected java.lang.String |
getHelpId()
Returns the help identifier, or
null if no help is available. |
java.awt.Point |
getInitialLocation() |
javax.swing.JComponent |
getPreferredFocusedComponent() |
static java.lang.String |
getUserDefined() |
void |
loadConfiguration(Configuration configuration) |
void |
projectClosing(Project project)
Invoked on project close before any closing activities
|
void |
setUseLastConfiguration(boolean useLastConfiguration) |
void |
show()
Show the dialog.
|
void |
showFilterPanel(java.lang.String variableName) |
addKeyListener, addMouseListener, addMouseListener, canRecordDialogId, centerRelativeToParent, cleanupRootPane, cleanupWindowListeners, clickDefaultButton, close, close, createActions, createButtonsPanel, createCancelAction, createContentPane, createContentPaneBorder, createDefaultActions, createDefaultBorder, createDoNotAskCheckbox, createHelpButton, createJButtonForAction, createJButtonForAction, createLeftSideActions, createPeer, createPeer, createPeer, createPeer, createPeer, createPeer, createRootLayout, createSouthPanel, createTitlePane, disposeIfNeeded, doCancelAction, doHelpAction, doValidate, doValidateAll, extractMnemonic, findInstance, findInstanceFromFocus, getButton, getCancelAction, getContentPane, getContentPanel, getDimensionKey, getDisposable, getDoNotShowMessage, getErrorTextAlignment, getExitCode, getHelpAction, getHorizontalStretch, getLocation, getOKAction, getOwner, getPeer, getPreferredSize, getRootPane, getSize, getStyle, getTitle, getTypeAheadTimeoutMs, getValidationThreadToUse, getVerticalStretch, getWindow, hasErrors, init, 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, showAndGet, showAndGetOk, startTrackingValidation, toBack, toBeShown, toFront, unregisterKeyboardActions, updateErrorInfo, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanCloseProject, projectClosed, projectClosingBeforeSave, projectOpenedbeforeDocumentChange, bulkUpdateFinished, bulkUpdateStartingpublic static final Key<StructuralSearchDialog> STRUCTURAL_SEARCH_DIALOG
public static final Key<java.lang.String> STRUCTURAL_SEARCH_PATTERN_CONTEXT_ID
public static final Key<java.lang.Runnable> STRUCTURAL_SEARCH_ERROR_CALLBACK
public StructuralSearchDialog(SearchContext searchContext, boolean replace)
public StructuralSearchDialog(SearchContext searchContext, boolean replace, boolean editConfigOnly)
public void setUseLastConfiguration(boolean useLastConfiguration)
public void documentChanged(DocumentEvent event)
DocumentListenerdocumentChanged in interface DocumentListenerevent - the event containing the information about the change.protected javax.swing.JComponent createCenterPanel()
DialogWrappernull
value. In this case there will be no options panel.createCenterPanel in class DialogWrapperprotected javax.swing.JComponent createNorthPanel()
DialogWrappernull
value. In this case there will be no input panel.createNorthPanel in class DialogWrapperprotected javax.swing.JPanel createSouthAdditionalPanel()
DialogWrappercreateSouthAdditionalPanel in class DialogWrapperpublic java.awt.Point getInitialLocation()
getInitialLocation in class DialogWrapperpublic void show()
DialogWrappershow in class DialogWrapperDialogWrapper.showAndGet()public javax.swing.JComponent getPreferredFocusedComponent()
getPreferredFocusedComponent in class DialogWrapperpublic void doCancelAction()
DialogWrapperCANCEL_EXIT_CODE. This is convenient place to override functionality of "Cancel" action.
Note that the method does nothing if "Cancel" action isn't enabled.doCancelAction in class DialogWrapperprotected 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 DialogWrapperpublic Configuration getConfiguration()
public void showFilterPanel(java.lang.String variableName)
public void loadConfiguration(Configuration configuration)
protected final java.lang.String getDimensionServiceKey()
DialogWrappernull (no persisting).getDimensionServiceKey in class DialogWrapperpublic void projectClosing(Project project)
ProjectManagerListenerprojectClosing in interface ProjectManagerListenerpublic void dispose()
DialogWrapperdispose.dispose in class DialogWrapperprotected java.lang.String getHelpId()
DialogWrappernull if no help is available.getHelpId in class DialogWrapperpublic static java.lang.String getUserDefined()