You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.copilot.ide.

Class IdeUtils

java.lang.Object
com.vaadin.copilot.ide.IdeUtils
public final class IdeUtils extends Object

Utility class for currently used IDE

Supports detecting VS Code, Eclipse and IntelliJ.

  • Method Details

    • findIde

      public static Optional<IdeUtils.IDE> findIde()

      Finds IDE used to run application

      Returns:

      optional IDE

    • openFile

      public static void openFile(File file, int lineNumber)

      Opens the given file at the given line number in the IDE used to launch the current Java application.

      If you are running the Java application from the command line or from an unsupported IDE, then this method does nothing.

      Parameters:

      file - the file to open

      lineNumber - the line number to highlight

    • main

      public static void main(String[] args)