Search in sources :

Example 11 with LaunchTransform

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

the class RemoveAction method run.

@SuppressWarnings("unchecked")
@Override
public void run() {
    IStructuredSelection selection = (IStructuredSelection) getViewer().getViewer().getSelection();
    getViewer().removeEntries((LaunchTransform[]) selection.toList().toArray(new LaunchTransform[0]));
}
Also used : LaunchTransform(org.eclipse.wst.xsl.launching.config.LaunchTransform) IStructuredSelection(org.eclipse.jface.viewers.IStructuredSelection)

Aggregations

LaunchTransform (org.eclipse.wst.xsl.launching.config.LaunchTransform)11 IResource (org.eclipse.core.resources.IResource)4 CoreException (org.eclipse.core.runtime.CoreException)4 IPath (org.eclipse.core.runtime.IPath)4 LaunchPipeline (org.eclipse.wst.xsl.launching.config.LaunchPipeline)4 IFile (org.eclipse.core.resources.IFile)3 ArrayList (java.util.ArrayList)2 Path (org.eclipse.core.runtime.Path)2 ILaunchConfiguration (org.eclipse.debug.core.ILaunchConfiguration)2 BufferedWriter (java.io.BufferedWriter)1 FileNotFoundException (java.io.FileNotFoundException)1 FileWriter (java.io.FileWriter)1 IOException (java.io.IOException)1 URL (java.net.URL)1 Map (java.util.Map)1 ParserConfigurationException (javax.xml.parsers.ParserConfigurationException)1 TransformerException (javax.xml.transform.TransformerException)1 IContainer (org.eclipse.core.resources.IContainer)1 IProject (org.eclipse.core.resources.IProject)1 IStatus (org.eclipse.core.runtime.IStatus)1