Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDennis Wagelaar2017-12-18 05:55:37 -0500
committerDennis Wagelaar2017-12-18 05:55:37 -0500
commit996eaddf815deb6d05b1752bfa8ab77f2c41ae48 (patch)
tree5b273ce95199892625664099d8d982bbcf63ce7e
parented2a65d4fdd0a51feb5be91b0d9907336d93e703 (diff)
downloadorg.eclipse.atl-996eaddf815deb6d05b1752bfa8ab77f2c41ae48.tar.gz
org.eclipse.atl-996eaddf815deb6d05b1752bfa8ab77f2c41ae48.tar.xz
org.eclipse.atl-996eaddf815deb6d05b1752bfa8ab77f2c41ae48.zip
Revert "443680: ATL does not switch perspective automatically when a breakpoint is hit "
-rw-r--r--plugins/org.eclipse.m2m.atl.adt.ui/src/org/eclipse/m2m/atl/adt/ui/AtlUIPlugin.java36
1 files changed, 0 insertions, 36 deletions
diff --git a/plugins/org.eclipse.m2m.atl.adt.ui/src/org/eclipse/m2m/atl/adt/ui/AtlUIPlugin.java b/plugins/org.eclipse.m2m.atl.adt.ui/src/org/eclipse/m2m/atl/adt/ui/AtlUIPlugin.java
index 82326d51..dc77682e 100644
--- a/plugins/org.eclipse.m2m.atl.adt.ui/src/org/eclipse/m2m/atl/adt/ui/AtlUIPlugin.java
+++ b/plugins/org.eclipse.m2m.atl.adt.ui/src/org/eclipse/m2m/atl/adt/ui/AtlUIPlugin.java
@@ -16,17 +16,10 @@ import java.util.HashMap;
import java.util.Map;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
-import java.util.logging.Level;
import org.eclipse.core.runtime.Platform;
-import org.eclipse.debug.core.DebugEvent;
-import org.eclipse.debug.core.DebugPlugin;
-import org.eclipse.debug.core.IDebugEventSetListener;
import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.m2m.atl.common.ATLLogger;
import org.eclipse.swt.graphics.Image;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.WorkbenchException;
import org.eclipse.ui.plugin.AbstractUIPlugin;
/**
@@ -60,35 +53,6 @@ public class AtlUIPlugin extends AbstractUIPlugin {
} catch (MissingResourceException x) {
resourceBundle = null;
}
- addDebugEventListener();
- }
-
- /**
- * Adds a debug event listener
- */
- private void addDebugEventListener() {
- DebugPlugin.getDefault().addDebugEventListener(new IDebugEventSetListener() {
- public void handleDebugEvents(final DebugEvent[] debugEvents) {
- for (DebugEvent debugEvent : debugEvents) {
- if (debugEvent.getKind() == DebugEvent.SUSPEND) {
- switchToDebugPerspective();
- break;
- }
- }
- }
- });
- }
-
- /**
- * Switches to the debugging perspective.
- */
- private void switchToDebugPerspective() {
- try {
- PlatformUI.getWorkbench().showPerspective("org.eclipse.debug.ui.DebugPerspective",
- PlatformUI.getWorkbench().getActiveWorkbenchWindow());
- } catch (WorkbenchException e) {
- ATLLogger.log(Level.SEVERE, e.getMessage(), e);
- }
}
/**

Back to the top