]> 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/model/RepoElem.java
Make distribution browser more robust
[gpl/argeo-slc.git] / plugins / org.argeo.slc.client.ui.dist / src / main / java / org / argeo / slc / client / ui / dist / model / RepoElem.java
index 6fdde8af2dfcf27640e8b0409a41ea6b28f7cbab..7d584f7875d311927e90b2566e8e3eb4cab3a263 100644 (file)
@@ -144,9 +144,9 @@ public class RepoElem extends DistParentElem {
 
                                // filter technical workspaces
                                // FIXME: rely on a more robust rule than just wksp name
-                               if (workspaceName.lastIndexOf('-') > 0) {
+                               if (workspaceName.lastIndexOf(VERSION_SEP) > 0) {
                                        String prefix = workspaceName.substring(0,
-                                                       workspaceName.lastIndexOf('-'));
+                                                       workspaceName.lastIndexOf(VERSION_SEP));
                                        if (!children.containsKey(prefix)) {
                                                children.put(prefix, new GroupElem(RepoElem.this,
                                                                prefix));