public class FeatureEvaluator
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
evaluateFeatureInformation()
Update the feature information.
|
void |
evaluateFeatureInformationInThread()
Update the feature information in an own thread.
|
java.util.ArrayList<java.lang.String> |
getFeaturesOfBundle(java.lang.String symbolicBundlename)
Returns the IDs of the providing features of the specified bundle/plugin.
|
java.lang.String |
getIInstallableUnitDescription(IInstallableUnit installableUnit)
Returns, based on the available feature descriptions a description for an
IInstallableUnit . |
static FeatureEvaluator |
getInstance()
Gets the single instance of BundleEvaluator.
|
java.lang.String |
getProductBundleID()
Gets the product bundle ID.
|
java.lang.String |
getProductFeatureID()
Returns the product feature ID.
|
java.util.ArrayList<java.lang.String> |
getProductFeatures()
Returns the list of features that are provided by the product.
|
boolean |
isBundleOfBaseInstallation(java.lang.String bundleID)
Checks if the specified bundle is part of the base installation.
|
boolean |
isBundleOfProductFeature(java.lang.String bundleID)
Checks if the specified bundle (bundle-ID) is a bundle of product feature.
|
boolean |
isFeatureOfBaseInstallation(IInstallableUnit installableUnit)
Checks if the feature, specified by an installable unit, is a feature of the base installation.
|
boolean |
isFeatureOfBaseInstallation(java.lang.String featureID)
Checks if the specified feature is part of the base installation.
|
void |
printFeatureInformation()
Prints the available feature information.
|
public static FeatureEvaluator getInstance()
public void evaluateFeatureInformationInThread()
public void evaluateFeatureInformation()
public void printFeatureInformation()
public java.lang.String getProductFeatureID()
public java.lang.String getProductBundleID()
public java.util.ArrayList<java.lang.String> getProductFeatures()
public java.util.ArrayList<java.lang.String> getFeaturesOfBundle(java.lang.String symbolicBundlename)
symbolicBundlename
- the symbolic bundle namepublic boolean isBundleOfProductFeature(java.lang.String bundleID)
bundleID
- the bundle IDpublic boolean isFeatureOfBaseInstallation(java.lang.String featureID)
bundleID
- the bundle IDpublic boolean isBundleOfBaseInstallation(java.lang.String bundleID)
bundleID
- the bundle IDpublic boolean isFeatureOfBaseInstallation(IInstallableUnit installableUnit)
installableUnit
- the installable unitpublic java.lang.String getIInstallableUnitDescription(IInstallableUnit installableUnit)
IInstallableUnit
.installableUnit
- the installable unit