Java 类org.eclipse.debug.core.ILaunchDelegate 实例源码

项目:gemoc-studio-modeldebugging    文件:AbstractDebugAsAction.java   
/**
 * {@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));
    }
}
项目:ModelDebugging    文件:AbstractDebugAsAction.java   
/**
 * {@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));
    }
}
项目:eclemma    文件:SessionManagerTest.java   
public ILaunchDelegate getPreferredDelegate(
    @SuppressWarnings("rawtypes") Set modes) throws CoreException {
  return null;
}
项目:eclemma    文件:AdjustedLaunchConfiguration.java   
public ILaunchDelegate getPreferredDelegate(
    @SuppressWarnings("rawtypes") Set modes) throws CoreException {
  return delegate.getPreferredDelegate(modes);
}
项目:tlaplus    文件:ModelHelperTest.java   
public ILaunchDelegate getPreferredDelegate(Set<String> modes) throws CoreException {
    return null;
}
项目:m2e.sourcelookup    文件:JavaProjectLaunchConfiguration.java   
@Override
public ILaunchDelegate getPreferredDelegate(final Set modes) throws CoreException {
  return delegate.getPreferredDelegate(modes);
}
项目:gwt-eclipse-plugin    文件:MockLaunchConfiguration.java   
public ILaunchDelegate getPreferredDelegate(Set modes) throws CoreException {
  // not used in test
  return null;
}
项目:gwt-eclipse-plugin    文件:MockILaunchConfiguration.java   
public ILaunchDelegate getPreferredDelegate(Set modes) throws CoreException {
  return null;
}
项目:pep-tools    文件:DummyProductLaunchConfiguration.java   
@SuppressWarnings("rawtypes")
@Override
public ILaunchDelegate getPreferredDelegate(Set modes) throws CoreException {
    throw new UnsupportedOperationException();
}
项目:Pydev    文件:MyEnvWorkingCopy.java   
@Override
public ILaunchDelegate getPreferredDelegate(Set modes) throws CoreException {
    throw new RuntimeException();

}