Class LaunchTargetUtils
java.lang.Object
org.eclipse.launchbar.core.target.LaunchTargetUtils
- Since:
- 3.1
-
Method Summary
Modifier and TypeMethodDescriptionGet the names of all existing launch targets.static booleanisInvalidName(String name) Check for invalid characters.static StringReplace launch configuration name disallowed characters with underscores.static StringsanitizeName(String name) Replace any invalid characters with a safe value.
-
Method Details
-
isInvalidName
Check for invalid characters.- Parameters:
name- The name to check.- Returns:
- true if name contains characters in
INVALID_NAME_PATTERN.
-
sanitizeName
Replace any invalid characters with a safe value.- Parameters:
name- The name to check.- Returns:
- name with any character in the
INVALID_NAME_PATTERNreplaced with "_"
-
sanitizeLaunchConfigurationName
Replace launch configuration name disallowed characters with underscores. Copied from org.eclipse.debug.internal.core.LaunchConfigurationManager LaunchManager.isValidLaunchConfigurationName() can be used to verify a name.- Parameters:
name- the name to sanitize.- Since:
- 3.1
-
getExistingLaunchTargetNames
Get the names of all existing launch targets.- Returns:
- List of existing launch target names. If the launch target manager service is not available, an empty list is returned.
- Since:
- 3.1
-