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 WorkflowNodePart() { validationSupport.addWorkflowNodeValidityStateListener(validityStateListener); ServiceRegistryAccess serviceRegistryAccess = ServiceRegistry.createAccessFor(this); toolIntegrationRegistry = serviceRegistryAccess.getService(ToolIntegrationContextRegistry.class); }