Package io.quarkus.deployment.ide
Enum Ide
- java.lang.Object
-
- java.lang.Enum<Ide>
-
- io.quarkus.deployment.ide.Ide
-
- All Implemented Interfaces:
Serializable
,Comparable<Ide>
public enum Ide extends Enum<Ide>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
createFileOpeningArgs(String fileName, String line)
static Path
findSourceFile(String fileName)
Finds the location of a source file given the path from the source rootString
getEffectiveCommand()
Attempts to launch the default IDE script.void
setMachineSpecificCommand(String machineSpecificCommand)
String
toString()
static Ide
valueOf(String name)
Returns the enum constant of this type with the specified name.static Ide[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static Ide[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Ide c : Ide.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Ide valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getEffectiveCommand
public String getEffectiveCommand()
Attempts to launch the default IDE script. If it succeeds, then that command is used (as the command is on the $PATH), otherwise the full path of the command (determined earlier in the process by looking at the running processes) is used.
-
setMachineSpecificCommand
public void setMachineSpecificCommand(String machineSpecificCommand)
-
findSourceFile
public static Path findSourceFile(String fileName)
Finds the location of a source file given the path from the source root- Parameters:
fileName
- The file name- Returns:
- The path or null if it could not be found
-
-