]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/commands/CreateWorkspace.java
Fix some glitches in the normalization
[gpl/argeo-slc.git] / plugins / org.argeo.slc.client.ui.dist / src / main / java / org / argeo / slc / client / ui / dist / commands / CreateWorkspace.java
index 681e0fed79dd586dd9075d99108ab4e5b34556ca..73de37384931bd754bd5632b06e414ca878733a2 100644 (file)
@@ -41,7 +41,7 @@ import org.eclipse.jface.resource.ImageDescriptor;
 import org.eclipse.ui.handlers.HandlerUtil;
 
 /**
- * Create a new empty workspace in the current repository.
+ * Create a new empty workspace in a remote repository.
  */
 public class CreateWorkspace extends AbstractHandler {
        private static final Log log = LogFactory.getLog(CreateWorkspace.class);
@@ -81,7 +81,7 @@ public class CreateWorkspace extends AbstractHandler {
                                        .getActiveWorkbenchWindow(event).getShell(),
                                        "Workspace name?",
                                        "Choose a name for the workspace to create",
-                                       prefix == null ? "" : prefix + "_", null);
+                                       prefix == null ? "" : prefix + "-", null);
                        int result = inputDialog.open();
 
                        String enteredName = inputDialog.getValue();
@@ -96,8 +96,9 @@ public class CreateWorkspace extends AbstractHandler {
                                        count++;
                        }
 
-                       if (log.isDebugEnabled())
-                               log.debug("Count " + count);
+                       if (log.isTraceEnabled())
+                               log.trace("Translated workspace name length: " + count
+                                               + " (name: " + enteredName + " )");
 
                        if (count > 60) {
                                ErrorFeedback.show("Workspace name '" + enteredName