コード例 #1
0
  public void run(String arg) {
    if (IJ.versionLessThan("1.49d")) return;

    if (!showDialog()) return;

    SaveDialog sd = new SaveDialog("Save as Bricks...", "", "");
    basename = sd.getFileName();
    directory = sd.getDirectory();
    if (basename == null || directory == null) return;

    build_bricks();
  }
コード例 #2
0
 public static void showDialog(Frame parent) {
   SaveDialog dialog = new SaveDialog(parent);
   dialog.pack();
   dialog.setLocationRelativeTo(parent);
   dialog.setVisible(true);
   /*
    * closed
    */
   if (dialog.close) {
     RefluxEdit.getInstance().close();
   }
 }