Class UserVisibleRootQuery
java.lang.Object
org.eclipse.equinox.p2.query.ExpressionMatchQuery<IInstallableUnit>
org.eclipse.equinox.p2.engine.query.IUProfilePropertyQuery
org.eclipse.equinox.p2.engine.query.UserVisibleRootQuery
- All Implemented Interfaces:
IQueryWithIndex<IInstallableUnit>,IMatchQuery<IInstallableUnit>,IQuery<IInstallableUnit>
A query matching all the
IInstallableUnits that are marked visible to the user.- Since:
- 2.0
-
Field Summary
Fields inherited from class org.eclipse.equinox.p2.engine.query.IUProfilePropertyQuery
ANY -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new query that will match all installable units marked visible to the user. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisUserVisible(IInstallableUnit iu, IProfile profile) Test if theIInstallableUnit, in the context of aIProfileis visible to the userMethods inherited from class org.eclipse.equinox.p2.query.ExpressionMatchQuery
getContext, getExpression, getMatchingClass, isMatch, perform, perform, postPerform, prePerform, setIndexProvider
-
Constructor Details
-
UserVisibleRootQuery
public UserVisibleRootQuery()Creates a new query that will match all installable units marked visible to the user.
-
-
Method Details
-
isUserVisible
Test if theIInstallableUnit, in the context of aIProfileis visible to the user- Parameters:
iu- the element being tested.profile- the context in which the iu is tested- Returns:
trueif the element is visible to the user.
-