public class TargetBundle extends Object
Modifier and Type | Field and Description |
---|---|
protected BundleInfo |
fInfo |
protected boolean |
fIsFragment |
protected String |
fSourcePath |
protected BundleInfo |
fSourceTarget |
static int |
STATUS_FEATURE_DOES_NOT_EXIST
Status code indicating that this target bundle represents a required feature that is missing from a target definition
|
static int |
STATUS_INVALID_MANIFEST
Status code indicating that a bundle's manifest could not be read, or did not exist.
|
static int |
STATUS_PLUGIN_DOES_NOT_EXIST
Status code indicating that this target bundle represents a required plug-in that is missing from a target definition
|
static int |
STATUS_VERSION_DOES_NOT_EXIST
Status code indicating that a required bundle version does not exist (a bundle
with the correct symbolic name is present, but the specified version was not
found).
|
Modifier | Constructor and Description |
---|---|
protected |
TargetBundle()
Constructs an empty target bundle with no information.
|
|
TargetBundle(File bundleLocation)
Constructs a target bundle for a local bundle.
|
Modifier and Type | Method and Description |
---|---|
BundleInfo |
getBundleInfo()
Returns a
BundleInfo object containing additional information about the bundle
this target bundle represents. |
String |
getSourcePath()
Returns bundle relative path to old-style source folders, or
null
if not applicable. |
BundleInfo |
getSourceTarget()
If this bundle is a source bundle this method returns a bundle info
representing the executable bundle that this bundle provides source for.
|
IStatus |
getStatus()
Returns a status object describing any problems with this target bundle.
|
boolean |
isFragment()
Returns whether this bundle is a fragment.
|
boolean |
isSourceBundle()
Returns
true if this bundle is a source bundle and
false if this bundle is an executable bundle. |
String |
toString() |
public static final int STATUS_PLUGIN_DOES_NOT_EXIST
public static final int STATUS_FEATURE_DOES_NOT_EXIST
public static final int STATUS_VERSION_DOES_NOT_EXIST
public static final int STATUS_INVALID_MANIFEST
protected BundleInfo fInfo
protected boolean fIsFragment
protected BundleInfo fSourceTarget
protected String fSourcePath
public TargetBundle(File bundleLocation) throws CoreException
bundleLocation
- the location of the bundle (directory or archive) to openCoreException
- if there is a problem opening the bundle or its manifestprotected TargetBundle()
public BundleInfo getBundleInfo()
BundleInfo
object containing additional information about the bundle
this target bundle represents. It is not guaranteed that the bundle info will have any
fields set. The base implementation of TargetBundle
will fill in the location,
symbolic name and version if that information was available in the bundle's manifest.public IStatus getStatus()
TargetBundle
will always return an OK status.public boolean isSourceBundle()
true
if this bundle is a source bundle and
false
if this bundle is an executable bundle.public BundleInfo getSourceTarget()
null
public boolean isFragment()
public String getSourcePath()
null
if not applicable.null
Copyright (c) 2000, 2017 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.