@@ -0,0 +1,2411 @@
+package de.darwinspl.feature.graphical.editor.actions.feature;%0A%0Aimport org.eclipse.gef.EditPart;%0Aimport org.eclipse.gef.Request;%0Aimport org.eclipse.gef.commands.Command;%0Aimport org.eclipse.jface.viewers.StructuredSelection;%0A%0Aimport de.darwinspl.feature.graphical.base.editor.DwGraphicalFeatureModelViewer;%0Aimport de.darwinspl.feature.graphical.base.editparts.DwFeatureEditPart;%0Aimport de.darwinspl.feature.graphical.base.editparts.DwRootFeatureEditPart;%0Aimport de.darwinspl.feature.graphical.base.model.DwFeatureWrapped;%0Aimport de.darwinspl.feature.graphical.editor.actions.DwCommandAction;%0Aimport de.darwinspl.feature.graphical.editor.commands.feature.DwFeatureDeletePermanentlyCommand;%0A%0Apublic class DwFeatureDeletePermanentlyAction  extends DwCommandAction %7B%0A%09public static final String FEATURE_DELETE_PERMANENTLY = %22DeleteFeaturePermanently%22;%0A%09public static final String REQ_FEATURE_DELETE_PERMANENTLY = %22DeleteFeaturePermanentlyRequest%22;%0A%0A%09public DwFeatureDeletePermanentlyAction(DwGraphicalFeatureModelViewer editor) %7B%0A%09%09super(editor);%0A%09%09%0A%0A%09%09setId(FEATURE_DELETE_PERMANENTLY);%0A%09%09setText(%22Delete Permanently%22);%0A%0A%09%09request = new Request(REQ_FEATURE_DELETE_PERMANENTLY);%0A%0A%09%09this.editor = editor;%0A%09%7D%0A%09%0A%09protected Request request;%0A%0A%09protected DwFeatureWrapped getSelectedFeature()%7B%0A%09%09StructuredSelection selection = (StructuredSelection)this.getSelection();%0A%09%09%0A%09%09if(selection.getFirstElement() instanceof DwFeatureEditPart)%7B%0A%09%09%09DwFeatureEditPart part = (DwFeatureEditPart)selection.getFirstElement();%0A%09%09%09return (DwFeatureWrapped)part.getModel();%09%09%0A%09%09%7D%0A%09%09%0A%09%09if(selection.getFirstElement() instanceof DwRootFeatureEditPart)%7B%0A%09%09%09DwRootFeatureEditPart part = (DwRootFeatureEditPart)selection.getFirstElement();%0A%09%09%09return (DwFeatureWrapped)part.getModel();%0A%09%09%7D%0A%09%0A%09%09return null;%0A%09%7D%09%0A%09%0A%09protected boolean calculateEnabled() %7B%0A%09%09if(getSelectedObjects().isEmpty())%0A%09%09%09return false;%0A%09%09%0A%09%09for(Object selectedObject : getSelectedObjects())%7B%0A%09%09%09if(!(selectedObject instanceof DwFeatureEditPart %7C%7C selectedObject instanceof DwRootFeatureEditPart))%7B%0A%09%09%09%09return false;%0A%09%09%09%7D%0A%09%09%7D%0A%09%09%0A%09%09return true;%0A%09%7D%0A%0A%09@Override%0A%09protected Command createCommand(Object acceptedModel) %7B%0A%09%09DwFeatureDeletePermanentlyCommand command = new DwFeatureDeletePermanentlyCommand(editor, (EditPart)getSelectedObjects().get(0));%0A%09%09command.setFeature((DwFeatureWrapped)((DwFeatureEditPart)getSelectedObjects().get(0)).getModel());%0A%09%09%0A%09%09return command;%0A%09%7D%0A%7D

Add missing delete permanently action