本文整理汇总了Java中org.jboss.forge.addon.ui.result.NavigationResult类的典型用法代码示例。如果您正苦于以下问题:Java NavigationResult类的具体用法?Java NavigationResult怎么用?Java NavigationResult使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
NavigationResult类属于org.jboss.forge.addon.ui.result包,在下文中一共展示了NavigationResult类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: next
import org.jboss.forge.addon.ui.result.NavigationResult; //导入依赖的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;
}
示例2: next
import org.jboss.forge.addon.ui.result.NavigationResult; //导入依赖的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();
}
示例3: next
import org.jboss.forge.addon.ui.result.NavigationResult; //导入依赖的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);
}
}
}
示例4: next
import org.jboss.forge.addon.ui.result.NavigationResult; //导入依赖的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;
}
示例5: next
import org.jboss.forge.addon.ui.result.NavigationResult; //导入依赖的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();
}
示例6: next
import org.jboss.forge.addon.ui.result.NavigationResult; //导入依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception {
NavigationResultBuilder builder = NavigationResultBuilder.create();
addNextSteps(builder);
registerAttributes(context.getUIContext());
return builder.build();
}
示例7: next
import org.jboss.forge.addon.ui.result.NavigationResult; //导入依赖的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();
}
示例8: next
import org.jboss.forge.addon.ui.result.NavigationResult; //导入依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception {
UIContext uiContext = context.getUIContext();
storeAttributes(uiContext);
return null;
}
示例9: next
import org.jboss.forge.addon.ui.result.NavigationResult; //导入依赖的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();
}
示例10: next
import org.jboss.forge.addon.ui.result.NavigationResult; //导入依赖的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;
}
示例11: next
import org.jboss.forge.addon.ui.result.NavigationResult; //导入依赖的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();
}
示例12: next
import org.jboss.forge.addon.ui.result.NavigationResult; //导入依赖的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();
}
示例13: next
import org.jboss.forge.addon.ui.result.NavigationResult; //导入依赖的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);
}
示例14: next
import org.jboss.forge.addon.ui.result.NavigationResult; //导入依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception {
if (custom.getValue() == true) {
return Results.navigateTo(AddCustomComponentStep.class);
} else {
return Results.navigateTo(ConnectorSelectComponentStep.class);
}
}
示例15: next
import org.jboss.forge.addon.ui.result.NavigationResult; //导入依赖的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);
}