public class DistWorkspaceEditor extends FormEditor implements SlcNames {
// private final static Log log =
// LogFactory.getLog(DistributionEditor.class);
- public final static String ID = DistPlugin.ID
- + ".distWorkspaceEditor";
+ public final static String ID = DistPlugin.ID + ".distWorkspaceEditor";
/* DEPENDENCY INJECTION */
private RepositoryFactory repositoryFactory;
&& localSession.nodeExists(editorInput.getRepoNodePath()))
repoNode = localSession.getNode(editorInput.getRepoNodePath());
- businessSession = RepoUtils.getCorrespondingSession(
+ businessSession = RepoUtils.getRemoteSession(
repositoryFactory, keyring, repoNode, editorInput.getUri(),
editorInput.getWorkspaceName());
} catch (RepositoryException e) {
@Override
protected void addPages() {
try {
- addPage(new DistWkspSearchPage(this, "Overview",
+ addPage(new DistWkspSearchPage(this, "Details ", businessSession));
+ addPage(new DistWkspBrowserPage(this, "Maven ", businessSession));
+ addPage(new WkspCategoryBaseListPage(this, "Groups ",
businessSession));
- addPage(new DistWkspBrowserPage(this, "Browser", businessSession));
} catch (PartInitException e) {
throw new ArgeoException("Cannot add distribution editor pages", e);
}
return repoNode;
}
+ protected Session getSession() {
+ return businessSession;
+ }
+
/* DEPENDENCY INJECTION */
public void setRepositoryFactory(RepositoryFactory repositoryFactory) {
this.repositoryFactory = repositoryFactory;