String message = Messages.bind(Messages.deleteProfileMessage, profile.getId());
boolean confirm = MessageDialog.openConfirm(Shells.getShell(), Messages.deleteProfileDialogTitle,
message);
if (confirm) {
node.getFabric().getFabricService().deleteProfile(node.getVersionNode().getVersionId(), profile.getId());
Node parent = node.getParent();
if (parent != null){
parent.removeChild(node);
}
}
}