Examples of IExtension


Examples of de.yaams.maker.helper.extensions.IExtension

    // add tabs
    YaFrame.registerTab(new RGSSTabEvent());

    // add credits
    ExtentionManagement.add(OptionsTab.OPTIONS_INFO, new IExtension() {

      @Override
      public void work(HashMap<String, Object> objects) {
        FormBuilder f = (FormBuilder) objects.get("form");
        f.addElement("thx.colorpicker", new FormLink("javagraphics for Color Picker",
            "http://javagraphics.blogspot.com/2007/04/jcolorchooser-making-alternative.html"));

      }
    });

    // add options
    ExtentionManagement.add(OptionsTab.EXADD, new IExtension() {

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

        list.add(new SplitActionListElement(I18N.t("RGSS Project"), null, "rgssproject") {

          @Override
          protected Component getComponent(Project p) {
            final FormBuilder f = new FormBuilder("options.rgss");

            // add licences
            f.getHeader("basic").setTitle(I18N.t("Lizenzen")).setIcon("licence").setColumn(4);
            f.addElement("basic.xp", YSettingHelper.bool(null, I18N.t("Lizenz für den XP"), "licence.xp", false));
            f.addElement("basic.vx", YSettingHelper.bool(null, I18N.t("Lizenz für den VX"), "licence.vx", false));

            return f.getPanel(true);
          }
        });

      }
    });

    // add open in maker
    // TODO
    ExtentionManagement.add("rgssproject.hometag", new IExtension() {

      @Override
      public void work(HashMap<String, Object> objects) {

        final Project p = (Project) objects.get("project");
View Full Code Here

Examples of de.yaams.maker.helper.extensions.IExtension

    // add icon
    IconCache.addPNG(NIcons.class, "notes", "bold", "italic", "underline", "leaf-black", "leaf-blue", "leaf-red", "leaf-yellow", "leaf-green", "redo",
        "undo");

    // add ex
    ExtentionManagement.add(Project.EXLOAD, new IExtension() {

      @Override
      public void work(HashMap<String, Object> objects) {
        Project p = (Project) objects.get("project");
View Full Code Here

Examples of de.yaams.maker.helper.extensions.IExtension

    // add mapinfo
    BaseMapPlugin.getPlugs().add(new CMapWriter());

    // add ex
    ExtentionManagement.add(Project.EXLOAD, new IExtension() {

      @Override
      public void work(HashMap<String, Object> objects) {
        Project p = (Project) objects.get("project");
View Full Code Here

Examples of de.yaams.maker.helper.extensions.IExtension

    // add project type
    ProjectManagement.registerType(new QuizProjectType());

    // add ex
    ExtentionManagement.add(Project.EXLOAD, new IExtension() {

      @Override
      public void work(HashMap<String, Object> objects) {
        Project p = (Project) objects.get("project");
View Full Code Here

Examples of de.yaams.maker.helper.extensions.IExtension

   * Add Game options to the tab
   */
  public static void addGameOptions() {
    // add options
    // add run settings
    ExtentionManagement.add(ProjectOptionsTab.EXADD, new IExtension() {

      @Override
      public void work(HashMap<String, Object> objects) {
        ArrayList<BasisListElement> eles = (ArrayList<BasisListElement>) objects.get("list");

View Full Code Here

Examples of de.yaams.maker.helper.extensions.IExtension

   * @see de.yaams.core.helper.plugins.BasePlugin#start()
   */
  @Override
  public void start() {

    ExtentionManagement.add(OptionsTab.EXADD, new IExtension() {

      @Override
      public void work(HashMap<String, Object> objects) {
        // right level?
        if (!YLevel.IS_DEVELOPER) {
View Full Code Here

Examples of de.yaams.maker.helper.extensions.IExtension

    for (String s : new String[] { "imageeditor" }) {
      IconCache.addPNG(s, getClass());
    }

    // add credits
    ExtentionManagement.add(OptionsTab.OPTIONS_INFO, new IExtension() {

      @Override
      public void work(HashMap<String, Object> objects) {
        FormBuilder f = (FormBuilder) objects.get("form");
        f.addElement("thx.imageeditor", new FormLink("JH Labs for ImageEditor", "http://www.jhlabs.com/ie/index.html"));

      }
    });

    // add panel
    ExtentionManagement.add("ress.panel", new IExtension() {

      @Override
      public void work(HashMap<String, Object> objects) {
        RessPanel ress = (RessPanel) objects.get("panel");
        RessourceList list = (RessourceList) objects.get("list");

        // build it
        PreviewPanel preview = new PreviewPanel();
        JPanel left = new JPanel(new GridLayout(1, 1));

        // add it
        ress.setList(new RessourceXList(list.getProject(), list.getFolder(), preview, left));

        // add element
        ress.removeAll();
        ress.add(YFactory.createHorizontPanel(left, ress.getList(), "ressX.panel"));
        ress.invalidate();
        ress.revalidate();

      }
    });

    // add preview
    ExtentionManagement.add("formelement.FormRessElement", new IExtension() {

      @Override
      public void work(HashMap<String, Object> objects) {
        FormRessElement ress = (FormRessElement) objects.get("form");
View Full Code Here

Examples of de.yaams.maker.helper.extensions.IExtension

  public MapPlugin() {

    registerEventCommands();

    // add db
    ExtentionManagement.add(Project.EXLOAD, new IExtension() {

      @Override
      public void work(HashMap<String, Object> objects) {
        final Project p = (Project) objects.get("project");
View Full Code Here

Examples of de.yaams.maker.helper.extensions.IExtension

    // add help
    new HelpAdder();

    // add db
    ExtentionManagement.add(Project.EXLOAD, new IExtension() {

      @Override
      public void work(HashMap<String, Object> objects) {
        final Project p = (Project) objects.get("project");
View Full Code Here

Examples of net.flexmojos.oss.compiler.IExtension

            if ( extension.getExtensionArtifact() == null )
            {
                throw new IllegalArgumentException( "Extension artifact is required!" );
            }

            extensions[i] = new IExtension()
            {
                public File extension()
                {
                    MavenArtifact a = extension.getExtensionArtifact();
                    Artifact resolvedArtifact =
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.