Skip to content
Snippets Groups Projects
Commit 6b662f6e authored by pkupczyk's avatar pkupczyk
Browse files

SP-362 / BIS-246: Show metaproject tags in Web GUI and allow editing them when...

SP-362 / BIS-246: Show metaproject tags in Web GUI and allow editing them when editing an entity - sort metaprojects in properties panel and text area

SVN: 27489
parent 14545ca0
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,7 @@ package ch.systemsx.cisd.openbis.generic.client.web.client.application.ui.field; ...@@ -18,6 +18,7 @@ package ch.systemsx.cisd.openbis.generic.client.web.client.application.ui.field;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collection; import java.util.Collection;
import java.util.Collections;
import java.util.List; import java.util.List;
import ch.systemsx.cisd.openbis.generic.client.web.client.application.Dict; import ch.systemsx.cisd.openbis.generic.client.web.client.application.Dict;
...@@ -54,12 +55,9 @@ public class MetaprojectArea extends MultilineItemsField ...@@ -54,12 +55,9 @@ public class MetaprojectArea extends MultilineItemsField
} }
} }
setMetaprojects(names); Collections.sort(names);
}
public final void setMetaprojects(List<String> namesOrIdentifiers) setItems(names);
{
setItems(namesOrIdentifiers);
} }
public final String[] tryGetMetaprojects() public final String[] tryGetMetaprojects()
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
package ch.systemsx.cisd.openbis.plugin.generic.client.web.client.application; package ch.systemsx.cisd.openbis.plugin.generic.client.web.client.application;
import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
...@@ -66,6 +67,9 @@ public class PropertiesPanelUtils ...@@ -66,6 +67,9 @@ public class PropertiesPanelUtils
{ {
names[index++] = metaproject.getName(); names[index++] = metaproject.getName();
} }
Arrays.sort(names);
properties properties
.put(viewContext.getMessage(Dict.METAPROJECTS), StringUtils.join(names, ", ")); .put(viewContext.getMessage(Dict.METAPROJECTS), StringUtils.join(names, ", "));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment