Tabnine Logo
SupportedLanguage
Code IndexAdd Tabnine to your IDE (free)

How to use
SupportedLanguage
in
com.neueda.jetbrains.plugin.graphdb.platform

Best Java code snippets using com.neueda.jetbrains.plugin.graphdb.platform.SupportedLanguage (Showing top 7 results out of 315)

origin: neueda/jetbrains-plugin-graph-database-support

public static boolean isSupported(String languageId) {
  checkNotNull(languageId, "'languageId' is undefined");
  return Stream.of(values())
      .anyMatch(language -> language.getLanguageId().equals(languageId));
}
origin: neueda/jetbrains-plugin-graph-database-support

@Test
public void languageSupported() {
  assertTrue(SupportedLanguage.isSupported(SupportedLanguage.CYPHER.getLanguageId()));
}
origin: neueda/jetbrains-plugin-graph-database-support

  private CypherLanguage() {
    super(CYPHER.getLanguageId());
  }
}
origin: neueda/jetbrains-plugin-graph-database-support

@Override
public List<AnAction> promote(List<AnAction> actions, DataContext context) {
  PsiFile psiFile = PlatformDataKeys.PSI_FILE.getData(context);
  if (psiFile != null) {
    String languageId = psiFile.getLanguage().getID();
    if (isSupported(languageId)) {
      return checkForExecuteQueryAction(actions);
    }
  }
  return Collections.emptyList();
}
origin: neueda/jetbrains-plugin-graph-database-support

public void highlightStatement(Editor editor, PsiFile psiFile) {
  if (nonNull(psiFile)) {
    String languageId = psiFile.getLanguage().getID();
    if (isSupported(languageId)) {
      Caret caret = editor.getCaretModel().getPrimaryCaret();
      PsiElement element = getCypherStatementAtOffset(psiFile, caret.getOffset());
      highlightStatementInCypherFile(editor, element);
    }
  }
}
origin: neueda/jetbrains-plugin-graph-database-support

@Test
public void languageUnsupported() {
  assertFalse(SupportedLanguage.isSupported("Java"));
}
origin: neueda/jetbrains-plugin-graph-database-support

} else if (nonNull(psiFile)) {
  String languageId = psiFile.getLanguage().getID();
  if (isSupported(languageId)) {
    PsiElement cypherStatement = getCypherStatementAtOffset(psiFile, caret.getOffset());
    if (nonNull(cypherStatement)) {
com.neueda.jetbrains.plugin.graphdb.platformSupportedLanguage

Most used methods

  • getLanguageId
  • isSupported
  • values

Popular in Java

  • Reactive rest calls using spring rest template
  • getApplicationContext (Context)
  • getResourceAsStream (ClassLoader)
  • onCreateOptionsMenu (Activity)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Notification (javax.management)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now