// Path: src/main/java/org/robovm/idea/RoboVmIcons.java
// public class RoboVmIcons {
//     public static final Icon ROBOVM_SMALL = IconLoader.findIcon("/icons/robovm_small.png");
//     public static final Icon ROBOVM_LARGE = IconLoader.findIcon("/icons/robovm_large.png");
// }


import com.intellij.ide.util.projectWizard.JavaModuleBuilder;
import com.intellij.ide.util.projectWizard.ModuleBuilder;
import com.intellij.ide.util.projectWizard.WizardContext;
import com.intellij.platform.ProjectTemplate;
import com.intellij.platform.ProjectTemplatesFactory;
import com.intellij.platform.templates.BuilderBasedTemplate;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.robovm.idea.RoboVmIcons;
import javax.swing.*;
/*
 * Copyright (C) 2015 RoboVM AB
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/gpl-2.0.html>.
 */
package org.robovm.idea.builder;



/**
 * Returns a project template for every template known
 * by the templater. If a user selects one of the templates
 * it's build with the {@link RoboVmModuleBuilder}
 *
 */
public class RoboVmTemplatesFactory extends ProjectTemplatesFactory {
    @NotNull
    @Override
    public String[] getGroups() {
        return new String[] { "RoboVM" };
    }

    @Override
    public int getGroupWeight(String group) {
        return JavaModuleBuilder.JAVA_MOBILE_WEIGHT;
    }

    @Override
    public String getParentGroup(String group) {
        return "Java";
    }

    @Override
    public Icon getGroupIcon(String group) {
// Path: src/main/java/org/robovm/idea/RoboVmIcons.java
// public class RoboVmIcons {
//     public static final Icon ROBOVM_SMALL = IconLoader.findIcon("/icons/robovm_small.png");
//     public static final Icon ROBOVM_LARGE = IconLoader.findIcon("/icons/robovm_large.png");
// }


// Path: src/main/java/org/robovm/idea/builder/RoboVmTemplatesFactory.java
import com.intellij.ide.util.projectWizard.JavaModuleBuilder;
import com.intellij.ide.util.projectWizard.ModuleBuilder;
import com.intellij.ide.util.projectWizard.WizardContext;
import com.intellij.platform.ProjectTemplate;
import com.intellij.platform.ProjectTemplatesFactory;
import com.intellij.platform.templates.BuilderBasedTemplate;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.robovm.idea.RoboVmIcons;
import javax.swing.*;

/*
 * Copyright (C) 2015 RoboVM AB
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/gpl-2.0.html>.
 */
package org.robovm.idea.builder;



/**
 * Returns a project template for every template known
 * by the templater. If a user selects one of the templates
 * it's build with the {@link RoboVmModuleBuilder}
 *
 */
public class RoboVmTemplatesFactory extends ProjectTemplatesFactory {
    @NotNull
    @Override
    public String[] getGroups() {
        return new String[] { "RoboVM" };
    }

    @Override
    public int getGroupWeight(String group) {
        return JavaModuleBuilder.JAVA_MOBILE_WEIGHT;
    }

    @Override
    public String getParentGroup(String group) {
        return "Java";
    }

    @Override
    public Icon getGroupIcon(String group) {
        return RoboVmIcons.ROBOVM_SMALL;