]> 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/editors/DistributionEditorInput.java
+ fix bugs for workspace CRUD commands introduced with multi-repo management
[gpl/argeo-slc.git] / plugins / org.argeo.slc.client.ui.dist / src / main / java / org / argeo / slc / client / ui / dist / editors / DistributionEditorInput.java
index 883a20974546ab5bc51dd00c189586dcbe0f0e63..d0f27dd89693171925c6f3d30bd273d9773c531e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2007-2012 Mathieu Baudier
+ * Copyright (C) 2007-2012 Argeo GmbH
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -30,25 +30,28 @@ import org.eclipse.ui.IPersistableElement;
 public class DistributionEditorInput implements IEditorInput, SlcNames {
 
        private String repositoryName;
+       private String repositoryDescription;
        private Repository repository;
        private String workspaceName;
        private String artifactsBase = RepoConstants.DEFAULT_ARTIFACTS_BASE_PATH;
        private Credentials credentials;
 
        public DistributionEditorInput(String repositoryName,
-                       Repository repository, String workspaceName, String artifactsBase,
-                       Credentials credentials) {
+                       String repositoryDescription, Repository repository,
+                       String workspaceName, String artifactsBase, Credentials credentials) {
                super();
                this.repository = repository;
                this.repositoryName = repositoryName;
+               this.repositoryDescription = repositoryDescription;
                this.workspaceName = workspaceName;
                this.artifactsBase = artifactsBase;
                this.credentials = credentials;
        }
 
        public DistributionEditorInput(String repositoryName,
-                       Repository repository, String workspaceName, Credentials credentials) {
-               this(repositoryName, repository, workspaceName,
+                       String repositoryDescription, Repository repository,
+                       String workspaceName, Credentials credentials) {
+               this(repositoryName, repositoryDescription, repository, workspaceName,
                                RepoConstants.DEFAULT_ARTIFACTS_BASE_PATH, credentials);
        }
 
@@ -106,8 +109,11 @@ public class DistributionEditorInput implements IEditorInput, SlcNames {
                return repositoryName;
        }
 
+       public String getRepositoryDescription() {
+               return repositoryDescription;
+       }
+
        public Credentials getCredentials() {
                return credentials;
        }
-
-}
+}
\ No newline at end of file