if (!(o instanceof NodeWrapper)) {
return;
}
NodeWrapper<NodeDisplayProperty> prop =
(NodeWrapper<NodeDisplayProperty>) o;
NodeDisplayProperty p = prop.getContent();
GraphNode node = prop.getNode();
// System.out.println("" + p + " " + property + " - " + value);
if (property.equals(COL_VISIBLE) && (value instanceof Boolean)) {
p.setVisible((Boolean) value);
} else if (property.equals(COL_SELECTED) && (value instanceof Boolean)) {
selectNode(node, (Boolean) value);
} else if (property.equals(COL_SIZE) && (value instanceof Integer)) {
p.setSize(Size.values()[(Integer) value]);
} else if (property.equals(COL_COLOR) && (value instanceof String)) {
Color newColor = StringUtils.stringToColor((String) value);
p.setColor(newColor);
}
// notify the listeners about this change
getEditor().setNodeProperty(node, p);
// update the column / line we just modified
nodeTreeView.getTreeViewer().update(o, new String[] {property});