public Collection<?> 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);
return Collections.emptyList();
}
- private Collection<?> 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<Object> inputs = new ArrayList<Object>();
return result;
}
- private void parseResourceInput(ReadGraph g, Resource part, ResourcePair pair, Collection<Object> inputs) throws DatabaseException {
+ private void parseResourceInput(ReadGraph g, Resource part, ProfileTuple pair, Collection<Object> inputs) throws DatabaseException {
getGroups(g, part, pair, inputs);
}
- void getGroups(ReadGraph g, Resource r, ResourcePair p, Collection<Object> result) throws DatabaseException {
+ void getGroups(ReadGraph g, Resource r, ProfileTuple p, Collection<Object> result) throws DatabaseException {
DiagramResource dr = DiagramResource.getInstance(g);
if (r != null && g.isInstanceOf(r, dr.SCLGroup)) {
result.add(new SCLInput(r, 1, "SCL Group"));
if (r != null && g.isInstanceOf(r, dr.SCLTextStyle)) {
result.add(new SCLInput(r, 2, "SCL Text Style"));
}
- if (p != null && g.isInstanceOf(p.getSecond(), dr.GroupStyleProfileEntry)) {
- Resource group = g.getPossibleObject(p.getSecond(), dr.ProfileEntry_HasGroup);
+ if (p != null && g.isInstanceOf(p.getEntry(), dr.GroupStyleProfileEntry)) {
+ Resource group = g.getPossibleObject(p.getEntry(), dr.ProfileEntry_HasGroup);
if (group != null && g.isInstanceOf(group, dr.SCLGroup)) {
result.add(new SCLInput(group, 1, "SCL Group"));
}
- Resource style = g.getPossibleObject(p.getSecond(), dr.ProfileEntry_HasStyle);
+ Resource style = g.getPossibleObject(p.getEntry(), dr.ProfileEntry_HasStyle);
if (style != null && g.isInstanceOf(style, dr.SCLTextStyle)) {
result.add(new SCLInput(style, 2, "SCL Text Style"));
}