Search in sources :

Example 6 with LaunchPipeline

use of org.eclipse.wst.xsl.launching.config.LaunchPipeline in project webtools.sourceediting by eclipse.

the class XSLTSourcePathComputerDelegate method hydratePipeline.

private static LaunchPipeline hydratePipeline(ILaunchConfiguration configuration) throws CoreException {
    LaunchPipeline pipeline = null;
    String s = configuration.getAttribute(XSLLaunchConfigurationConstants.ATTR_PIPELINE, (String) null);
    if (s != null && s.length() > 0) {
        ByteArrayInputStream inputStream = new ByteArrayInputStream(s.getBytes());
        pipeline = LaunchPipeline.fromXML(inputStream);
    }
    return pipeline;
}
Also used : ByteArrayInputStream(java.io.ByteArrayInputStream) LaunchPipeline(org.eclipse.wst.xsl.launching.config.LaunchPipeline)

Aggregations

LaunchPipeline (org.eclipse.wst.xsl.launching.config.LaunchPipeline)6 LaunchTransform (org.eclipse.wst.xsl.launching.config.LaunchTransform)4 IResource (org.eclipse.core.resources.IResource)3 ByteArrayInputStream (java.io.ByteArrayInputStream)2 IFile (org.eclipse.core.resources.IFile)2 CoreException (org.eclipse.core.runtime.CoreException)2 ArrayList (java.util.ArrayList)1 IContainer (org.eclipse.core.resources.IContainer)1 IProject (org.eclipse.core.resources.IProject)1 IPath (org.eclipse.core.runtime.IPath)1 ILaunchConfiguration (org.eclipse.debug.core.ILaunchConfiguration)1 ILaunchConfigurationType (org.eclipse.debug.core.ILaunchConfigurationType)1 ILaunchConfigurationWorkingCopy (org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)1 ISourceContainer (org.eclipse.debug.core.sourcelookup.ISourceContainer)1 DirectorySourceContainer (org.eclipse.debug.core.sourcelookup.containers.DirectorySourceContainer)1 FolderSourceContainer (org.eclipse.debug.core.sourcelookup.containers.FolderSourceContainer)1 ProjectSourceContainer (org.eclipse.debug.core.sourcelookup.containers.ProjectSourceContainer)1 StatusDialog (org.eclipse.jface.dialogs.StatusDialog)1 GridData (org.eclipse.swt.layout.GridData)1 GridLayout (org.eclipse.swt.layout.GridLayout)1