]> 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/ArtifactsBrowserPage.java
Improve dist UI
[gpl/argeo-slc.git] / plugins / org.argeo.slc.client.ui.dist / src / main / java / org / argeo / slc / client / ui / dist / editors / ArtifactsBrowserPage.java
index 4fcd9632857bd0b7a1cb15eea631b7abb22b1493..f10a32e190f5d0b75c832e6cb4b25819841707bb 100644 (file)
@@ -110,7 +110,12 @@ public class ArtifactsBrowserPage extends FormPage implements DistConstants,
                // Model initialisation
                if (jcrSession != null) {
                        try {
-                               rootNode = jcrSession.getNode(ARTIFACTS_BASE_PATH);
+                               DistributionEditorInput dei = (DistributionEditorInput) getEditorInput();
+                               if (dei.getArtifactsBase().equals(DEFAULT_ARTIFACTS_BASE_PATH)) {
+                                       rootNode = jcrSession.getRootNode();
+                               } else {
+                                       rootNode = jcrSession.getNode(dei.getArtifactsBase());
+                               }
                                artifactTreeViewer.setInput(rootNode);
                        } catch (RepositoryException e) {
                                throw new ArgeoException("Cannot load base artifact nodes", e);