We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.base.devserver.
Package com.vaadin.base.devserver
Class OpenInCurrentIde
java.lang.Object
com.vaadin.base.devserver.OpenInCurrentIde
Util for opening a file in the currently used IDE.
Supports detecting VS Code, Eclipse and IntelliJ.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static final record
-
Method Summary
Modifier and TypeMethodDescriptionGets the IDE and process info for the current process.
static void
static boolean
Opens the given file at the given line number in the IDE used to launch the current Java application.
-
Method Details
-
openFile
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 openlineNumber
- the line number to highlightReturns:
true if the file was opened, false otherwise
-
getIdeAndProcessInfo
Gets the IDE and process info for the current process.
Returns:
the IDE and process info
-
main
-