@Override @SuppressWarnings("unchecked") public NavigationResult next(UINavigationContext context) throws Exception { return context.navigateTo(AddErraiFeatureCommand.class); }
@Override public NavigationResult next(UINavigationContext context) throws Exception { UIContext uiContext = context.getUIContext(); Map<Object, Object> attributeMap = uiContext.getAttributeMap(); ScaffoldProvider selectedProvider = provider.getValue(); ScaffoldSetupContext setupContext = createSetupContext(uiContext); attributeMap.put(ScaffoldProvider.class, selectedProvider); attributeMap.put(ScaffoldSetupContext.class, setupContext); // Get the navigation result entries from the selected scaffold provider NavigationResult setupFlow = selectedProvider.getSetupFlow(setupContext); // Add the execution logic step in the end so that the scaffold setup step is executed last after all other steps NavigationResultBuilder builder = NavigationResultBuilder.create(setupFlow); NavigationResult navigationResult = builder.add(ScaffoldExecuteSetupStep.class).build(); return navigationResult; }
@Override public NavigationResult next(UINavigationContext context) throws Exception { ScaffoldProvider selectedProvider = provider.getValue(); UIContext uiContext = context.getUIContext(); Map<Object, Object> attributeMap = uiContext.getAttributeMap(); attributeMap.put(ScaffoldProvider.class, selectedProvider); ScaffoldGenerationContext generationContext = populateGenerationContext(uiContext); attributeMap.put(ScaffoldGenerationContext.class, generationContext); NavigationResult setupFlow = null; // Verify if the selected provider is installed // If not, add the setup flow and inform the generation step to setup the scaffold. ScaffoldSetupContext setupContext = populateSetupContext(uiContext); if (!selectedProvider.isSetup(setupContext)) { setupFlow = selectedProvider.getSetupFlow(setupContext); attributeMap.put(REQUIRES_SCAFFOLD_SETUP, true); attributeMap.put(ScaffoldSetupContext.class, setupContext); } // Get the step sequence from the selected scaffold provider NavigationResult generationFlow = selectedProvider.getGenerationFlow(generationContext); // Add the execution logic step in the end so that the scaffold generation step is executed last after all other // steps NavigationResultBuilder builder = NavigationResultBuilder.create(setupFlow); NavigationResult navigationResult = builder.add(generationFlow).add(ScaffoldExecuteGenerationStep.class).build(); return navigationResult; }
@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); } } }
@Override @SuppressWarnings("unchecked") public NavigationResult next(UINavigationContext context) throws Exception { return context.navigateTo(ModuleRename.class); }
@Override public NavigationResult next(UINavigationContext context) throws Exception UIContext uiContext = context.getUIContext(); Map<Object, Object> attributeMap = uiContext.getAttributeMap(); ResourceCollection resourceCollection = new ResourceCollection();
@Override @SuppressWarnings("unchecked") public NavigationResult next(UINavigationContext context) throws Exception { return context.navigateTo(ModuleSelect.class); }
@Override @SuppressWarnings("unchecked") public NavigationResult next(UINavigationContext context) throws Exception { if (holder.getProject() != null) { return context.navigateTo(VersionSelect.class); } else { return null; } }
@Override @SuppressWarnings("unchecked") public NavigationResult next(UINavigationContext context) throws Exception { if (moduleSelect.getValue() == null) { return null; } else if (isCreateNew(moduleSelect.getValue())) { return context.navigateTo(NewModuleName.class); } else { return context.navigateTo(ModuleRename.class); } }