Permalink
Browse files

Fixed method name typo

  • Loading branch information...
1 parent caf7ee6 commit 3b556d84c96a66ecaec6ad1884f40a88b4515081 @gastaldi gastaldi committed Apr 10, 2013
@@ -14,6 +14,12 @@
import org.jboss.forge.container.Forge;
import org.jboss.forge.container.addons.AddonId;
import org.jboss.forge.container.repositories.AddonRepository;
+import org.jboss.forge.dependencies.builder.CoordinateBuilder;
+import org.jboss.forge.dependencies.builder.DependencyBuilder;
+import org.jboss.forge.maven.plugins.ExecutionBuilder;
+import org.jboss.forge.maven.plugins.MavenPluginBuilder;
+import org.jboss.forge.maven.plugins.MavenPluginImpl;
+import org.jboss.forge.maven.projects.MavenPluginFacet;
import org.jboss.forge.projects.Project;
import org.jboss.forge.ui.context.UIBuilder;
import org.jboss.forge.ui.context.UIContext;
@@ -23,13 +29,14 @@
import org.jboss.forge.ui.metadata.UICommandMetadata;
import org.jboss.forge.ui.result.NavigationResult;
import org.jboss.forge.ui.result.Result;
+import org.jboss.forge.ui.result.Results;
import org.jboss.forge.ui.util.Categories;
import org.jboss.forge.ui.util.Metadata;
import org.jboss.forge.ui.wizard.UIWizardStep;
/**
* @author <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a>
- *
+ *
*/
public class ForgeAddonSetupStep implements UIWizardStep
{
@@ -59,7 +66,7 @@ public boolean isEnabled(UIContext context)
@Override
public void initializeUI(UIBuilder builder) throws Exception
{
- splitApiImpl.setLabel("Split API and Implementation projects?");
+ splitApiImpl.setLabel("Split API and Implementation projects?").setDefaultValue(Boolean.FALSE);
addons.setLabel("Depend on these addons:");
Set<AddonId> choices = new HashSet<AddonId>();
for (AddonRepository repository : forge.getRepositories())
@@ -83,8 +90,18 @@ public void validate(UIValidationContext validator)
public Result execute(UIContext context) throws Exception
{
Project project = (Project) context.getAttribute(Project.class);
-
- return null;
+ MavenPluginFacet pluginFacet = project.getFacet(MavenPluginFacet.class);
+ if (splitApiImpl.getValue())
+ {
+ }
+ else
+ {
+ }
+ CoordinateBuilder compilerPlugin = CoordinateBuilder.create().setGroupId("org.apache.maven.plugins")
+ .setArtifactId("maven-compiler-plugin");
+
+ MavenPluginBuilder.create(). setDependency(DependencyBuilder.create().setCoordinate(compilerPlugin)).addExecution(ExecutionBuilder.);
+ return Results.success("Forge project created");
}
@Override
@@ -18,7 +18,7 @@
boolean isPlugin();
- boolean hasChilderen();
+ boolean hasChildren();
String getText();
@@ -31,9 +31,9 @@ public boolean isPlugin()
}
@Override
- public boolean hasChilderen()
+ public boolean hasChildren()
{
- return configurationElement.hasChilderen();
+ return configurationElement.hasChildren();
}
@Override
@@ -42,7 +42,7 @@ public boolean isPlugin()
}
@Override
- public boolean hasChilderen()
+ public boolean hasChildren()
{
return children != null && children.size() > 0;
}
@@ -156,7 +156,7 @@ else if (filterType.equals(FilterType.NAME) && filter.equals(element.getName()))
return element;
}
- if (!directChildsOnly && element.hasChilderen())
+ if (!directChildsOnly && element.hasChildren())
{
try
{

0 comments on commit 3b556d8

Please sign in to comment.