// add command to copy properties
if (originalView instanceof Node) {
if (((Node) originalView).getLayoutConstraint() instanceof Bounds) {
Bounds b = (Bounds) ((Node) originalView)
.getLayoutConstraint();
boundsCommand.add(new SetBoundsCommand(boundsCommand
.getEditingDomain(), boundsCommand.getLabel(),
descriptor, new Rectangle(b.getX(), b.getY(), b
.getWidth(), b.getHeight())));
} else if (((Node) originalView).getLayoutConstraint() instanceof Location) {
Location l = (Location) ((Node) originalView)
.getLayoutConstraint();
boundsCommand.add(new SetBoundsCommand(boundsCommand
.getEditingDomain(), boundsCommand.getLabel(),
descriptor, new Point(l.getX(), l.getY())));
} else if (((Node) originalView).getLayoutConstraint() instanceof Size) {
Size s = (Size) ((Node) originalView)
.getLayoutConstraint();
boundsCommand.add(new SetBoundsCommand(boundsCommand
.getEditingDomain(), boundsCommand.getLabel(),
descriptor, new Dimension(s.getWidth(), s
.getHeight())));
}
}