From dd7daa469f5282eecf6a927c6df4317ce05e5d26 Mon Sep 17 00:00:00 2001 From: acolyer Date: Fri, 23 Jan 2004 19:06:25 +0000 Subject: [PATCH] eliminated a dependency on org.eclipse.core.runtime that had crept into this source - only the org.eclipse.jdt.core project should contain links to other portions of eclipse source. --- .../src/org/aspectj/ajde/internal/CompilerAdapter.java | 10 +++++----- .../ajdt/internal/core/builder/AjBuildManagerTest.java | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java b/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java index 54e709410..65f769299 100644 --- a/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java +++ b/ajde/src/org/aspectj/ajde/internal/CompilerAdapter.java @@ -24,7 +24,7 @@ import org.aspectj.ajdt.ajc.*; import org.aspectj.ajdt.internal.core.builder.*; import org.aspectj.bridge.*; import org.aspectj.util.LangUtil; -import org.eclipse.core.runtime.OperationCanceledException; +//import org.eclipse.core.runtime.OperationCanceledException; import org.eclipse.jdt.internal.compiler.impl.CompilerOptions; public class CompilerAdapter { @@ -107,10 +107,10 @@ public class CompilerAdapter { } return buildManager.batchBuild(buildConfig, messageHandler); } - } catch (OperationCanceledException ce) { - Ajde.getDefault().getErrorHandler().handleWarning( - "build cancelled by user"); - return false; +// } catch (OperationCanceledException ce) { +// Ajde.getDefault().getErrorHandler().handleWarning( +// "build cancelled by user"); +// return false; } catch (AbortException e) { final IMessage message = e.getIMessage(); if (null == message) { diff --git a/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/core/builder/AjBuildManagerTest.java b/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/core/builder/AjBuildManagerTest.java index 5cf5d8a8c..e60618f11 100644 --- a/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/core/builder/AjBuildManagerTest.java +++ b/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/core/builder/AjBuildManagerTest.java @@ -26,7 +26,7 @@ import org.aspectj.bridge.IMessage; import org.aspectj.bridge.MessageHandler; import org.aspectj.bridge.MessageWriter; import org.aspectj.util.StreamPrintWriter; -import org.eclipse.core.runtime.CoreException; +//import org.eclipse.core.runtime.CoreException; public class AjBuildManagerTest extends TestCase { @@ -59,7 +59,7 @@ public class AjBuildManagerTest extends TestCase { super(name); } - public void testSimpleStructure() throws IOException, CoreException { + public void testSimpleStructure() throws IOException /*, CoreException */ { AjBuildManager manager = new AjBuildManager(messageWriter); BuildArgParser parser = new BuildArgParser(messageWriter); -- 2.39.5