public InputSectionForWorkflowNodeFilter() { ConfigurationService configurationService = ServiceRegistry.createAccessFor(this).getService(ConfigurationService.class); inputViewEnabled = configurationService .getConfigurationSegment("general") .getBoolean(ComponentConstants.CONFIG_KEY_ENABLE_INPUT_TAB, false); }
/** * Constructor for Wizard. * * @param type */ public ToolIntegrationWizard(boolean progressMonitor, String type) { setNeedsProgressMonitor(progressMonitor); configurationMap = new HashMap<>(); configurationMap.put( ToolIntegrationConstants.INTEGRATION_TYPE, ToolIntegrationConstants.COMMON_TOOL_INTEGRATION_CONTEXT_TYPE); setWindowTitle(Messages.wizardTitle); serviceRegistryAccess = ServiceRegistry.createAccessFor(this); integrationService = serviceRegistryAccess.getService(ToolIntegrationService.class); integrationContextRegistry = serviceRegistryAccess.getService(ToolIntegrationContextRegistry.class); TrayDialog.setDialogHelpAvailable(true); wizardType = type; }
@Override public Object execute(ExecutionEvent event) throws ExecutionException { File configurationFile; configurationFile = ServiceRegistry.createAccessFor(this) .getService(ConfigurationService.class) .getProfileConfigurationFile(); try { EditorsHelper.openExternalFileInEditor(configurationFile); } catch (PartInitException e) { LOGGER.error("Failed to open profile configuration file in an editor.", e); } return null; }
public WorkflowExecutionWizard( final IFile workflowFile, WorkflowDescription workflowDescription) { serviceRegistryAccess = ServiceRegistry.createPublisherAccessFor(this); workflowExecutionService = serviceRegistryAccess.getService(WorkflowExecutionService.class); Activator.getInstance().registerUndisposedWorkflowShutdownListener(); this.inputTabEnabled = serviceRegistryAccess .getService(ConfigurationService.class) .getConfigurationSegment("general") .getBoolean(ComponentConstants.CONFIG_KEY_ENABLE_INPUT_TAB, false); this.wfFile = workflowFile; this.disabledWorkflowNodes = WorkflowExecutionUtils.getDisabledWorkflowNodes(workflowDescription); this.disabledConnections = workflowDescription.removeWorkflowNodesAndRelatedConnections(disabledWorkflowNodes); this.wfDescription = workflowDescription; nodeIdConfigHelper = new NodeIdentifierConfigurationHelper(); // cache the local instance for later use this.localNodeId = serviceRegistryAccess.getService(PlatformService.class).getLocalNodeId(); wfDescription.setName( WorkflowExecutionUtils.generateDefaultNameforExecutingWorkflow( workflowFile.getName(), wfDescription)); wfDescription.setFileName(workflowFile.getName()); // set the title of the wizard dialog setWindowTitle(Messages.workflowExecutionWizardTitle); // display a progress monitor setNeedsProgressMonitor(true); ColorPalette.getInstance().loadColors(); serviceRegistryAccess.registerService(DistributedComponentKnowledgeListener.class, this); }
public WorkflowNodePart() { validationSupport.addWorkflowNodeValidityStateListener(validityStateListener); ServiceRegistryAccess serviceRegistryAccess = ServiceRegistry.createAccessFor(this); toolIntegrationRegistry = serviceRegistryAccess.getService(ToolIntegrationContextRegistry.class); }