/** * Determines all {@link IPackageFragmentRoot}s that potentially referenced by * a given launch configuration. * * @param configuration * launch configuration to determine overall scope * * @return overall scope */ public static Set<IPackageFragmentRoot> getOverallScope( ILaunchConfiguration configuration) throws CoreException { ICoverageLauncher launcher = (ICoverageLauncher) configuration.getType() .getDelegates(Collections.singleton(CoverageTools.LAUNCH_MODE))[0] .getDelegate(); return launcher.getOverallScope(configuration); }
/** * Returns a listing of <code>IlaunchDeleagtes</code> that does not contain any delegates from disabled activities * @param type the type to get the delegates from * @param modes the set of launch modes to get delegates for * @return the filtered listing of <code>ILaunchDelegate</code>s or an empty array, never <code>null</code>. * @throws CoreException if an exception occurs * @since 3.3 */ public static ILaunchDelegate[] filterLaunchDelegates(ILaunchConfigurationType type, Set<String> modes) throws CoreException { IWorkbenchActivitySupport as = PlatformUI.getWorkbench().getActivitySupport(); ILaunchDelegate[] delegates = type.getDelegates(modes); if(as == null) { return delegates; } HashSet<ILaunchDelegate> set = new HashSet<>(); for(int i = 0; i < delegates.length; i++) { //filter by capabilities if(!WorkbenchActivityHelper.filterItem(new LaunchDelegateContribution(delegates[i]))) { set.add(delegates[i]); } } return set.toArray(new ILaunchDelegate[set.size()]); }
private ILaunchConfigurationDelegate getLaunchDelegate(String launchtype) throws CoreException { ILaunchConfigurationType type = DebugPlugin.getDefault().getLaunchManager() .getLaunchConfigurationType(launchtype); if (type == null) { throw new CoreException( EclEmmaStatus.UNKOWN_LAUNCH_TYPE_ERROR.getStatus(launchtype)); } return type.getDelegates(Collections.singleton(DELEGATELAUNCHMODE))[0] .getDelegate(); }
for (Iterator<Set<String>> iter = modes.iterator(); iter.hasNext();) { modeset = iter.next(); delegates = types[i].getDelegates(modeset); if(delegates.length > 1) { tmp = fDuplicates.get(types[i]);
ILaunchDelegate[] delegates = config.getType().getDelegates(modes); for(int j = 0; j < delegates.length; j++) { if(delegateSet.size() == 0 || delegateSet.contains(delegates[j].getId())) {
modes.addAll(config.getModes()); SelectLaunchersDialog sldd = new SelectLaunchersDialog(shell, config.getType().getDelegates(modes), config.getWorkingCopy(), mode);
Set<String> modes = flaunchConfiguration.getModes(); modes.add(fMode); ILaunchDelegate[] delegates = flaunchConfiguration.getType().getDelegates(modes); if (delegates.length ==1) { ILaunchConfigurationDelegate delegate = delegates[0].getDelegate();
adapter.getConfiguration().getType().getDelegates(new HashSet<String>(Arrays.asList("run"))); //$NON-NLS-1$
ILaunchDelegate[] delegates = adapter.getConfiguration().getType() .getDelegates(new HashSet<String>(Arrays.asList("run"))); //$NON-NLS-1$
getWorkingCopy().getType().getDelegates(getCurrentModeSet()), getWorkingCopy(), getLaunchConfigurationDialog().getMode());
ILaunchDelegate[] delegates = getType().getDelegates(modes); ILaunchConfigurationDelegate delegate = null; if (delegates.length == 1) {