Search in sources :

Example 1 with IDebugger

use of org.eclipse.wst.xsl.jaxp.launching.IDebugger in project webtools.sourceediting by eclipse.

the class AddProcessorDialog method setFieldValuesToProcessor.

protected void setFieldValuesToProcessor(InstallStandin processor) {
    processor.setName(processorNameField.getText());
    processor.setProcessorTypeId(selectedProcessorType.getId());
    IDebugger[] debuggers = JAXPRuntime.getDebuggers();
    for (IDebugger element : debuggers) {
        if (element.getProcessorType().equals(selectedProcessorType))
            processor.setDebuggerId(element.getId());
    }
    fLibraryBlock.performApply(processor);
}
Also used : IDebugger(org.eclipse.wst.xsl.jaxp.launching.IDebugger)

Example 2 with IDebugger

use of org.eclipse.wst.xsl.jaxp.launching.IDebugger in project webtools.sourceediting by eclipse.

the class JAXPJavaLaunchConfigurationDelegate method getProgramArguments.

@Override
public String getProgramArguments(ILaunchConfiguration configuration) throws CoreException {
    // classname, sourceurl, output file
    IProcessorInvoker invoker = getProcessorInvokerDescriptor(configuration);
    String clazz = invoker.getInvokerClassName();
    StringBuffer sb = new StringBuffer();
    sb.append(clazz);
    // $NON-NLS-1$
    sb.append(" ");
    // $NON-NLS-1$ //$NON-NLS-2$
    sb.append("\"" + getLaunchConfigFile().getAbsolutePath() + "\"");
    // $NON-NLS-1$
    sb.append(" ");
    // $NON-NLS-1$ //$NON-NLS-2$
    sb.append("\"" + launchHelper.getSource() + "\"");
    // $NON-NLS-1$
    sb.append(" ");
    // $NON-NLS-1$ //$NON-NLS-2$
    sb.append("\"" + launchHelper.getTarget().getAbsolutePath() + "\"");
    if (ILaunchManager.DEBUG_MODE.equals(mode)) {
        IProcessorInstall install = getProcessorInstall(configuration, mode);
        if (install.getDebugger() != null) {
            IDebugger debugger = install.getDebugger();
            String className = debugger.getClassName();
            // $NON-NLS-1$ //$NON-NLS-2$
            sb.append(" -debug ").append(className).append(" ");
            sb.append(launchHelper.getRequestPort());
            // $NON-NLS-1$
            sb.append(" ").append(launchHelper.getEventPort());
            // $NON-NLS-1$
            sb.append(" ").append(launchHelper.getGeneratePort());
        }
    }
    return sb.toString();
}
Also used : IProcessorInvoker(org.eclipse.wst.xsl.jaxp.launching.IProcessorInvoker) IProcessorInstall(org.eclipse.wst.xsl.jaxp.launching.IProcessorInstall) IDebugger(org.eclipse.wst.xsl.jaxp.launching.IDebugger)

Aggregations

IDebugger (org.eclipse.wst.xsl.jaxp.launching.IDebugger)2 IProcessorInstall (org.eclipse.wst.xsl.jaxp.launching.IProcessorInstall)1 IProcessorInvoker (org.eclipse.wst.xsl.jaxp.launching.IProcessorInvoker)1