]> gerrit.simantics Code Review - simantics/sysdyn.git/blob
e054cf601f49bc716c13281f164628d85de084fe
[simantics/sysdyn.git] /
1 package org.simantics.sysdyn.ui.wizards.functions;\r
2 \r
3 import org.simantics.browsing.ui.graph.impl.contributor.labeler.LabelerContributorImpl;\r
4 import org.simantics.db.ReadGraph;\r
5 import org.simantics.db.common.utils.NameUtils;\r
6 import org.simantics.db.exception.DatabaseException;\r
7 import org.simantics.sysdyn.ui.browser.nodes.SharedFunctionLibraryNode;\r
8 \r
9 public class FunctionTreeSharedLibraryLabeler extends LabelerContributorImpl<SharedFunctionLibraryNode>{\r
10 \r
11         @Override\r
12         public String getLabel(ReadGraph graph, SharedFunctionLibraryNode input)\r
13                         throws DatabaseException {\r
14                 return NameUtils.getSafeName(graph, input.data);\r
15         }\r
16 \r
17 }\r