1 package org.simantics.sysdyn.ui.wizards.functions;
\r
3 import org.simantics.browsing.ui.graph.contributor.labeler.LabelerContributor;
\r
4 import org.simantics.db.ReadGraph;
\r
5 import org.simantics.db.Resource;
\r
6 import org.simantics.db.common.utils.NameUtils;
\r
7 import org.simantics.db.exception.DatabaseException;
\r
8 import org.simantics.sysdyn.ui.browser.nodes.FunctionLibraryNode;
\r
10 public class FunctionTreeFunctionLabeler extends LabelerContributor<FunctionLibraryNode<Resource>>{
\r
13 public String getLabel(ReadGraph graph, FunctionLibraryNode<Resource> input)
\r
14 throws DatabaseException {
\r
15 String name = NameUtils.getSafeName(graph, input.data);
\r