当前位置: 首页>>代码示例>>Java>>正文


Java Results.navigateTo方法代码示例

本文整理汇总了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);
      }
   }
}
 
开发者ID:forge,项目名称:springboot-addon,代码行数:25,代码来源:SpringBootJPASetupWizard.java

示例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);
}
 
开发者ID:fabric8io,项目名称:django,代码行数:10,代码来源:CreateConnectorCommand.java

示例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);
    }
}
 
开发者ID:fabric8io,项目名称:django,代码行数:9,代码来源:CustomComponentChoiceStep.java

示例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);
}
 
开发者ID:fabric8io,项目名称:django,代码行数:9,代码来源:AddCustomComponentStep.java

示例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);
}
 
开发者ID:forge,项目名称:db-migration-addon,代码行数:10,代码来源:SetupWizard.java

示例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;
}
 
开发者ID:forge,项目名称:angularjs-addon,代码行数:29,代码来源:ScaffoldableEntitySelectionWizard.java

示例7: next

import org.jboss.forge.addon.ui.result.Results; //导入方法依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception {
   return Results.navigateTo(FinishJPASetupCommand.class);
}
 
开发者ID:forge,项目名称:springboot-addon,代码行数:5,代码来源:AbstractDataSourceCommand.java

示例8: next

import org.jboss.forge.addon.ui.result.Results; //导入方法依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception {
    return Results.navigateTo(Fabric8SetupStep.class);
}
 
开发者ID:fabric8io,项目名称:fabric8-forge,代码行数:5,代码来源:Fabric8SetupCommand.java

示例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);
}
 
开发者ID:fabric8io,项目名称:django,代码行数:7,代码来源:ProjectAddConnectorCommand.java

示例10: next

import org.jboss.forge.addon.ui.result.Results; //导入方法依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) {
    return Results.navigateTo(this.getSetupFlow(), CreateConnectorCommand.class);
}
 
开发者ID:fabric8io,项目名称:django,代码行数:5,代码来源:ConnectorProjectType.java


注:本文中的org.jboss.forge.addon.ui.result.Results.navigateTo方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。