本文整理汇总了Java中org.jboss.forge.addon.ui.context.UINavigationContext类的典型用法代码示例。如果您正苦于以下问题:Java UINavigationContext类的具体用法?Java UINavigationContext怎么用?Java UINavigationContext使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
UINavigationContext类属于org.jboss.forge.addon.ui.context包,在下文中一共展示了UINavigationContext类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: next
import org.jboss.forge.addon.ui.context.UINavigationContext; //导入依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception {
Map<Object, Object> attributeMap = context.getUIContext().getAttributeMap();
DeploymentType deploymentTypeValue = deploymentType.getValue();
attributeMap.put(DeploymentType.class, deploymentTypeValue);
String openShiftClusterValue = openShiftCluster.getValue();
attributeMap.put("OPENSHIFT_CLUSTER", openShiftClusterValue);
// If a starter cluster was chosen, use the openshift-online-free catalog
String skipOpenshiftOnlineCatalogIndex = EnvironmentSupport.INSTANCE.getEnvVarOrSysProp("LAUNCHER_SKIP_OOF_CATALOG_INDEX", Boolean.FALSE.toString());
if (deploymentTypeValue == DeploymentType.CD
&& !Boolean.parseBoolean(skipOpenshiftOnlineCatalogIndex)
&& openShiftClusterValue != null
&& openShiftClusterValue.startsWith("starter")) {
attributeMap.put(LauncherConfiguration.PropertyName.LAUNCHER_BOOSTER_CATALOG_REF, "openshift-online-free");
}
return null;
}
开发者ID:fabric8-launcher,项目名称:launcher-backend,代码行数:18,代码来源:ChooseDeploymentTypeStep.java
示例2: next
import org.jboss.forge.addon.ui.context.UINavigationContext; //导入依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception {
UIContext uiContext = context.getUIContext();
ProfileSettings.updateAttributeMap(getProfileSettings(uiContext), uiContext);
// default the deployment type
Map<Object, Object> attributeMap = uiContext.getAttributeMap();
if (!attributeMap.containsKey(DeploymentType.class)) {
attributeMap.put(DeploymentType.class, DeploymentType.CD);
}
NavigationResultBuilder builder = NavigationResultBuilder.create();
builder.add(ChooseBoosterStep.class);
builder.add(Fabric8ProjectInfoStep.class);
builder.add(ChoosePipelineStep.class);
builder.add(GitHubImportRepoStep.class);
builder.add(CreateBuildConfigStep.class);
return builder.build();
}
开发者ID:fabric8-launcher,项目名称:launcher-backend,代码行数:21,代码来源:NewProjectWizard.java
示例3: next
import org.jboss.forge.addon.ui.context.UINavigationContext; //导入依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception
{
Map<Object, Object> attributeMap = context.getUIContext().getAttributeMap();
DeploymentType deploymentTypeValue = deploymentType.getValue();
attributeMap.put(DeploymentType.class, deploymentTypeValue);
String openShiftClusterValue = openShiftCluster.getValue();
attributeMap.put("OPENSHIFT_CLUSTER", openShiftClusterValue);
// If a starter cluster was chosen, use the openshift-online-free catalog
if (deploymentTypeValue == DeploymentType.CD
&& !Boolean.getBoolean("LAUNCHPAD_SKIP_OOF_CATALOG_INDEX")
&& openShiftClusterValue != null
&& openShiftClusterValue.startsWith("starter"))
{
attributeMap.put(BoosterCatalogFactory.CATALOG_GIT_REF_PROPERTY_NAME, "openshift-online-free");
}
return null;
}
开发者ID:fabric8-launcher,项目名称:launchpad-addon,代码行数:19,代码来源:ChooseDeploymentTypeStep.java
示例4: next
import org.jboss.forge.addon.ui.context.UINavigationContext; //导入依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception {
NavigationResultBuilder builder = NavigationResultBuilder.create();
builder.add(ChooseDeploymentTypeStep.class)
.add(ChooseMissionStep.class)
.add(ChooseRuntimeStep.class)
.add(ProjectInfoStep.class);
return builder.build();
}
开发者ID:fabric8-launcher,项目名称:launcher-backend,代码行数:10,代码来源:NewProjectWizard.java
示例5: next
import org.jboss.forge.addon.ui.context.UINavigationContext; //导入依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception {
NavigationResultBuilder builder = NavigationResultBuilder.create();
addNextSteps(builder);
registerAttributes(context.getUIContext());
return builder.build();
}
开发者ID:fabric8-launcher,项目名称:launcher-backend,代码行数:8,代码来源:AbstractPickGitAccountStep.java
示例6: next
import org.jboss.forge.addon.ui.context.UINavigationContext; //导入依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception {
NavigationResultBuilder builder = NavigationResultBuilder.create();
GitProvider provider = gitProvider.getValue();
if (provider != null) {
context.getUIContext().getAttributeMap().put(AttributeMapKeys.GIT_PROVIDER, provider);
addNextStep(builder, provider);
}
return builder.build();
}
开发者ID:fabric8-launcher,项目名称:launcher-backend,代码行数:11,代码来源:AbstractGitProviderCommand.java
示例7: next
import org.jboss.forge.addon.ui.context.UINavigationContext; //导入依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception {
UIContext uiContext = context.getUIContext();
storeAttributes(uiContext);
return null;
}
开发者ID:fabric8-launcher,项目名称:launcher-backend,代码行数:8,代码来源:ChoosePipelineStep.java
示例8: next
import org.jboss.forge.addon.ui.context.UINavigationContext; //导入依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception {
NavigationResultBuilder builder = NavigationResultBuilder.create();
if (needFabric8Setup) {
builder.add(Fabric8SetupStep.class);
}
if (needOptionalStep) {
builder.add(DevOpsEditOptionalStep.class);
}
builder.add(DevOpsEditStep.class);
return builder.build();
}
开发者ID:fabric8io,项目名称:fabric8-forge,代码行数:13,代码来源:DevOpsEditCommand.java
示例9: next
import org.jboss.forge.addon.ui.context.UINavigationContext; //导入依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception {
Boolean value = integrationTest.getValue();
if (value != null && value) {
return NavigationResultBuilder.create().add(NewIntegrationTestClassCommand.class).build();
}
return null;
}
开发者ID:fabric8io,项目名称:fabric8-forge,代码行数:9,代码来源:Fabric8SetupStep.java
示例10: next
import org.jboss.forge.addon.ui.context.UINavigationContext; //导入依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) {
NavigationResultBuilder builder = NavigationResultBuilder.create();
builder.add(
Metadata.forCommand(SetupVertxCommand.class).name("Vert.x: Setup").description("Setup Vert.x")
.category(Categories.create("vert.x")),
Arrays.asList(SetupVertxCommand.class, AddDependencyCommand.class));
return builder.build();
}
开发者ID:cescoffier,项目名称:vertx-forge-addon,代码行数:10,代码来源:VertxProjectType.java
示例11: next
import org.jboss.forge.addon.ui.context.UINavigationContext; //导入依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception
{
NavigationResultBuilder builder = NavigationResultBuilder.create();
builder.add(ChooseDeploymentTypeStep.class)
.add(ChooseMissionStep.class)
.add(ChooseRuntimeStep.class)
.add(ProjectInfoStep.class);
return builder.build();
}
开发者ID:fabric8-launcher,项目名称:launchpad-addon,代码行数:11,代码来源:NewProjectWizard.java
示例12: next
import org.jboss.forge.addon.ui.context.UINavigationContext; //导入依赖的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
示例13: next
import org.jboss.forge.addon.ui.context.UINavigationContext; //导入依赖的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
示例14: next
import org.jboss.forge.addon.ui.context.UINavigationContext; //导入依赖的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
示例15: next
import org.jboss.forge.addon.ui.context.UINavigationContext; //导入依赖的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
示例16: next
import org.jboss.forge.addon.ui.context.UINavigationContext; //导入依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception
{
NavigationResultBuilder builder = NavigationResultBuilder.create();
builder.add(Metadata.forCommand(SetupCommand.class).name("WildFly Swarm: Setup")
.description("Setup WildFly Swarm in your web application"),
Arrays.asList(SetupCommand.class, AddFractionCommand.class));
builder.add(SetupFractionsStep.class);
return builder.build();
}
开发者ID:forge,项目名称:wildfly-swarm-addon,代码行数:11,代码来源:WildFlySwarmSetupFlow.java
示例17: next
import org.jboss.forge.addon.ui.context.UINavigationContext; //导入依赖的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
示例18: next
import org.jboss.forge.addon.ui.context.UINavigationContext; //导入依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception {
NavigationResultBuilder nrb = Results.navigationBuilder();
nrb.add(CreateMappingCommand.class);
nrb.add(ConfigureCamelStep.class);
return nrb.build();
}
开发者ID:fabric8io,项目名称:data-mapper,代码行数:9,代码来源:NewTransformationWizard.java
示例19: next
import org.jboss.forge.addon.ui.context.UINavigationContext; //导入依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception {
context.getUIContext().getAttributeMap().put(Mission.class, mission.getValue());
return null;
}
开发者ID:fabric8-launcher,项目名称:launcher-backend,代码行数:6,代码来源:ChooseMissionStep.java
示例20: next
import org.jboss.forge.addon.ui.context.UINavigationContext; //导入依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception {
context.getUIContext().getAttributeMap().put(Runtime.class, runtime.getValue());
return null;
}
开发者ID:fabric8-launcher,项目名称:launcher-backend,代码行数:6,代码来源:ChooseRuntimeStep.java
注:本文中的org.jboss.forge.addon.ui.context.UINavigationContext类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论