Interface ILaunchTargetWorkingCopy
-
- All Superinterfaces:
org.eclipse.core.runtime.IAdaptable,ILaunchTarget
- All Known Implementing Classes:
LaunchTargetWorkingCopy
public interface ILaunchTargetWorkingCopy extends ILaunchTarget
Working copy to set attributes on a target and then save them.
-
-
Field Summary
-
Fields inherited from interface org.eclipse.launchbar.core.target.ILaunchTarget
ATTR_ARCH, ATTR_OS, NULL_TARGET
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ILaunchTargetgetOriginal()Get the original launch target.ILaunchTargetsave()Save the changes to the original working copy.voidsetAttribute(java.lang.String key, java.lang.String value)Set an attribute.voidsetId(java.lang.String id)Gives the target a new ID.-
Methods inherited from interface org.eclipse.launchbar.core.target.ILaunchTarget
getAttribute, getAttributes, getId, getName, getTypeId, getWorkingCopy
-
-
-
-
Method Detail
-
getOriginal
ILaunchTarget getOriginal()
Get the original launch target.- Returns:
- the original launch target
-
setId
void setId(java.lang.String id)
Gives the target a new ID. The save method will return a new target with the given name.e- Parameters:
id- new target ID
-
setAttribute
void setAttribute(java.lang.String key, java.lang.String value)Set an attribute.- Parameters:
key- keyvalue- value
-
save
ILaunchTarget save()
Save the changes to the original working copy.- Returns:
- original launch target unless the id was changed in which case returns a new target
-
-