X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.slc.client.ui.dist%2Fsrc%2Forg%2Fargeo%2Fslc%2Fclient%2Fui%2Fdist%2Fcommands%2FDeleteArtifacts.java;fp=org.argeo.slc.client.ui.dist%2Fsrc%2Forg%2Fargeo%2Fslc%2Fclient%2Fui%2Fdist%2Fcommands%2FDeleteArtifacts.java;h=58d11b5d564d265b24ce93ce2031239308f036d8;hb=9cdf3ff23b7416beca4ec27fba01888c7c37d298;hp=b942ead9b3d77e3b14049458041babf9b9de922c;hpb=f2a441320ce894733e55e72be1f2d560ff825b78;p=gpl%2Fargeo-slc.git diff --git a/org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/commands/DeleteArtifacts.java b/org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/commands/DeleteArtifacts.java index b942ead9b..58d11b5d5 100644 --- a/org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/commands/DeleteArtifacts.java +++ b/org.argeo.slc.client.ui.dist/src/org/argeo/slc/client/ui/dist/commands/DeleteArtifacts.java @@ -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(); }