]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.diagram.profile/src/org/simantics/diagram/profile/view/ResourcePairLabelRule.java
Better support for ontological profiles
[simantics/platform.git] / bundles / org.simantics.diagram.profile / src / org / simantics / diagram / profile / view / ResourcePairLabelRule.java
index 1810722ae52be316f130c2c83bfc7d60ec067e1e..3e07a9e01b988f716fbc0120070137d4a0e89605 100644 (file)
@@ -18,13 +18,13 @@ public class ResourcePairLabelRule implements LabelRule {
 
     @Override
     public boolean isCompatible(Class<?> contentType) {
-        return contentType.equals(ResourcePair.class);
+        return contentType.equals(ProfileTuple.class);
     }
 
     @Override
     public Map<String,String> getLabel(ReadGraph graph, Object content) throws DatabaseException {
         return Collections.singletonMap(ColumnKeys.SINGLE, 
-                NameUtils.getSafeLabel(graph, ((ResourcePair)content).getSecond())
+                NameUtils.getSafeLabel(graph, ((ProfileTuple)content).getEntry())
                 );
     }
 }