Skip to content

Commit

Permalink
Fixed method name typo
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Apr 10, 2013
1 parent caf7ee6 commit 3b556d8
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
{
Expand Down Expand Up @@ -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())
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public interface ConfigurationElement extends PluginElement

boolean isPlugin();

boolean hasChilderen();
boolean hasChildren();

String getText();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ public boolean isPlugin()
}

@Override
public boolean hasChilderen()
public boolean hasChildren()
{
return configurationElement.hasChilderen();
return configurationElement.hasChildren();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public boolean isPlugin()
}

@Override
public boolean hasChilderen()
public boolean hasChildren()
{
return children != null && children.size() > 0;
}
Expand Down Expand Up @@ -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
{
Expand Down

0 comments on commit 3b556d8

Please sign in to comment.