X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.diagram.profile%2Fsrc%2Forg%2Fsimantics%2Fdiagram%2Fprofile%2Fview%2FResourcePairLabelRule.java;h=3e07a9e01b988f716fbc0120070137d4a0e89605;hb=08dc7080753f3ea35985e76e9effb9d3ff92c3b5;hp=1810722ae52be316f130c2c83bfc7d60ec067e1e;hpb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.diagram.profile/src/org/simantics/diagram/profile/view/ResourcePairLabelRule.java b/bundles/org.simantics.diagram.profile/src/org/simantics/diagram/profile/view/ResourcePairLabelRule.java index 1810722ae..3e07a9e01 100644 --- a/bundles/org.simantics.diagram.profile/src/org/simantics/diagram/profile/view/ResourcePairLabelRule.java +++ b/bundles/org.simantics.diagram.profile/src/org/simantics/diagram/profile/view/ResourcePairLabelRule.java @@ -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 getLabel(ReadGraph graph, Object content) throws DatabaseException { return Collections.singletonMap(ColumnKeys.SINGLE, - NameUtils.getSafeLabel(graph, ((ResourcePair)content).getSecond()) + NameUtils.getSafeLabel(graph, ((ProfileTuple)content).getEntry()) ); } }