public class UIUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTEXT |
static java.lang.String |
EXPECTED_TYPE |
static java.lang.String |
MAXIMUM_UNLIMITED |
static java.lang.String |
MINIMUM_ZERO |
static java.lang.String |
REFERENCE |
static NotificationGroup |
SSR_NOTIFICATION_GROUP |
static java.lang.String |
TEXT |
static java.lang.String |
TEXT_HIERARCHY |
static java.lang.String |
TYPE |
static java.lang.String |
TYPE_REGEX |
Modifier and Type | Method and Description |
---|---|
static javax.swing.JComponent |
createCompleteMatchInfo(java.util.function.Supplier<? extends Configuration> configurationProducer) |
static Document |
createDocument(Project project,
LanguageFileType fileType,
Language dialect,
PatternContext patternContext,
java.lang.String text,
StructuralSearchProfile profile) |
static Editor |
createEditor(Document doc,
Project project,
boolean editable,
TemplateContextType contextType) |
static Editor |
createEditor(Project project,
LanguageFileType fileType,
Language dialect,
java.lang.String text,
boolean editable,
StructuralSearchProfile profile) |
static EditorTextField |
createEditorComponent(java.lang.String text,
java.lang.String fileName,
Project project) |
static EditorTextField |
createRegexComponent(java.lang.String text,
Project project) |
static EditorTextField |
createScriptComponent(java.lang.String text,
Project project) |
static EditorTextField |
createTextComponent(java.lang.String text,
Project project) |
static LanguageFileType |
detectFileType(SearchContext searchContext) |
static ReplacementVariableDefinition |
getOrAddReplacementVariable(java.lang.String varName,
Configuration configuration) |
static MatchVariableConstraint |
getOrAddVariableConstraint(java.lang.String varName,
Configuration configuration) |
static TemplateContextType |
getTemplateContextType(StructuralSearchProfile profile) |
static javax.swing.JComponent |
installCompleteMatchInfo(javax.swing.JLabel completeMatchInfo,
java.util.function.Supplier<? extends Configuration> configurationProducer,
java.util.function.Consumer<? super java.lang.String> linkConsumer) |
static void |
invokeAction(Configuration config,
SearchContext context) |
static boolean |
isTarget(java.lang.String varName,
MatchOptions matchOptions) |
static void |
setContent(Editor editor,
java.lang.String text) |
static void |
setContent(EditorTextField editor,
java.lang.String text) |
public static final NotificationGroup SSR_NOTIFICATION_GROUP
public static final java.lang.String TEXT
public static final java.lang.String TEXT_HIERARCHY
public static final java.lang.String REFERENCE
public static final java.lang.String TYPE
public static final java.lang.String TYPE_REGEX
public static final java.lang.String EXPECTED_TYPE
public static final java.lang.String MINIMUM_ZERO
public static final java.lang.String MAXIMUM_UNLIMITED
public static final java.lang.String CONTEXT
public static Editor createEditor(Document doc, Project project, boolean editable, TemplateContextType contextType)
public static void setContent(Editor editor, java.lang.String text)
public static void setContent(EditorTextField editor, java.lang.String text)
public static void invokeAction(Configuration config, SearchContext context)
public static MatchVariableConstraint getOrAddVariableConstraint(java.lang.String varName, Configuration configuration)
public static ReplacementVariableDefinition getOrAddReplacementVariable(java.lang.String varName, Configuration configuration)
public static boolean isTarget(java.lang.String varName, MatchOptions matchOptions)
public static javax.swing.JComponent createCompleteMatchInfo(java.util.function.Supplier<? extends Configuration> configurationProducer)
public static javax.swing.JComponent installCompleteMatchInfo(javax.swing.JLabel completeMatchInfo, java.util.function.Supplier<? extends Configuration> configurationProducer, java.util.function.Consumer<? super java.lang.String> linkConsumer)
public static EditorTextField createTextComponent(java.lang.String text, Project project)
public static EditorTextField createRegexComponent(java.lang.String text, Project project)
public static EditorTextField createScriptComponent(java.lang.String text, Project project)
public static EditorTextField createEditorComponent(java.lang.String text, java.lang.String fileName, Project project)
public static LanguageFileType detectFileType(SearchContext searchContext)
public static Document createDocument(Project project, LanguageFileType fileType, Language dialect, PatternContext patternContext, java.lang.String text, StructuralSearchProfile profile)
public static Editor createEditor(Project project, LanguageFileType fileType, Language dialect, java.lang.String text, boolean editable, StructuralSearchProfile profile)
public static TemplateContextType getTemplateContextType(StructuralSearchProfile profile)