Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Fedorenko2012-12-05 09:28:23 -0500
committerIgor Fedorenko2012-12-05 09:30:25 -0500
commitf62aae5a9f3f90676e40f1b7403ed0ec075828cb (patch)
tree35cad3ab98fac33cb0bb571d669ed7ab0a903609
parent3636c8a331b4b91fa16a9b9ca656f9cccf8a8ee3 (diff)
downloadm2e-core-f62aae5a9f3f90676e40f1b7403ed0ec075828cb.tar.gz
m2e-core-f62aae5a9f3f90676e40f1b7403ed0ec075828cb.tar.xz
m2e-core-f62aae5a9f3f90676e40f1b7403ed0ec075828cb.zip
368212 reverted 7580c5cf to expose ISourceLookupDirector
Multiple code paths in jdt.debug only work with ISourceLookupDirector implementation, so hiding it is not really an option. Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
-rw-r--r--org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenLaunchDelegate.java10
1 files changed, 0 insertions, 10 deletions
diff --git a/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenLaunchDelegate.java b/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenLaunchDelegate.java
index 32b81d83..7596906b 100644
--- a/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenLaunchDelegate.java
+++ b/org.eclipse.m2e.launching/src/org/eclipse/m2e/internal/launch/MavenLaunchDelegate.java
@@ -31,8 +31,6 @@ import org.eclipse.debug.core.IDebugEventSetListener;
import org.eclipse.debug.core.ILaunch;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.model.IProcess;
-import org.eclipse.debug.core.model.ISourceLocator;
-import org.eclipse.debug.core.model.IStackFrame;
import org.eclipse.debug.core.sourcelookup.ISourceLookupParticipant;
import org.eclipse.debug.ui.RefreshTab;
import org.eclipse.jdt.launching.IVMRunner;
@@ -118,14 +116,6 @@ public class MavenLaunchDelegate extends JavaLaunchDelegate implements MavenLaun
}
}
sourceLocator.addParticipants(new ISourceLookupParticipant[] {new JavaSourceLookupParticipant()});
- // As a workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=368212
- // wrap sourceLocator in ISourceLocator. This will hide ISourceLookupDirector
- // implementation from JDT and disable any inappropriate/harmful hacks the have
- launch.setSourceLocator(new ISourceLocator() {
- public Object getSourceElement(IStackFrame stackFrame) {
- return sourceLocator.getSourceElement(stackFrame);
- }
- });
} else {
log.warn(NLS.bind(Messages.MavenLaynchDelegate_unsupported_source_locator, launch.getSourceLocator().getClass()
.getCanonicalName()));

Back to the top