@Override
public Result execute(UIExecutionContext context)
{
Project project = getSelectedProject(context.getUIContext());
final DependencyFacet deps = project.getFacet(DependencyFacet.class);
if (arguments.hasValue())
{
int numberOfGavsFound = 0;
int numberOfGavs = 0;
for (Dependency gav : arguments.getValue())
{
numberOfGavs++;
DependencyBuilder dep = DependencyBuilder.create(gav);
if(effective.getValue()) {
if(deps.hasEffectiveManagedDependency(gav)) {
numberOfGavsFound++;
}
} else {
if(deps.hasDirectManagedDependency(dep)) {
numberOfGavsFound++;
}
}
}
if(numberOfGavs == numberOfGavsFound) {