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%2FArtifactsBrowserPage.java;h=843a5fcb0277cd42bf37e7be6077b89e53ef5ad5;hb=31a1025c37620afbf9a71a4cf5e2a25095700cbb;hp=4fcd9632857bd0b7a1cb15eea631b7abb22b1493;hpb=30337022a8b1ffe10eb645791d767d41c3db4e40;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/ArtifactsBrowserPage.java b/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/editors/ArtifactsBrowserPage.java index 4fcd96328..843a5fcb0 100644 --- a/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/editors/ArtifactsBrowserPage.java +++ b/plugins/org.argeo.slc.client.ui.dist/src/main/java/org/argeo/slc/client/ui/dist/editors/ArtifactsBrowserPage.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. @@ -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);