Examples of YMessagesDialog


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

   * Check if all elements valide
   *
   * @return
   */
  public boolean isValidate() {
    YMessagesDialog y = new YMessagesDialog(I18N.t("Fehler beim Ausfüllen"), "validate." + id);
    y.setFooter(I18N.t("Trotzdem fortfahren?"));

    // 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

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

public class Start {
  public static void main(String[] args) {

    // init system
    YMessagesDialog errors = new YMessagesDialog(I18N.t("{0} can't start.", YrgssCore.NAME), "start");

    initSystem(errors);
    Yrgss.init(errors);
    IconCache.init(errors);

    if (!errors.showQuestion()) {
      System.exit(0);
    }

    YEx.info("1", new Throwable("2"));
View Full Code Here

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

      branding = new HashMap<String, String>();
    }
  }

  public static RGSSGame loadProject(File path) {
    YMessagesDialog errors = new YMessagesDialog(I18N.t("Can not read project from {0}.", path), "game.start");
    RGSSGame p = new RGSSGame(path, errors);
    if (!errors.showQuestion()) {
      return null;
    }
    return p;
  }
View Full Code Here

Examples of de.yaams.core.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."), Priority.INFO_INT);
      }

      final Desktop desktop = Desktop.getDesktop();

      // supported?
      if (!desktop.isSupported(a)) {
        errors.add(I18N.t("{0}-Aktion wird nicht unterstützt.", a), Priority.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

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

   * @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

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

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

    }

    // 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

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

    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

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

   * @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

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

   * 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
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.