X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.diagram.profile%2Fsrc%2Forg%2Fsimantics%2Fdiagram%2Fprofile%2Fview%2FProfileSelectionProcessor.java;fp=bundles%2Forg.simantics.diagram.profile%2Fsrc%2Forg%2Fsimantics%2Fdiagram%2Fprofile%2Fview%2FProfileSelectionProcessor.java;h=c060f067ae22cd02ffd19becde47358d63cb8a19;hp=118d46f8e7c9edba9c88782b1730e0d5b9dbbe6e;hb=08dc7080753f3ea35985e76e9effb9d3ff92c3b5;hpb=7399881afbe82eb7020ac279604eaa0316724672 diff --git a/bundles/org.simantics.diagram.profile/src/org/simantics/diagram/profile/view/ProfileSelectionProcessor.java b/bundles/org.simantics.diagram.profile/src/org/simantics/diagram/profile/view/ProfileSelectionProcessor.java index 118d46f8e..c060f067a 100644 --- a/bundles/org.simantics.diagram.profile/src/org/simantics/diagram/profile/view/ProfileSelectionProcessor.java +++ b/bundles/org.simantics.diagram.profile/src/org/simantics/diagram/profile/view/ProfileSelectionProcessor.java @@ -25,7 +25,7 @@ public class ProfileSelectionProcessor implements SelectionProcessor process(Object selection, ReadGraph g) { try { Resource object = ISelectionUtils.getSinglePossibleKey(selection, SelectionHints.KEY_MAIN, Resource.class); - ResourcePair object2 = ISelectionUtils.getSinglePossibleKey(selection, SelectionHints.KEY_MAIN, ResourcePair.class); + ProfileTuple object2 = ISelectionUtils.getSinglePossibleKey(selection, SelectionHints.KEY_MAIN, ProfileTuple.class); return processInternal(g, object, object2, selection); @@ -36,7 +36,7 @@ public class ProfileSelectionProcessor implements SelectionProcessor processInternal(ReadGraph g, Resource object, ResourcePair pair, Object selection) throws DatabaseException { + private Collection processInternal(ReadGraph g, Resource object, ProfileTuple pair, Object selection) throws DatabaseException { Collection inputs = new ArrayList(); @@ -59,11 +59,11 @@ public class ProfileSelectionProcessor implements SelectionProcessor inputs) throws DatabaseException { + private void parseResourceInput(ReadGraph g, Resource part, ProfileTuple pair, Collection inputs) throws DatabaseException { getGroups(g, part, pair, inputs); } - void getGroups(ReadGraph g, Resource r, ResourcePair p, Collection result) throws DatabaseException { + void getGroups(ReadGraph g, Resource r, ProfileTuple p, Collection result) throws DatabaseException { DiagramResource dr = DiagramResource.getInstance(g); if (r != null && g.isInstanceOf(r, dr.SCLGroup)) { result.add(new SCLInput(r, 1, "SCL Group")); @@ -71,12 +71,12 @@ public class ProfileSelectionProcessor implements SelectionProcessor