本文整理汇总了Java中org.jboss.forge.addon.ui.result.Results.navigateTo方法的典型用法代码示例。如果您正苦于以下问题:Java Results.navigateTo方法的具体用法?Java Results.navigateTo怎么用?Java Results.navigateTo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jboss.forge.addon.ui.result.Results
的用法示例。
在下文中一共展示了Results.navigateTo方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: next
import org.jboss.forge.addon.ui.result.Results; //导入方法依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception
{
applyUIValues(context.getUIContext());
final DatabaseType database = dbType.getValue();
if (!isNotEmbeddedDB(database))
{
return Results.navigateTo(FinishJPASetupCommand.class);
}
else
{
if (dataSourceName.hasValue())
{
// if we specified a datasource, use it
return Results.navigateTo(AddJNDIDatasourceCommand.class);
}
else
{
// otherwise, we're using the DB URL, so deal with it
return Results.navigateTo(AddDBURLCommand.class);
}
}
}
示例2: next
import org.jboss.forge.addon.ui.result.Results; //导入方法依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception {
context.getUIContext().getAttributeMap().put("name", name.getValue());
context.getUIContext().getAttributeMap().put("description", description.getValue());
context.getUIContext().getAttributeMap().put("labels", labels.getValue());
context.getUIContext().getAttributeMap().put("source", source.getValue());
return Results.navigateTo(CustomComponentChoiceStep.class);
}
示例3: next
import org.jboss.forge.addon.ui.result.Results; //导入方法依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception {
if (custom.getValue() == true) {
return Results.navigateTo(AddCustomComponentStep.class);
} else {
return Results.navigateTo(ConnectorSelectComponentStep.class);
}
}
示例4: next
import org.jboss.forge.addon.ui.result.Results; //导入方法依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception {
context.getUIContext().getAttributeMap().put("customGroupId", groupId.getValue());
context.getUIContext().getAttributeMap().put("customArtifactId", artifactId.getValue());
context.getUIContext().getAttributeMap().put("customVersion", version.getValue());
return Results.navigateTo(ConnectorSelectComponentStep.class);
}
示例5: next
import org.jboss.forge.addon.ui.result.Results; //导入方法依赖的package包/类
@Override
@SuppressWarnings("unchecked")
public NavigationResult next(UINavigationContext arg0) throws Exception
{
return Results.navigateTo(
AddLiquibaseCommand.class,
SetPropertiesCommand.class,
GenerateMasterChangeLogFileCommand.class);
}
示例6: next
import org.jboss.forge.addon.ui.result.Results; //导入方法依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception
{
UIContext uiContext = context.getUIContext();
Map<Object, Object> attributeMap = uiContext.getAttributeMap();
ResourceCollection resourceCollection = new ResourceCollection();
if (targets.getValue() != null)
{
for (JavaClassSource klass : targets.getValue())
{
Project project = getSelectedProject(uiContext);
JavaSourceFacet javaSource = project.getFacet(JavaSourceFacet.class);
Resource<?> resource = javaSource.getJavaResource(klass);
if (resource != null)
{
resourceCollection.addToCollection(resource);
}
}
}
attributeMap.put(ResourceCollection.class, resourceCollection);
Boolean shouldGenerateRestResources = generateRestResources.getValue();
if (shouldGenerateRestResources.equals(Boolean.TRUE))
{
return Results.navigateTo(JSONRestResourceFromEntityCommand.class);
}
return null;
}
示例7: next
import org.jboss.forge.addon.ui.result.Results; //导入方法依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception {
return Results.navigateTo(FinishJPASetupCommand.class);
}
示例8: next
import org.jboss.forge.addon.ui.result.Results; //导入方法依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception {
return Results.navigateTo(Fabric8SetupStep.class);
}
示例9: next
import org.jboss.forge.addon.ui.result.Results; //导入方法依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception {
context.getUIContext().getAttributeMap().put("filter", filter.getValue());
return Results.navigateTo(ConnectorSelectStep.class);
}
示例10: next
import org.jboss.forge.addon.ui.result.Results; //导入方法依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) {
return Results.navigateTo(this.getSetupFlow(), CreateConnectorCommand.class);
}