Examples of open()


Examples of de.ailis.xadrian.dialogs.OpenComplexDialog.open()

     */
    public void open()
    {
        final OpenComplexDialog dialog = OpenComplexDialog.getInstance();

        final File file = dialog.open();
        if (file != null) open(file);
    }

    /**
     * Imports a new complex from the specified template code.
View Full Code Here

Examples of de.ailis.xadrian.dialogs.SaveComplexDialog.open()

     */
    public void saveAs()
    {
        final SaveComplexDialog dialog = SaveComplexDialog.getInstance();
        dialog.setSelectedFile(getSuggestedFile());
        File file = dialog.open();
        if (file != null)
        {
            // Add file extension if none present
            if (FileUtils.getExtension(file) == null)
                file = new File(file.getPath() + ".x3c");
View Full Code Here

Examples of de.ailis.xadrian.dialogs.SelectGameDialog.open()

        // If no default game is set then ask for it
        if (game == null)
        {
            final SelectGameDialog dialog = SelectGameDialog.getInstance();
            if (dialog.open() != Result.OK) return;
            game = dialog.getGame();
            if (dialog.isRemember()) config.setDefaultGame(game.getId());
        }
        createComplexTab(new ComplexEditor(new Complex(game)));
    }
View Full Code Here

Examples of de.ailis.xadrian.dialogs.SelectSectorDialog.open()

    {
        final Sector sector = this.sectorProvider.getSector();
        final SelectSectorDialog dialog =
            this.gameProvider.getGame().getSelectSectorDialog();
        dialog.setSelected(sector);
        if (dialog.open() == Result.OK)
            this.sectorProvider.setSector(dialog.getSelected());
    }

    /**
     * @see de.ailis.xadrian.listeners.StateListener#stateChanged()
View Full Code Here

Examples of de.ailis.xadrian.dialogs.SetYieldsDialog.open()

        if (factory.isMine())
        {
            final SetYieldsDialog dialog = new SetYieldsDialog(factory);
            dialog.setYields(null);
            dialog.setSector(getSector());
            if (dialog.open() == Result.OK)
            {
                setSector(dialog.getSector());
                addFactory(new ComplexFactory(this.game, factory,
                    dialog.getYields()));
                calculateBaseComplex();
View Full Code Here

Examples of de.chris_soft.fyllgen.widget.dialog.ExportDataAsFileDialog.open()

  /**
   * @see org.eclipse.swt.widgets.Listener#handleEvent(org.eclipse.swt.widgets.Event)
   */
  public void handleEvent(Event event) {
    ExportDataAsFileDialog exportDialog = new ExportDataAsFileDialog(GUI.instance.shell);
    exportDialog.open();
  }
}
View Full Code Here

Examples of de.chris_soft.fyllgen.widget.dialog.ImageCutDialog.open()

        }
      }

      private String cutImage(String imagename) throws IOException {
        ImageCutDialog icd = new ImageCutDialog(GUI.instance.shell, file);
        icd.open();
        return icd.newImageName;
      }
    });
  }
}
View Full Code Here

Examples of de.chris_soft.fyllgen.widget.dialog.MergeChoiceDialog.open()

   * direkt �bernommen bzw. es wird eine neue Person erzeugt.
   * @return false, wenn der Anwender einen Dialog abgebrochen hat, sonst true.
   */
  private boolean mergeNextPerson() {
    MergeChoiceDialog npcd = new MergeChoiceDialog(GUI.instance.shell);
    npcd.open();
    if (npcd.finished) {
      MergePersonDialog mpd = new MergePersonDialog(GUI.instance.shell, npcd.oldPerson, npcd.newPerson);
      mpd.open();
      return mpd.finished;
    }
View Full Code Here

Examples of de.chris_soft.fyllgen.widget.dialog.MergeChoiceRelationshipPersonDialog.open()

    }

    // Eigentlichen Merge-Dialog aufrufen und auswerten.
    boolean bNext;
    MergeChoiceRelationshipPersonDialog mcrpd = new MergeChoiceRelationshipPersonDialog(GUI.instance.shell, rel);
    mcrpd.open();
    bNext = mcrpd.finished;
    if (mcrpd.finished) {
      MergePersonDialog mpd = new MergePersonDialog(GUI.instance.shell, mcrpd.oldPerson, mcrpd.otherPerson);
      mpd.open();
      bNext = mpd.finished;
View Full Code Here

Examples of de.chris_soft.fyllgen.widget.dialog.MergePersonDialog.open()

    MergeChoiceRelationshipPersonDialog mcrpd = new MergeChoiceRelationshipPersonDialog(GUI.instance.shell, rel);
    mcrpd.open();
    bNext = mcrpd.finished;
    if (mcrpd.finished) {
      MergePersonDialog mpd = new MergePersonDialog(GUI.instance.shell, mcrpd.oldPerson, mcrpd.otherPerson);
      mpd.open();
      bNext = mpd.finished;
    }
    else if (mcrpd.finishedNew) {
      MergePersonDialog mpd = new MergePersonDialog(GUI.instance.shell, null, mcrpd.otherPerson);
      mpd.open();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.