}
return null;
}
private void deleteRequirementsForProfile(ExecutionEvent event, String profileId) {
Fabric fabricNode = getSelectedFabric();
RequirementsDTO reqs = fabricNode.getFabricService().getRequirements();
try {
if (reqs.findProfileRequirements(profileId) != null) {
reqs.removeProfileRequirements(profileId);
return;
}
} finally {
try {
fabricNode.getFabricService().setRequirements(reqs);
} finally {
IWorkbenchPart wp = HandlerUtil.getActivePart(event);
if (wp instanceof PropertySheet) {
PropertySheet ps = (PropertySheet)wp;
if (ps.getCurrentPage() instanceof FabricTabViewPage) {