composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true,
false));
setMessage("Login to remote repository", IMessageProvider.NONE);
- name = createLT(composite, "Name", "Argeo.org Java Repository");
+ name = createLT(composite, "Name", "Example Java Repository");
uri = createLT(composite, "URI",
- "https://repo.argeo.org/org.argeo.jcr.webapp/remoting/java");
+ "https://example.com/data/jcr/java");
username = createLT(composite, "User", "");
password = createLP(composite, "Password");
Object firstElement = ((IStructuredSelection) viewer.getSelection())
.getFirstElement();
- if (firstElement instanceof TreeParent) {
- TreeParent tp = (TreeParent) firstElement;
- String wsName = tp.getName();
+ if (firstElement instanceof TreeParent
+ || firstElement instanceof RepoElem) {
+ String wsName = null;
// Build conditions depending on element type (repo or distribution
// for the time being)
boolean isDistribElem = false; // , isRepoElem = false;
- // if (tp instanceof RepositoryElem){
- // isRepoElem = true;
- // } else
- if (tp instanceof DistributionElem) {
+ if (firstElement instanceof DistributionElem) {
isDistribElem = true;
+ wsName = ((DistributionElem) firstElement).getName();
}
// create workspace