コード例 #1
0
  public static JMenu getJMenu() {
    JMenu menu = new JMenu("copy to DeploymentDiagram as ComponentInstance");
    Project p = ProjectBrowser.TheInstance.getProject();
    for (Iterator it = p.getDiagrams().iterator(); it.hasNext(); ) {
      Object d = it.next();
      if (d instanceof UMLDeploymentDiagram) menu.add(new CopyAction((UMLDeploymentDiagram) d));
    }

    return menu;
  }
コード例 #2
0
 public void actionPerformed(ActionEvent event) {
   ProjectBrowser.TheInstance.saveScreenConfiguration();
   if (!Configuration.save()) Configuration.save(true);
 }