]> 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/Fetch.java
Clean, update comments
[gpl/argeo-slc.git] / plugins / org.argeo.slc.client.ui.dist / src / main / java / org / argeo / slc / client / ui / dist / commands / Fetch.java
index d2cac60290adf8251bc4df31185214bfd0b0ee45..b6537d832fc83679ae99a4894b7d8ebb8cbb911e 100644 (file)
@@ -21,17 +21,20 @@ import org.eclipse.jface.resource.ImageDescriptor;
 import org.eclipse.jface.wizard.WizardDialog;
 import org.eclipse.ui.handlers.HandlerUtil;
 
-/** Wraps a {@link RepoSync} as an Eclipse command. */
+/**
+ * Wrap a {@link RepoSync} as an Eclipse command. Open a wizard that enable
+ * definition of the fetch process parameters
+ */
 public class Fetch extends AbstractHandler {
        // private final static Log log = LogFactory.getLog(Fetch.class);
 
        public final static String ID = DistPlugin.ID + ".fetch";
-       public final static String PARAM_TARGET_REPO_PATH = "targetRepoPath";
        public final static String DEFAULT_LABEL = "Fetch...";
-       // public final static String DEFAULT_ICON_PATH = "icons/fetchRepo.png";
        public final static ImageDescriptor DEFAULT_ICON = DistPlugin
                        .getImageDescriptor("icons/fetchRepo.png");
 
+       public final static String PARAM_TARGET_REPO_PATH = "targetRepoPath";
+
        // DEPENDENCY INJECTION
        private Keyring keyring;
        private RepositoryFactory repositoryFactory;
@@ -57,7 +60,7 @@ public class Fetch extends AbstractHandler {
                                CommandHelpers.callCommand(RefreshDistributionsView.ID);
                        return null;
                } catch (RepositoryException e) {
-                       throw new SlcException("Unexpected error while fetching data", e);
+                       throw new SlcException("Unable te retrieve repo node from path", e);
                } finally {
                        JcrUtils.logoutQuietly(currSession);
                }