]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.diagram.profile/src/org/simantics/diagram/profile/view/EntryLabeler.java
Better support for ontological profiles
[simantics/platform.git] / bundles / org.simantics.diagram.profile / src / org / simantics / diagram / profile / view / EntryLabeler.java
index 00a9b7a58f7f028456d6582b10efbd005b00e75b..b05f0e449a3fdac36f2279d5c34da37d61e9d384 100644 (file)
@@ -15,11 +15,11 @@ import org.simantics.browsing.ui.graph.contributor.labeler.LabelerContributor;
 import org.simantics.db.ReadGraph;
 import org.simantics.db.exception.DatabaseException;
 
-public class EntryLabeler extends LabelerContributor<ResourcePair> {
+public class EntryLabeler extends LabelerContributor<ProfileTuple> {
 
     @Override
-    public String getLabel(ReadGraph graph, ResourcePair entry) throws DatabaseException {
-       return graph.adapt(entry.getSecond(), String.class);
+    public String getLabel(ReadGraph graph, ProfileTuple entry) throws DatabaseException {
+       return graph.adapt(entry.getEntry(), String.class);
     }
 
 }