X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=plugins%2Forg.argeo.slc.client.ui.dist%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fclient%2Fui%2Fdist%2Feditors%2FDistributionEditorInput.java;h=d0f27dd89693171925c6f3d30bd273d9773c531e;hb=de4970e4ea18056ef32137834bb0ac59b23117ce;hp=883a20974546ab5bc51dd00c189586dcbe0f0e63;hpb=3c8e43e258464f8efe44c80f2a4f5c3080f28d4f;p=gpl%2Fargeo-slc.git diff --git a/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/editors/DistributionEditorInput.java b/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/editors/DistributionEditorInput.java index 883a20974..d0f27dd89 100644 --- a/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/editors/DistributionEditorInput.java +++ b/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/editors/DistributionEditorInput.java @@ -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