]> 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 bug 28 (https://www.argeo.org/bugzilla/show_bug.cgi?id=28)
[gpl/argeo-slc.git] / plugins / org.argeo.slc.client.ui.dist / src / main / java / org / argeo / slc / client / ui / dist / editors / DistributionEditorInput.java
index 3663827e3113669198e49f703596ae53362c0a1e..323e9ee65e03dae56a888df8eddbc2eb1e23d744 100644 (file)
@@ -29,27 +29,32 @@ import org.eclipse.ui.IPersistableElement;
  * */
 public class DistributionEditorInput implements IEditorInput, SlcNames {
 
-       private String repositoryName;
        private Repository repository;
-       private String workspaceName;
-       private String artifactsBase = RepoConstants.DEFAULT_ARTIFACTS_BASE_PATH;
        private Credentials credentials;
+       private String repositoryName;
+       private String repositoryDescription;
+       private String workspaceName;
 
-       public DistributionEditorInput(String repositoryName,
-                       Repository repository, String workspaceName, String artifactsBase,
-                       Credentials credentials) {
+       private String artifactsBase;
+
+       public DistributionEditorInput(Repository repository,
+                       Credentials credentials, String repositoryName,
+                       String repositoryDescription, String workspaceName,
+                       String artifactsBase) {
                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,
-                               RepoConstants.DEFAULT_ARTIFACTS_BASE_PATH, credentials);
+       public DistributionEditorInput(Repository repository,
+                       Credentials credentials, String repositoryName,
+                       String repositoryDescription, String workspaceName) {
+               this(repository, credentials, repositoryName, repositoryDescription,
+                               workspaceName, RepoConstants.DEFAULT_ARTIFACTS_BASE_PATH);
        }
 
        public Object getAdapter(@SuppressWarnings("rawtypes") Class adapter) {
@@ -106,6 +111,10 @@ public class DistributionEditorInput implements IEditorInput, SlcNames {
                return repositoryName;
        }
 
+       public String getRepositoryDescription() {
+               return repositoryDescription;
+       }
+
        public Credentials getCredentials() {
                return credentials;
        }