]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - eclipse/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/commands/DeleteWorkspace.java
Improve slc client ui dist, fix bugs #109, 110, 111
[gpl/argeo-slc.git] / eclipse / plugins / org.argeo.slc.client.ui.dist / src / main / java / org / argeo / slc / client / ui / dist / commands / DeleteWorkspace.java
index a0e940d38feec54ac19103ac3141e3db4a8726fd..39ba79e48be4c9abebc7e5000ead613695c3cd7e 100644 (file)
@@ -1,12 +1,8 @@
 package org.argeo.slc.client.ui.dist.commands;
 
 import javax.jcr.Repository;
-import javax.jcr.RepositoryException;
-import javax.jcr.Session;
 
-import org.argeo.ArgeoException;
 import org.argeo.slc.client.ui.dist.DistPlugin;
-import org.argeo.slc.client.ui.dist.utils.CommandHelpers;
 import org.eclipse.core.commands.AbstractHandler;
 import org.eclipse.core.commands.ExecutionEvent;
 import org.eclipse.core.commands.ExecutionException;
@@ -28,15 +24,16 @@ public class DeleteWorkspace extends AbstractHandler {
        private Repository repository;
 
        public Object execute(ExecutionEvent event) throws ExecutionException {
-               String workspaceName = event.getParameter(PARAM_WORKSPACE_NAME);
-               String msg = "Your are about to definitively delete this workspace ["
-                               + workspaceName + "].\n Do you really want to proceed ?";
-
+       
                MessageDialog.openWarning(DistPlugin.getDefault()
                                .getWorkbench().getDisplay().getActiveShell(),
                                "WARNING", "Not yet implemented");
                return null;
-               
+       
+//             String workspaceName = event.getParameter(PARAM_WORKSPACE_NAME);
+//             String msg = "Your are about to definitively delete this workspace ["
+//                             + workspaceName + "].\n Do you really want to proceed ?";
+
 //             boolean result = MessageDialog.openConfirm(DistPlugin.getDefault()
 //                             .getWorkbench().getDisplay().getActiveShell(),
 //                             "Confirm deletion", msg);
@@ -62,4 +59,4 @@ public class DeleteWorkspace extends AbstractHandler {
        public void setRepository(Repository repository) {
                this.repository = repository;
        }
-}
+}
\ No newline at end of file