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_CODE
EMPTY_ARRAY
ARRAY_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, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canCloseProject, projectClosed, projectClosingBeforeSave, projectOpened
beforeDocumentChange, bulkUpdateFinished, bulkUpdateStarting
public 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)
DocumentListener
documentChanged
in interface DocumentListener
event
- the event containing the information about the change.protected javax.swing.JComponent createCenterPanel()
DialogWrapper
null
value. In this case there will be no options panel.createCenterPanel
in class DialogWrapper
protected javax.swing.JComponent createNorthPanel()
DialogWrapper
null
value. In this case there will be no input panel.createNorthPanel
in class DialogWrapper
protected javax.swing.JPanel createSouthAdditionalPanel()
DialogWrapper
createSouthAdditionalPanel
in class DialogWrapper
public java.awt.Point getInitialLocation()
getInitialLocation
in class DialogWrapper
public void show()
DialogWrapper
show
in class DialogWrapper
DialogWrapper.showAndGet()
public javax.swing.JComponent getPreferredFocusedComponent()
getPreferredFocusedComponent
in class DialogWrapper
public void doCancelAction()
DialogWrapper
CANCEL_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 DialogWrapper
protected void doOKAction()
DialogWrapper
OK_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 DialogWrapper
public Configuration getConfiguration()
public void showFilterPanel(java.lang.String variableName)
public void loadConfiguration(Configuration configuration)
protected final java.lang.String getDimensionServiceKey()
DialogWrapper
null
(no persisting).getDimensionServiceKey
in class DialogWrapper
public void projectClosing(Project project)
ProjectManagerListener
projectClosing
in interface ProjectManagerListener
public void dispose()
DialogWrapper
dispose
.dispose
in class DialogWrapper
protected java.lang.String getHelpId()
DialogWrapper
null
if no help is available.getHelpId
in class DialogWrapper
public static java.lang.String getUserDefined()