@Override public Result execute(UIExecutionContext uiExecutionContext) throws Exception { return Results.success(); } }
@Override public Result execute(UIExecutionContext context) throws Exception { // No-op. Scaffold setup is done in a separate step. return Results.success(); }
@Override public Result execute(UIExecutionContext context) throws Exception { return Results.success(); } }
@Override public Result execute(UIExecutionContext context) throws Exception { return Results.success(); } }
@Override public Result execute(final UIExecutionContext context) { if(DEBUG) getOut(context).out().println( "EvalP.execute" ); return Results.success(); }
@Override public Result execute(final UIExecutionContext context) { if(DEBUG) getOut( context ).out().println( "Eval.execute"); return Results.success(); }
@Override public Result execute(UIExecutionContext context) throws Exception { StringBuilder sb = new StringBuilder(); GitIgnoreResource gitIgnore = gitIgnoreResource(context.getUIContext()); for (String pattern : gitIgnore.getPatterns()) { sb.append(pattern).append("\n"); } return Results.success(sb.toString()); }
/** * Prints the given table and returns success */ protected Result tableResults(TablePrinter table) { table.print(getOut()); return Results.success(); }
@Override public Result execute(UIExecutionContext context) throws Exception { context.getPrompt().prompt("Press <ENTER> to continue..."); return Results.success(); }
/** * Prints the given table and returns success */ protected Result tableResults(TablePrinter table) { table.print(getOut()); return Results.success(); }
@Override public Result execute(UIExecutionContext context) throws Exception { Map<Object, Object> attributeMap = context.getUIContext().getAttributeMap(); LOG.info("devops tab has attributes:: " + attributeMap); try { return Results.success(""); } catch (IllegalArgumentException e) { return Results.fail(e.getMessage()); } }
@Override public Result execute(UIExecutionContext context) throws Exception { AddonProjectConfigurator configurator = SimpleContainer .getServices(getClass().getClassLoader(), AddonProjectConfigurator.class).get(); Project project = getSelectedProject(context); AddonId addonId = AddonId.fromCoordinates(addon.getValue()); configurator.installSelectedAddons(project, Collections.singleton(addonId), false); return Results.success("Addon " + addonId + " added as a dependency to project " + project.getFacet(MetadataFacet.class).getProjectName()); }
@Override public Result execute(UIExecutionContext shellContext) throws Exception { ResourceTransaction transaction = resourceFactory.getTransaction(); if (!transaction.isStarted()) { return Results.fail("Resource Transaction is not started"); } transaction.commit(); return Results.success("Resource Transaction was committed"); }
@Override public Result execute(UIExecutionContext shellContext) throws Exception { ResourceTransaction transaction = resourceFactory.getTransaction(); if (!transaction.isStarted()) { return Results.fail("Resource Transaction is not started"); } transaction.rollback(); return Results.success("Resource Transaction was rolled back"); }
@Override public Result execute(UIExecutionContext context) throws Exception { GitIgnoreResource gitIgnore = gitIgnoreResource(context.getUIContext()); gitIgnore.removePattern(pattern.getValue()); return Results.success("Pattern removed from the .gitignore in the current directory"); }
@Override public Result execute(UIExecutionContext context) throws Exception { final ProjectConfig projectConfig = holder.getProject().getFacet(ProjectConfig.class); projectConfig.setProjectProperty(ProjectProperty.ERRAI_VERSION, versionSelect.getValue()); return Results.success(); }
@Override public Result execute(UIExecutionContext context) throws Exception { UIContext uiContext = context.getUIContext(); Shell shell = (Shell) uiContext.getProvider(); shell.getConsole().stop(); forge.stop(); uiContext.getAttributeMap().put("org.jboss.forge.exit", Boolean.TRUE); return Results.success(); } }
@Override public Result execute(UIExecutionContext executionContext) throws Exception { UIProvider provider = executionContext.getUIContext().getProvider(); UIOutput output = provider.getOutput(); PrintStream out = output.out(); for (VertxDependency dep : VertxMavenFacet.getAllDependencies()) { String msg = String.format("%s: %s (%s)", dep.getArtifactId(), dep.getName(), dep.getDescription()); out.println(msg); } return Results.success(); }
@Override public Result execute(UIExecutionContext context) throws Exception { getConfiguration().setProperty(named.getValue(), url.getValue().getFullyQualifiedName()); getArchetypeCatalogFactoryRegistry().addArchetypeCatalogFactory(named.getValue(), url.getValue().getUnderlyingResourceObject()); return Results.success(); }
@Override public Result execute(UIExecutionContext context) throws Exception { if (!isCreateNew(moduleSelect.getValue())) { final ProjectConfig projectConfig = holder.getProject().getFacet(ProjectConfig.class); projectConfig.setProjectProperty(ProjectProperty.MODULE_LOGICAL, moduleSelect.getValue()); projectConfig.setProjectProperty(ProjectProperty.MODULE_FILE, moduleLogicalNameToFile(moduleSelect.getValue(), holder.getProject())); } return Results.success(); }