protected List<IAction> getActions(IMenuService menuService) {
Object context = menuService.getCurrentState();
IProject project = getProjectFromContext(context);
List<IAction> actions = new ArrayList<IAction>();
if (project != null) {
StandaloneFacetHandler handler = new StandaloneFacetHandler(project);
if (handler.canAddFacet()) {
actions.add(new ConvertToStandaloneAction(project));
} else if (handler.hasFacet()) {
actions.add(new RemoveStandaloneAction(project));
}
}
return actions;