public CopyAction(UMLDeploymentDiagram d) { super(MComponentInstanceImpl.class, d.getName()); diagram = d; ProjectBrowser pb = ProjectBrowser.TheInstance; Object target = pb.getDetailsTarget(); if (target instanceof MClass) { orig = (MClass) target; System.err.println("--------------------------------" + target.getClass()); } }
public void doIt() { ProjectBrowser pb = ProjectBrowser.TheInstance; pb.setTarget(diagram); super.doIt(); }