本文整理汇总了Java中com.intellij.tasks.jira.jql.JqlLanguage类的典型用法代码示例。如果您正苦于以下问题:Java JqlLanguage类的具体用法?Java JqlLanguage怎么用?Java JqlLanguage使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
JqlLanguage类属于com.intellij.tasks.jira.jql包,在下文中一共展示了JqlLanguage类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createCustomPanel
import com.intellij.tasks.jira.jql.JqlLanguage; //导入依赖的package包/类
@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();
}
示例2: createCustomPanel
import com.intellij.tasks.jira.jql.JqlLanguage; //导入依赖的package包/类
@Nullable
@Override
protected JComponent createCustomPanel() {
mySearchLabel = new JBLabel("Search:", SwingConstants.RIGHT);
PsiFileFactory fileFactory = PsiFileFactory.getInstance(myProject);
PsiFile psiFile = fileFactory.createFileFromText("query.jql", JqlLanguage.INSTANCE, myRepository.getSearchQuery());
Document document = PsiDocumentManager.getInstance(myProject).getDocument(psiFile);
mySearchQueryField = new EditorTextField(document, myProject, JqlFileType.INSTANCE);
installListener(document);
return FormBuilder.createFormBuilder().addLabeledComponent(mySearchLabel, mySearchQueryField).getPanel();
}
示例3: createCustomPanel
import com.intellij.tasks.jira.jql.JqlLanguage; //导入依赖的package包/类
@Nullable
@Override
protected JComponent createCustomPanel() {
mySearchQueryField = new LanguageTextField(JqlLanguage.INSTANCE, myProject, myRepository.getSearchQuery());
installListener(mySearchQueryField);
mySearchLabel = new JBLabel("Search:", SwingConstants.RIGHT);
return FormBuilder.createFormBuilder().addLabeledComponent(mySearchLabel, mySearchQueryField).getPanel();
}