/** * {@inheritDoc} * * @see org.eclipse.sirius.tools.api.ui.IExternalJavaAction#execute(java.util.Collection, java.util.Map) */ public void execute(Collection<? extends EObject> selections, Map<String, Object> parameters) { final ILaunchConfigurationType launchConfigType = DebugPlugin.getDefault().getLaunchManager() .getLaunchConfigurationType(getLaunchConfigurationTypeID()); Set<String> modes = new HashSet<String>(); modes.add("debug"); try { ILaunchDelegate[] delegates = launchConfigType.getDelegates(modes); if (delegates.length != 0 && delegates[0].getDelegate() instanceof AbstractDSLLaunchConfigurationDelegateUI) { AbstractDSLLaunchConfigurationDelegateUI delegate = (AbstractDSLLaunchConfigurationDelegateUI)delegates[0] .getDelegate(); delegate.launch(delegate.getLaunchableResource(PlatformUI.getWorkbench() .getActiveWorkbenchWindow().getActivePage().getActiveEditor()), getFirstInstruction(selections), "debug"); } } catch (CoreException e) { DebugSiriusIdeUiPlugin.getPlugin().getLog().log( new Status(IStatus.ERROR, DebugSiriusIdeUiPlugin.ID, e.getLocalizedMessage(), e)); } }
public ILaunchDelegate getPreferredDelegate( @SuppressWarnings("rawtypes") Set modes) throws CoreException { return null; }
public ILaunchDelegate getPreferredDelegate( @SuppressWarnings("rawtypes") Set modes) throws CoreException { return delegate.getPreferredDelegate(modes); }
public ILaunchDelegate getPreferredDelegate(Set<String> modes) throws CoreException { return null; }
@Override public ILaunchDelegate getPreferredDelegate(final Set modes) throws CoreException { return delegate.getPreferredDelegate(modes); }
public ILaunchDelegate getPreferredDelegate(Set modes) throws CoreException { // not used in test return null; }
public ILaunchDelegate getPreferredDelegate(Set modes) throws CoreException { return null; }
@SuppressWarnings("rawtypes") @Override public ILaunchDelegate getPreferredDelegate(Set modes) throws CoreException { throw new UnsupportedOperationException(); }
@Override public ILaunchDelegate getPreferredDelegate(Set modes) throws CoreException { throw new RuntimeException(); }