Package de.yaams.maker.helper.gui

Examples of de.yaams.maker.helper.gui.YMessagesDialog


   * @param path
   * @return true, support it/user select ignore, false, don't support it
   */
  public static boolean basics(final Action a, final String path) {
    try {
      YMessagesDialog errors = new YMessagesDialog(I18N.t("Aufruf von {0} nicht möglich", path), "action" + a.toString());

      // supported?
      if (!Desktop.isDesktopSupported()) {
        errors.add(I18N.t("Java Desktop Funktion wird vom System nicht untersützt."), Level.INFO_INT);
      }

      final Desktop desktop = Desktop.getDesktop();

      // supported?
      if (!desktop.isSupported(a)) {
        errors.add(I18N.t("{0}-Aktion wird nicht unterstützt.", a), Level.INFO_INT);
      }

      // abort?
      return errors.showOk();

    } catch (final Throwable t) {
      YEx.info("Can not run system action " + a + " for " + path, t);
    }
    return true;
View Full Code Here


    }

    // basics
    T.init();
    com.jidesoft.utils.Lm.verifyLicense("Steffen Trutz", "YAams", "90DijknROE1VxT0qJcWahMoqa5knNr2");
    mess = new YMessagesDialog(T.r("start.error", YAamsCore.TITLE), "yaams.start");
    IconCache.init(mess);
    YAamsCore.init(mess);

    // set wizard
    WizardManagement.start(new AE() {
View Full Code Here

    addWindowListener(new WindowAdapter() {
      @Override
      public void windowClosing(final WindowEvent e) {

        // collect it
        YMessagesDialog change = new YMessagesDialog(I18N.t("Save Changes?"), "frame.close");

        // open tab?
        for (String id : frame.pane.getDocumentNames()) {
          YaTab tab = getOpenTab(id);
          if (tab.isModified()) {
            change.add(tab.getTitle(), Level.INFO_INT);
          }
        }

        change.getYesnoIcon()[0] = "disk_ok";
        change.getYesnoText()[0] = I18N.t("Save");

        // is mod?
        if (!change.setIcon(IconCache.get("disk", 64)).showQuestion()) {
          return;
        }

        // save tabs
        for (String id : frame.pane.getDocumentNames()) {
View Full Code Here

   * @param dir
   * @return true, try it/all ok, false otherwise
   */
  public static boolean checkPath(String title, File path, boolean dir, boolean checkWrite) {
    // collect it
    YMessagesDialog errors = new YMessagesDialog(title, "checkpath.direct");
    checkPath(path, errors, dir, checkWrite);

    // show it
    return errors.setFooter(I18N.t("Zugriffsfehler beim Dateizugriff, trotzdem probieren?")).showQuestion();
  }
View Full Code Here

   * Check if all elements valide
   *
   * @return
   */
  public boolean isValidate() {
    YMessagesDialog y = new YMessagesDialog(T.r("form.valide.title"), "validate." + id);
    y.setFooter(T.r("dialog.ignore"));

    // ask all
    for (String key : headers.keySet()) {
      for (String keye : headers.get(key).getElements().keySet()) {
        headers.get(key).get(keye).isValidate(y);
      }
    }

    return y.showQuestion();
  }
View Full Code Here

    try {
      // set look and feel
      if (skin != null && !skin.equals("0")) {
        SubstanceLookAndFeel.setSkin(skin);
        // load it
        YMessagesDialog ymd = new YMessagesDialog(I18N.t("Kann Systemicons nicht laden."), "substance.systemicons");
        IconCache.loadSystmIcons(ymd);
        ymd.showOk();
      } else {
        UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        // SwingUtilities.updateComponentTreeUI(YaFrame.get());
        SystemHelper.restart();
      }
View Full Code Here

      p.getData().put("scripts", ini.get("Game", "Scripts"));
    } catch (Throwable t) {
      YEx.info("Can not edit " + new File(p.getPath(), "Game.ini"), t);
    }

    YMessagesDialog mess = new YMessagesDialog(I18N.t("Probleme beim Öffnen des Projects {0}", p.getTitle()), "rgss.project.open");

    // crypted?
    if (new File(p.getPath(), "Game.rgssad").exists() || new File(p.getPath(), "Game.rgssa2").exists()) {
      mess.add(I18N.t("Encrypted Games not supported."), Priority.INFO_INT);
    }

    mess.showOk();
  }
View Full Code Here

   *
   * @param thread
   */
  protected void exportThread() {
    // check it
    YMessagesDialog errors = new YMessagesDialog(I18N.t("Kann wahrscheinlich {0} nicht richtig exportieren", project.getTitle()),
        "export." + getIcon());
    exportCheck(errors);

    // check it
    if (!errors.setFooter(I18N.t("Export trotzdem wagen?")).showQuestion()) {
      return;
    }

    // do it
    export();
View Full Code Here

TOP

Related Classes of de.yaams.maker.helper.gui.YMessagesDialog

Copyright © 2018 www.massapicom. 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.