}
}
}
// TODO extract + refactor layout (have method layout on node)
Node inputNode = expansionCallback.getDisplay().getNode(
resource.getUri());
Point inputLocation = expansionCallback.getDisplay().getLocation(
inputNode);
List<Node> nodesToLayout = new ArrayList<Node>();
for (String uri : added) {
Node node = expansionCallback.getDisplay().getNode(uri);
expansionCallback.getDisplay().setLocation(node, inputLocation);
nodesToLayout.add(node);
}
expansionCallback.getDisplay().runLayoutOnNodes(nodesToLayout);