Examples of YaTab


Examples of de.yaams.maker.programm.tabs.YaTab

        // 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");
View Full Code Here

Examples of de.yaams.maker.programm.tabs.YaTab

            // new SwingHelper(true) {
            //
            // @Override
            // public void run() {
            // search for the tab
            YaTab tab = TabEvent.getTab(id);

            // found something?
            if (tab == null) {
              YEx.info("Can not find tab for " + id, new IllegalArgumentException("Tab " + id + " is missing"));
              close(id);
              return;
            }
            Log.ger.info("Open Tab " + tab.getTitle() + " (" + id + ")");

            // inform
            ExtentionManagement.work("yaframe.openTab", JavaHelper.createHashStringObj("tab", tab));
            // frame.tabs.put(tab.getID(), tab);
            tab.getDocument(doccom, id);

            // overwrite with fav?
            if (fav != null) {
              doccom.setTitle(String.valueOf(fav.getTitle()));
              doccom.setIcon(IconCache.get(String.valueOf(fav.getIcon())));
              setTooltip(fav.getTitle(), fav.getIcon());
            } else {
              setTooltip(tab.getTitle(), tab.getIcon());
            }

            //
            // }
            // };
View Full Code Here

Examples of de.yaams.maker.programm.tabs.YaTab

    // add play button
    ExtentionManagement.add("yaframe.openTab", new IExtension() {

      @Override
      public void work(HashMap<String, Object> objects) {
        YaTab tab = (YaTab) objects.get("tab");

        // right tab?
        if (tab instanceof ProjectTab) {

          // has project?
          final Project p = ((ProjectTab) tab).getProject();
          if (!RGSSProjectHelper.is(p, true, true)) {
            return;
          }

          // add run button
          if (ProjectSett.get(p, "run_showOnEveryTab", true) && tab.getToolbar() != null) {
            tab.getToolbar().add(YFactory.tb(I18N.t("Start ein Testspiel"), "monitor_opts", new AE() {

              @Override
              public void run() {
                runProject(p);
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.