Search in sources :

Example 1 with LanguageTextField

use of com.intellij.ui.LanguageTextField in project intellij-community by JetBrains.

the class YouTrackRepositoryEditor method createCustomPanel.

@Nullable
@Override
protected JComponent createCustomPanel() {
    mySearchLabel = new JBLabel("Search:", SwingConstants.RIGHT);
    myDefaultSearch = new LanguageTextField(YouTrackLanguage.INSTANCE, myProject, myRepository.getDefaultSearch());
    installListener(myDefaultSearch);
    return FormBuilder.createFormBuilder().addLabeledComponent(mySearchLabel, myDefaultSearch).getPanel();
}
Also used : JBLabel(com.intellij.ui.components.JBLabel) LanguageTextField(com.intellij.ui.LanguageTextField) Nullable(org.jetbrains.annotations.Nullable)

Example 2 with LanguageTextField

use of com.intellij.ui.LanguageTextField in project intellij-community by JetBrains.

the class JiraRepositoryEditor method createCustomPanel.

@Nullable
@Override
protected JComponent createCustomPanel() {
    mySearchQueryField = new LanguageTextField(JqlLanguage.INSTANCE, myProject, myRepository.getSearchQuery());
    enableJqlSearchIfSupported();
    installListener(mySearchQueryField);
    mySearchLabel = new JBLabel("Search:", SwingConstants.RIGHT);
    myNoteLabel = new JBLabel();
    myNoteLabel.setComponentStyle(UIUtil.ComponentStyle.SMALL);
    updateNote();
    return FormBuilder.createFormBuilder().addLabeledComponent(mySearchLabel, mySearchQueryField).addComponentToRightColumn(myNoteLabel).getPanel();
}
Also used : JBLabel(com.intellij.ui.components.JBLabel) LanguageTextField(com.intellij.ui.LanguageTextField) Nullable(org.jetbrains.annotations.Nullable)

Example 3 with LanguageTextField

use of com.intellij.ui.LanguageTextField in project intellij-community by JetBrains.

the class TagPanel method createUIComponents.

private void createUIComponents() {
    myLocalName = new LanguageTextField(RegExpLanguage.INSTANCE, myProject, myOrigInjection.getTagName());
    myNamespace = new ComboBox(200);
}
Also used : ComboBox(com.intellij.openapi.ui.ComboBox) LanguageTextField(com.intellij.ui.LanguageTextField)

Example 4 with LanguageTextField

use of com.intellij.ui.LanguageTextField in project intellij-community by JetBrains.

the class XmlAttributePanel method createUIComponents.

private void createUIComponents() {
    myLanguagePanel = new LanguagePanel(myProject, myOrigInjection);
    myTagPanel = new TagPanel(myProject, myOrigInjection);
    myAdvancedPanel = new AdvancedXmlPanel(myProject, myOrigInjection);
    myLocalName = new LanguageTextField(RegExpLanguage.INSTANCE, myProject, myOrigInjection.getAttributeName());
    myNamespace = new ComboBox(200);
}
Also used : ComboBox(com.intellij.openapi.ui.ComboBox) LanguageTextField(com.intellij.ui.LanguageTextField)

Example 5 with LanguageTextField

use of com.intellij.ui.LanguageTextField in project android by JetBrains.

the class SpecificActivityConfigurable method createUIComponents.

private void createUIComponents() {
    final EditorTextField editorTextField = new LanguageTextField(PlainTextLanguage.INSTANCE, myProject, "") {

        @Override
        protected EditorEx createEditor() {
            final EditorEx editor = super.createEditor();
            final PsiFile file = PsiDocumentManager.getInstance(myProject).getPsiFile(editor.getDocument());
            if (file != null) {
                DaemonCodeAnalyzer.getInstance(myProject).setHighlightingEnabled(file, false);
            }
            editor.putUserData(LaunchOptionConfigurableContext.KEY, myContext);
            return editor;
        }
    };
    myActivityField = new ComponentWithBrowseButton<EditorTextField>(editorTextField, null);
}
Also used : EditorEx(com.intellij.openapi.editor.ex.EditorEx) EditorTextField(com.intellij.ui.EditorTextField) PsiFile(com.intellij.psi.PsiFile) LanguageTextField(com.intellij.ui.LanguageTextField)

Aggregations

LanguageTextField (com.intellij.ui.LanguageTextField)8 Nullable (org.jetbrains.annotations.Nullable)3 DocumentAdapter (com.intellij.openapi.editor.event.DocumentAdapter)2 DocumentEvent (com.intellij.openapi.editor.event.DocumentEvent)2 ComboBox (com.intellij.openapi.ui.ComboBox)2 PsiFile (com.intellij.psi.PsiFile)2 EditorTextField (com.intellij.ui.EditorTextField)2 JBLabel (com.intellij.ui.components.JBLabel)2 Language (com.intellij.lang.Language)1 JavaLanguage (com.intellij.lang.java.JavaLanguage)1 EditorEx (com.intellij.openapi.editor.ex.EditorEx)1 Project (com.intellij.openapi.project.Project)1 JBScrollPane (com.intellij.ui.components.JBScrollPane)1 FormBuilder (com.intellij.util.ui.FormBuilder)1 XPathSupportProxy (org.intellij.plugins.intelliLang.inject.config.XPathSupportProxy)1 NotNull (org.jetbrains.annotations.NotNull)1