cmd.setTargets(((Morphable)objs[i]).getTargets());
public void morph() {	ViewState view = ViewState.getInstance();	int size = view.getSelectedObjects().size();	if (size==0) return;	Object objs[] = new Object[size];	view.getSelectedObjects().copyInto(objs);	for(int i=0; i<size; i++)		if (objs[i] instanceof Morphable)		{			// call gui			ShowMorphingDialog cmd = (ShowMorphingDialog)CommandManager.getInstance().getCommand("ShowMorphingDialog");			cmd.setName(((Morphable)objs[i]).getName());			cmd.setOldType(((Morphable)objs[i]).getType());			cmd.execute();		}	view.deselectAll();	drawingSurface.repaint();}