]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/commands/DeleteArtifacts.java
Adapt after ui.dist after Argeo Commons upgrade. Build but do not start correctly.
[gpl/argeo-slc.git] / org.argeo.slc.client.ui.dist / src / org / argeo / slc / client / ui / dist / commands / DeleteArtifacts.java
index b942ead9b3d77e3b14049458041babf9b9de922c..58d11b5d564d265b24ce93ce2031239308f036d8 100644 (file)
@@ -34,13 +34,11 @@ import org.eclipse.ui.IEditorPart;
 import org.eclipse.ui.IWorkbenchPart;
 import org.eclipse.ui.handlers.HandlerUtil;
 
-/**
- * Delete chosen artifacts from the current workspace.
- */
+/** Delete chosen artifacts from the current workspace */
 public class DeleteArtifacts extends AbstractHandler {
        // private static final Log log = LogFactory.getLog(DeleteWorkspace.class);
 
-       public final static String ID = DistPlugin.ID + ".deleteArtifacts";
+       public final static String ID = DistPlugin.PLUGIN_ID + ".deleteArtifacts";
        public final static String DEFAULT_LABEL = "Delete selected items";
        public final static ImageDescriptor DEFAULT_ICON = DistPlugin
                        .getImageDescriptor("icons/removeItem.gif");
@@ -70,7 +68,8 @@ public class DeleteArtifacts extends AbstractHandler {
                                                while (it.hasNext()) {
                                                        Node node = (Node) it.next();
                                                        if (node.isNodeType(SlcTypes.SLC_ARTIFACT)) {
-                                                               // we remove the artifactVersion, that is the parent
+                                                               // we remove the artifactVersion, that is the
+                                                               // parent
                                                                node.getParent().remove();
                                                                node.getSession().save();
                                                        }