Skip to content

Commit

Permalink
Resource API not required by UI api
Browse files Browse the repository at this point in the history
  • Loading branch information
lincolnthree committed Dec 20, 2012
1 parent 13c8d9f commit 6676a5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
10 changes: 0 additions & 10 deletions ui/api/pom.xml
Expand Up @@ -9,14 +9,4 @@
<artifactId>ui-api</artifactId>
<name>Forge - UI API</name>

<dependencies>
<dependency>
<groupId>org.jboss.forge</groupId>
<artifactId>resource</artifactId>
<version>${project.version}</version>
<classifier>forge-addon</classifier>
<scope>compile</scope>
</dependency>
</dependencies>

</project>
@@ -1,11 +1,11 @@
package org.jboss.forge.ui.impl;

import java.io.File;
import java.util.concurrent.Callable;

import javax.inject.Inject;

import org.jboss.forge.container.services.Remote;
import org.jboss.forge.resource.DirectoryResource;
import org.jboss.forge.ui.Result;
import org.jboss.forge.ui.UICommand;
import org.jboss.forge.ui.UIContext;
Expand All @@ -27,7 +27,7 @@ public class MockNewProjectCommand implements UICommand, UIWizardStep
private UIInput<String> projectName;

@Inject
private UIInput<DirectoryResource> projectDir;
private UIInput<File> projectDir;

// Rendered as a checkbox
@Inject
Expand All @@ -43,10 +43,10 @@ public void initializeUI(UIContext context) throws Exception

// context.addFieldRelationship(projectDir).enabledWhen(projectName).isValid();

projectDir.setDefaultValue(new Callable<DirectoryResource>()
projectDir.setDefaultValue(new Callable<File>()
{
@Override
public DirectoryResource call()
public File call()
{
return null;
}
Expand Down

0 comments on commit 6676a5e

Please sign in to comment.