diff --git a/ant/org.eclipse.ant.tests.ui/Ant Debug Tests/org/eclipse/ant/tests/ui/debug/AbstractAntDebugTest.java b/ant/org.eclipse.ant.tests.ui/Ant Debug Tests/org/eclipse/ant/tests/ui/debug/AbstractAntDebugTest.java index 7656762a0eb..45082f7da26 100644 --- a/ant/org.eclipse.ant.tests.ui/Ant Debug Tests/org/eclipse/ant/tests/ui/debug/AbstractAntDebugTest.java +++ b/ant/org.eclipse.ant.tests.ui/Ant Debug Tests/org/eclipse/ant/tests/ui/debug/AbstractAntDebugTest.java @@ -25,10 +25,7 @@ import org.eclipse.ant.tests.ui.testplugin.DebugElementKindEventWaiter; import org.eclipse.ant.tests.ui.testplugin.DebugEventWaiter; import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IProject; -import org.eclipse.core.resources.IResource; import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPath; import org.eclipse.debug.core.DebugEvent; import org.eclipse.debug.core.DebugException; import org.eclipse.debug.core.DebugPlugin; @@ -38,28 +35,17 @@ import org.eclipse.debug.core.ILaunchManager; import org.eclipse.debug.core.model.IBreakpoint; import org.eclipse.debug.core.model.ILineBreakpoint; -import org.eclipse.debug.core.model.IProcess; import org.eclipse.debug.core.model.IThread; import org.eclipse.debug.internal.ui.DebugUIPlugin; import org.eclipse.debug.internal.ui.IInternalDebugUIConstants; import org.eclipse.debug.internal.ui.preferences.IDebugPreferenceConstants; -import org.eclipse.debug.ui.DebugUITools; import org.eclipse.debug.ui.IDebugUIConstants; -import org.eclipse.jdt.core.ICompilationUnit; -import org.eclipse.jdt.core.IJavaElement; -import org.eclipse.jdt.core.IJavaProject; -import org.eclipse.jdt.core.IPackageFragmentRoot; import org.eclipse.jface.dialogs.ErrorDialog; import org.eclipse.jface.preference.IPreferenceStore; -import org.eclipse.jface.text.BadPositionCategoryException; -import org.eclipse.jface.text.IDocument; -import org.eclipse.jface.text.Position; import org.eclipse.jface.util.SafeRunnable; import org.eclipse.ui.IPerspectiveDescriptor; import org.eclipse.ui.IWorkbench; import org.eclipse.ui.PlatformUI; -import org.eclipse.ui.console.IHyperlink; -import org.eclipse.ui.internal.console.ConsoleHyperlinkPosition; import org.junit.After; import org.junit.AfterClass; import org.junit.Before; @@ -76,11 +62,6 @@ public abstract class AbstractAntDebugTest extends AbstractAntUIBuildTest { private static boolean wasAutomatedModeEnabled; private static boolean wasIgnoreErrorEnabled; - /** - * The last relevant event set - for example, that caused a thread to suspend - */ - protected DebugEvent[] fEventSet; - @BeforeClass public static void setupClass() { // set error dialog to non-blocking to avoid hanging the UI during test @@ -96,25 +77,6 @@ public static void teardownClass() { SafeRunnable.setIgnoreErrors(wasIgnoreErrorEnabled); } - /** - * Sets the last relevant event set - * - * @param set - * event set - */ - protected void setEventSet(DebugEvent[] set) { - fEventSet = set; - } - - /** - * Returns the last relevant event set - * - * @return event set - */ - protected DebugEvent[] getEventSet() { - return fEventSet; - } - /** * Returns the breakpoint manager * @@ -124,38 +86,6 @@ protected IBreakpointManager getBreakpointManager() { return DebugPlugin.getDefault().getBreakpointManager(); } - /** - * Returns the source folder with the given name in the given project. - * - * @param name - * source folder name - * @return package fragment root - */ - protected IPackageFragmentRoot getPackageFragmentRoot(IJavaProject project, String name) { - IProject p = project.getProject(); - return project.getPackageFragmentRoot(p.getFolder(name)); - } - - @Override - protected IHyperlink getHyperlink(int offset, IDocument doc) { - if (offset >= 0 && doc != null) { - Position[] positions = null; - try { - positions = doc.getPositions(ConsoleHyperlinkPosition.HYPER_LINK_CATEGORY); - } - catch (BadPositionCategoryException ex) { - // no links have been added - return null; - } - for (Position position : positions) { - if (offset >= position.getOffset() && offset <= (position.getOffset() + position.getLength())) { - return ((ConsoleHyperlinkPosition) position).getHyperLink(); - } - } - } - return null; - } - /** * Launches the given configuration and waits for an event. Returns the source of the event. If the event is not received, the launch is * terminated and an exception is thrown. @@ -195,66 +125,12 @@ protected Object launchAndWait(ILaunchConfiguration configuration, DebugEventWai fail("Program did not suspend, and unable to terminate launch."); //$NON-NLS-1$ } } - setEventSet(waiter.getEventSet()); if (suspendee == null) { throw new TestAgainException("Retest - Program did not suspend, launch terminated"); //$NON-NLS-1$ } return suspendee; } - /** - * Launches the build file with the given name, and waits for a suspend event in that program. Returns the thread in which the suspend event - * occurred. - * - * @param buildFileName - * the build file to launch - * @return thread in which the first suspend event occurred - */ - protected AntThread launchAndSuspend(String buildFileName) throws Exception { - ILaunchConfiguration config = getLaunchConfiguration(buildFileName); - assertNotNull("Could not locate launch configuration for " + buildFileName, config); //$NON-NLS-1$ - return launchAndSuspend(config); - } - - /** - * Launches the given configuration in debug mode, and waits for a suspend event in that program. Returns the thread in which the suspend event - * occurred. - * - * @param config - * the configuration to launch - * @return thread in which the first suspend event occurred - */ - protected AntThread launchAndSuspend(ILaunchConfiguration config) throws Exception { - DebugEventWaiter waiter = new DebugElementKindEventWaiter(DebugEvent.SUSPEND, AntThread.class); - waiter.setTimeout(DEFAULT_TIMEOUT); - Object suspendee = launchAndWait(config, waiter); - return (AntThread) suspendee; - } - - /** - * Launches the build file with the given name, and waits for a breakpoint-caused suspend event in that program. Returns the thread in which the - * suspend event occurred. - * - * @param buildFileName - * the build file to launch - * @return thread in which the first suspend event occurred - */ - protected AntThread launchToBreakpoint(String buildFileName) throws Exception { - return launchToBreakpoint(buildFileName, true, false); - } - - /** - * Launches the build file with the given name in a separate VM, and waits for a breakpoint-caused suspend event in that program. Returns the - * thread in which the suspend event occurred. - * - * @param buildFileName - * the build file to launch - * @return thread in which the first suspend event occurred - */ - protected AntThread launchToBreakpointSepVM(String buildFileName) throws Exception { - return launchToBreakpoint(buildFileName, true, true); - } - /** * Launches the build file with the given name, and waits for a breakpoint-caused suspend event in that program. Returns the thread in which the * suspend event occurred. @@ -274,18 +150,6 @@ protected AntThread launchToBreakpoint(String buildFileName, boolean register, b return launchToBreakpoint(config, register); } - /** - * Launches the given configuration in debug mode, and waits for a breakpoint-caused suspend event in that program. Returns the thread in which - * the suspend event occurred. - * - * @param config - * the configuration to launch - * @return thread in which the first suspend event occurred - */ - protected AntThread launchToBreakpoint(ILaunchConfiguration config) throws CoreException { - return launchToBreakpoint(config, true); - } - /** * Launches the given configuration in debug mode, and waits for a breakpoint-caused suspend event in that program. Returns the thread in which * the suspend event occurred. @@ -305,18 +169,6 @@ protected AntThread launchToBreakpoint(ILaunchConfiguration config, boolean regi return (AntThread) suspendee; } - /** - * Launches the build file with the given name, and waits for a terminate event in that program. Returns the debug target in which the suspend - * event occurred. - * - * @param buildFileName - * the build file to execute - * @return debug target in which the terminate event occurred - */ - protected AntDebugTarget launchAndTerminate(String buildFileName) throws Exception { - return launchAndTerminate(buildFileName, false); - } - protected AntDebugTarget launchAndTerminate(String buildFileName, boolean sepVM) throws Exception { if (sepVM) { buildFileName += "SepVM"; //$NON-NLS-1$ @@ -420,7 +272,6 @@ protected AntThread resume(AntThread thread, int timeout) throws Exception { thread.resume(); Object suspendee = waiter.waitForEvent(); - setEventSet(waiter.getEventSet()); if (suspendee == null) { throw new TestAgainException("Retest - Program did not suspend"); //$NON-NLS-1$ } @@ -442,7 +293,6 @@ protected AntThread resumeToLineBreakpoint(AntThread resumeThread, ILineBreakpoi resumeThread.resume(); Object suspendee = waiter.waitForEvent(); - setEventSet(waiter.getEventSet()); if (suspendee == null) { throw new TestAgainException("Retest - Program did not suspend"); //$NON-NLS-1$ } @@ -460,23 +310,6 @@ protected AntThread resumeToLineBreakpoint(AntThread resumeThread, ILineBreakpoi return (AntThread) suspendee; } - /** - * Resumes the given thread, and waits for the debug target to terminate (i.e. finish/exit the program). - * - * @param thread - * thread to resume - */ - protected void exit(AntThread thread) throws Exception { - DebugEventWaiter waiter = new DebugElementKindEventWaiter(DebugEvent.TERMINATE, IProcess.class); - waiter.setTimeout(DEFAULT_TIMEOUT); - - thread.resume(); - - Object suspendee = waiter.waitForEvent(); - setEventSet(waiter.getEventSet()); - assertNotNull("Program did not terminate.", suspendee); //$NON-NLS-1$ - } - /** * Resumes the given thread, and waits for the associated debug target to terminate. * @@ -491,7 +324,6 @@ protected AntDebugTarget resumeAndExit(AntThread thread) throws Exception { thread.resume(); Object suspendee = waiter.waitForEvent(); - setEventSet(waiter.getEventSet()); if (suspendee == null) { throw new TestAgainException("Retest - The program did not terminate"); //$NON-NLS-1$ } @@ -500,15 +332,6 @@ protected AntDebugTarget resumeAndExit(AntThread thread) throws Exception { return target; } - protected IResource getBreakpointResource(String typeName) throws Exception { - IJavaElement element = getJavaProject().findElement(IPath.fromOSString(typeName + ".java")); //$NON-NLS-1$ - IResource resource = element.getCorrespondingResource(); - if (resource == null) { - resource = getJavaProject().getProject(); - } - return resource; - } - /** * Creates and returns a line breakpoint at the given line number in the given build file * @@ -612,7 +435,6 @@ protected AntThread stepOver(AntStackFrame frame) throws DebugException { frame.stepOver(); Object suspendee = waiter.waitForEvent(); - setEventSet(waiter.getEventSet()); if (suspendee == null) { throw new TestAgainException("Retest - Program did not suspend"); //$NON-NLS-1$ } @@ -632,7 +454,6 @@ protected AntThread stepOverToHitBreakpoint(AntStackFrame frame) throws DebugExc frame.stepOver(); Object suspendee = waiter.waitForEvent(); - setEventSet(waiter.getEventSet()); if (suspendee == null) { throw new TestAgainException("Retest - Program did not suspend"); //$NON-NLS-1$ } @@ -652,136 +473,12 @@ protected AntThread stepInto(AntStackFrame frame) throws DebugException { frame.stepInto(); Object suspendee = waiter.waitForEvent(); - setEventSet(waiter.getEventSet()); if (suspendee == null) { throw new TestAgainException("Retest - Program did not suspend"); //$NON-NLS-1$ } return (AntThread) suspendee; } - /** - * Performs a step return in the given stack frame and returns when complete. - * - * @param frame - * stack frame to step return from - */ - protected AntThread stepReturn(AntStackFrame frame) throws DebugException { - DebugEventWaiter waiter = new DebugElementKindEventDetailWaiter(DebugEvent.SUSPEND, AntThread.class, DebugEvent.STEP_END); - waiter.setTimeout(DEFAULT_TIMEOUT); - - frame.stepReturn(); - - Object suspendee = waiter.waitForEvent(); - setEventSet(waiter.getEventSet()); - if (suspendee == null) { - throw new TestAgainException("Retest - Program did not suspend"); //$NON-NLS-1$ - } - return (AntThread) suspendee; - } - - /** - * Performs a step into with filters in the given stack frame and returns when complete. - * - * @param frame - * stack frame to step in - */ - protected AntThread stepIntoWithFilters(AntStackFrame frame) throws DebugException { - DebugEventWaiter waiter = new DebugElementKindEventWaiter(DebugEvent.SUSPEND, AntThread.class); - waiter.setTimeout(DEFAULT_TIMEOUT); - - // turn filters on - try { - DebugUITools.setUseStepFilters(true); - frame.stepInto(); - } - finally { - // turn filters off - DebugUITools.setUseStepFilters(false); - } - - Object suspendee = waiter.waitForEvent(); - setEventSet(waiter.getEventSet()); - if (suspendee == null) { - throw new TestAgainException("Retest - Program did not suspend"); //$NON-NLS-1$ - } - return (AntThread) suspendee; - } - - /** - * Performs a step return with filters in the given stack frame and returns when complete. - * - * @param frame - * stack frame to step in - */ - protected AntThread stepReturnWithFilters(AntStackFrame frame) throws DebugException { - DebugEventWaiter waiter = new DebugElementKindEventWaiter(DebugEvent.SUSPEND, AntThread.class); - waiter.setTimeout(DEFAULT_TIMEOUT); - - // turn filters on - try { - DebugUITools.setUseStepFilters(true); - frame.stepReturn(); - } - finally { - // turn filters off - DebugUITools.setUseStepFilters(false); - } - - Object suspendee = waiter.waitForEvent(); - setEventSet(waiter.getEventSet()); - if (suspendee == null) { - throw new TestAgainException("Retest - Program did not suspend"); //$NON-NLS-1$ - } - return (AntThread) suspendee; - } - - /** - * Performs a step over with filters in the given stack frame and returns when complete. - * - * @param frame - * stack frame to step in - */ - protected AntThread stepOverWithFilters(AntStackFrame frame) throws DebugException { - DebugEventWaiter waiter = new DebugElementKindEventWaiter(DebugEvent.SUSPEND, AntThread.class); - waiter.setTimeout(DEFAULT_TIMEOUT); - - // turn filters on - try { - DebugUITools.setUseStepFilters(true); - frame.stepOver(); - } - finally { - // turn filters off - DebugUITools.setUseStepFilters(false); - } - - Object suspendee = waiter.waitForEvent(); - setEventSet(waiter.getEventSet()); - if (suspendee == null) { - throw new TestAgainException("Retest - Program did not suspend"); //$NON-NLS-1$ - } - return (AntThread) suspendee; - } - - /** - * Returns the compilation unit with the given name. - * - * @param project - * the project containing the CU - * @param root - * the name of the source folder in the project - * @param pkg - * the name of the package (empty string for default package) - * @param name - * the name of the CU (ex. Something.java) - * @return compilation unit - */ - protected ICompilationUnit getCompilationUnit(IJavaProject project, String root, String pkg, String name) { - IProject p = project.getProject(); - IResource r = p.getFolder(root); - return project.getPackageFragmentRoot(r).getPackageFragment(pkg).getCompilationUnit(name); - } - /** * Sets the current set of Debug / Other preferences to use during each test * @@ -799,9 +496,6 @@ protected void setPreferences() { @After public void tearDown() throws Exception { - if (fEventSet != null) { - fEventSet = null; - } // reset the options IPreferenceStore debugUIPreferences = DebugUIPlugin.getDefault().getPreferenceStore(); debugUIPreferences.setToDefault(IDebugPreferenceConstants.CONSOLE_OPEN_ON_ERR); diff --git a/ant/org.eclipse.ant.tests.ui/Ant Tests/org/eclipse/ant/tests/ui/AbstractAntUIBuildPerformanceTest.java b/ant/org.eclipse.ant.tests.ui/Ant Tests/org/eclipse/ant/tests/ui/AbstractAntUIBuildPerformanceTest.java index c6c0e501478..203dbc5d7b2 100644 --- a/ant/org.eclipse.ant.tests.ui/Ant Tests/org/eclipse/ant/tests/ui/AbstractAntUIBuildPerformanceTest.java +++ b/ant/org.eclipse.ant.tests.ui/Ant Tests/org/eclipse/ant/tests/ui/AbstractAntUIBuildPerformanceTest.java @@ -15,7 +15,6 @@ import org.eclipse.core.runtime.CoreException; import org.eclipse.debug.core.ILaunchConfiguration; -import org.eclipse.test.performance.Dimension; import org.eclipse.test.performance.Performance; import org.eclipse.test.performance.PerformanceMeter; import org.junit.After; @@ -44,48 +43,6 @@ public void tearDown() throws Exception { fPerformanceMeter.dispose(); } - /** - * Mark the scenario of this test case to be included into the global performance summary. The summary shows the given dimension of the scenario - * and labels the scenario with the short name. - * - * @param shortName - * a short (shorter than 40 characters) descritive name of the scenario - * @param dimension - * the dimension to show in the summary - */ - public void tagAsGlobalSummary(String shortName, Dimension dimension) { - Performance performance = Performance.getDefault(); - performance.tagAsGlobalSummary(fPerformanceMeter, shortName, new Dimension[] { dimension }); - } - - /** - * Mark the scenario of this test case to be included into the performance summary. The summary shows the given dimension of the scenario and - * labels the scenario with the short name. - * - * @param shortName - * a short (shorter than 40 characters) descriptive name of the scenario - * @param dimension - * the dimension to show in the summary - */ - public void tagAsSummary(String shortName, Dimension dimension) { - Performance performance = Performance.getDefault(); - performance.tagAsSummary(fPerformanceMeter, shortName, new Dimension[] { dimension }); - } - - /** - * Mark the scenario represented by the given PerformanceMeter to be included into the global performance summary. The summary shows the given - * dimensions of the scenario and labels the scenario with the short name. - * - * @param shortName - * a short (shorter than 40 characters) descriptive name of the scenario - * @param dimensions - * an array of dimensions to show in the summary - */ - public void tagAsGlobalSummary(String shortName, Dimension[] dimensions) { - Performance performance = Performance.getDefault(); - performance.tagAsGlobalSummary(fPerformanceMeter, shortName, dimensions); - } - /** * Called from within a test case immediately before the code to measure is run. It starts capturing of performance data. Must be followed by a * call to {@link #stopMeasuring()} before subsequent calls to this method or {@link #commitMeasurements()}. @@ -112,23 +69,6 @@ protected void assertPerformance() { Performance.getDefault().assertPerformance(fPerformanceMeter); } - /** - * Asserts that the measurement specified by the given dimension is within a certain range with respect to some reference value. If the specified - * dimension isn't available, the call has no effect. - * - * @param dim - * the Dimension to check - * @param lowerPercentage - * a negative number indicating the percentage the measured value is allowed to be smaller than some reference value - * @param upperPercentage - * a positive number indicating the percentage the measured value is allowed to be greater than some reference value - * @throws RuntimeException - * if the properties do not hold - */ - protected void assertPerformanceInRelativeBand(Dimension dim, int lowerPercentage, int upperPercentage) { - Performance.getDefault().assertPerformanceInRelativeBand(fPerformanceMeter, dim, lowerPercentage, upperPercentage); - } - /** * Launches the Ant build for this config. Waits for all of the lines to be appended to the console. * diff --git a/ant/org.eclipse.ant.tests.ui/External Tools/org/eclipse/ant/tests/ui/externaltools/AbstractExternalToolTest.java b/ant/org.eclipse.ant.tests.ui/External Tools/org/eclipse/ant/tests/ui/externaltools/AbstractExternalToolTest.java index 3f83306d071..3ebf54e5a2f 100644 --- a/ant/org.eclipse.ant.tests.ui/External Tools/org/eclipse/ant/tests/ui/externaltools/AbstractExternalToolTest.java +++ b/ant/org.eclipse.ant.tests.ui/External Tools/org/eclipse/ant/tests/ui/externaltools/AbstractExternalToolTest.java @@ -83,15 +83,6 @@ protected ILaunchConfigurationWorkingCopy createExternalToolBuilderWorkingCopy(I return null; } - /** - * Creates a new empty {@link ICommand} - * - * @return the new build {@link ICommand} - */ - protected ICommand createEmptyBuildCommand() throws Exception { - return getProject().getDescription().newCommand(); - } - /** * Creates a new builder {@link ICommand} * diff --git a/ant/org.eclipse.ant.tests.ui/META-INF/MANIFEST.MF b/ant/org.eclipse.ant.tests.ui/META-INF/MANIFEST.MF index 3b147d54a5a..96f4d2511ea 100644 --- a/ant/org.eclipse.ant.tests.ui/META-INF/MANIFEST.MF +++ b/ant/org.eclipse.ant.tests.ui/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: %pluginName Bundle-SymbolicName: org.eclipse.ant.tests.ui; singleton:=true -Bundle-Version: 3.12.300.qualifier +Bundle-Version: 3.12.400.qualifier Bundle-ClassPath: anttestsui.jar Bundle-Vendor: %providerName Bundle-Localization: plugin diff --git a/ant/org.eclipse.ant.tests.ui/test plugin/org/eclipse/ant/tests/ui/testplugin/AbstractAntUITest.java b/ant/org.eclipse.ant.tests.ui/test plugin/org/eclipse/ant/tests/ui/testplugin/AbstractAntUITest.java index e80805c5d99..9a1439152ed 100644 --- a/ant/org.eclipse.ant.tests.ui/test plugin/org/eclipse/ant/tests/ui/testplugin/AbstractAntUITest.java +++ b/ant/org.eclipse.ant.tests.ui/test plugin/org/eclipse/ant/tests/ui/testplugin/AbstractAntUITest.java @@ -20,16 +20,11 @@ import java.io.BufferedReader; import java.io.File; import java.io.IOException; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.UnsupportedEncodingException; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.net.URL; import java.nio.file.Files; -import javax.xml.parsers.SAXParser; - import org.eclipse.ant.internal.ui.AntUIPlugin; import org.eclipse.ant.internal.ui.IAntUIPreferenceConstants; import org.eclipse.ant.internal.ui.model.AntModel; @@ -79,9 +74,6 @@ import org.junit.Rule; import org.osgi.framework.Bundle; import org.osgi.framework.FrameworkUtil; -import org.xml.sax.InputSource; -import org.xml.sax.SAXException; -import org.xml.sax.helpers.DefaultHandler; /** * Abstract Ant UI test class @@ -231,48 +223,6 @@ protected IDocument getDocument(String fileName) { } } - /** - * Returns the contents of the given {@link InputStream} as a {@link String} - * - * @return the {@link InputStream} as a {@link String} - */ - protected String getStreamContentAsString(InputStream inputStream) { - InputStreamReader reader; - try { - reader = new InputStreamReader(inputStream, ResourcesPlugin.getEncoding()); - } - catch (UnsupportedEncodingException e) { - AntUIPlugin.log(e); - return ""; //$NON-NLS-1$ - } - BufferedReader tempBufferedReader = new BufferedReader(reader); - - return getReaderContentAsString(tempBufferedReader); - } - - /** - * Returns the contents of the given {@link BufferedReader} as a {@link String} - * - * @return the contents of the given {@link BufferedReader} as a {@link String} - */ - protected String getReaderContentAsStringNew(BufferedReader bufferedReader) { - StringBuilder result = new StringBuilder(); - try { - char[] readBuffer = new char[2048]; - int n = bufferedReader.read(readBuffer); - while (n > 0) { - result.append(readBuffer, 0, n); - n = bufferedReader.read(readBuffer); - } - } - catch (IOException e) { - AntUIPlugin.log(e); - return null; - } - - return result.toString(); - } - /** * Returns the contents of the given {@link BufferedReader} as a {@link String} * @@ -353,20 +303,6 @@ protected void launch(String buildFileName, String arguments) throws CoreExcepti launchAndTerminate(copy, 20000); } - /** - * Launches the Ant build in debug output mode with the build file name (no extension). - * - * @param buildFileName - * build file to launch - */ - protected void launchWithDebug(String buildFileName) throws CoreException { - ILaunchConfiguration config = getLaunchConfiguration(buildFileName); - assertNotNull("Could not locate launch configuration for " + buildFileName, config); //$NON-NLS-1$ - ILaunchConfigurationWorkingCopy copy = config.getWorkingCopy(); - copy.setAttribute(IExternalToolConstants.ATTR_TOOL_ARGUMENTS, "-debug"); //$NON-NLS-1$ - launchAndTerminate(copy, 10000); - } - /** * Returns the launch configuration for the given build file * @@ -380,18 +316,6 @@ protected ILaunchConfiguration getLaunchConfiguration(String buildFileName) { return config; } - /** - * Parses the given input stream with the given parser using the given handler - */ - protected void parse(InputStream stream, SAXParser parser, DefaultHandler handler, File editedFile) throws SAXException, IOException { - InputSource inputSource = new InputSource(stream); - if (editedFile != null) { - // needed for resolving relative external entities - inputSource.setSystemId(editedFile.getAbsolutePath()); - } - parser.parse(inputSource, handler); - } - /** * Returns the launch manager *