-
- ResourcePair entry = (ResourcePair)parent;
- ArrayList<ResourcePair> entries = new ArrayList<ResourcePair>();
- DiagramResource DIA = DiagramResource.getInstance(graph);
- Resource children = graph.getPossibleObject(entry.getSecond(), DIA.HasEntries);
- if(children == null) return Collections.emptyList();
- else {
- for(Resource entry2 : ProfileUtils.getProfileChildrenFromEntries(graph, children)) entries.add(new ResourcePair(entry.getFirst(), entry2));
- return entries;
- }
- }
+ ProfileTuple entry = (ProfileTuple) parent;
+ ArrayList<ProfileTuple> entries = new ArrayList<>();
+ DiagramResource DIA = DiagramResource.getInstance(graph);
+ Resource children = graph.getPossibleObject(entry.getEntry(), DIA.HasEntries);
+ if (children != null) {
+ for (Resource entry2 : ProfileUtils.getProfileChildrenFromEntries(graph, children))
+ entries.add(new ProfileTuple(entry.getBaseProfile(), entry2, entry.getRuntimeDiagram()));
+ return entries;
+ }
+ return Collections.emptyList();
+ }