}
@Override
public NavigationResult getPrerequisiteCommands(UIContext context)
{
NavigationResultBuilder builder = NavigationResultBuilder.create();
Project project = getSelectedProject(context);
if (project != null)
{
if (!project.hasFacet(RestFacet.class))
{
builder.add(RestSetupWizard.class);
}
if (!project.hasFacet(JPAFacet.class))
{
builder.add(JPASetupWizard.class);
}
if (!project.hasFacet(EJBFacet.class))
{
builder.add(EJBSetupWizard.class);
}
}
return builder.build();
}