Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-patch] Use the 'asyncExec' method of the 'DebugPlugin' class (UI)

Undo the changes bcause the 'asyncExec' method has added since 2.1.
----- Original Message -----
Sent: Thursday, February 13, 2003 10:50 AM
Subject: [cdt-patch] Use the 'asyncExec' method of the 'DebugPlugin' class (UI)

Index: ChangeLog
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.ui/ChangeLog,v
retrieving revision 1.98
diff -u -r1.98 ChangeLog
--- ChangeLog 11 Feb 2003 19:17:26 -0000 1.98
+++ ChangeLog 13 Feb 2003 15:51:56 -0000
@@ -1,3 +1,7 @@
+2003-02-13 Mikhail Khodjaiants
+ Use the 'asyncExec' method of the 'DebugPlugin' class.
+ * CDebugUIPlugin.java
+
 2003-02-11 Mikhail Khodjaiants
  The 'Load Symbole For All' action is added to the 'Shared Libraries' view
  * CDebugImages.java
Index: src/org/eclipse/cdt/debug/ui/CDebugUIPlugin.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/CDebugUIPlugin.java,v
retrieving revision 1.18
diff -u -r1.18 CDebugUIPlugin.java
--- src/org/eclipse/cdt/debug/ui/CDebugUIPlugin.java 7 Feb 2003 23:38:25 -0000 1.18
+++ src/org/eclipse/cdt/debug/ui/CDebugUIPlugin.java 13 Feb 2003 15:51:56 -0000
@@ -5,8 +5,6 @@
 import java.util.MissingResourceException;
 import java.util.ResourceBundle;
 
-import org.eclipse.cdt.debug.core.CDebugCorePlugin;
-import org.eclipse.cdt.debug.core.IAsyncExecutor;
 import org.eclipse.cdt.debug.core.model.ISwitchToFrame;
 import org.eclipse.cdt.debug.core.model.ISwitchToThread;
 import org.eclipse.cdt.debug.core.sourcelookup.IDisassemblyStorage;
@@ -60,8 +58,7 @@
  */
 public class CDebugUIPlugin extends AbstractUIPlugin
        implements ISelectionListener,
-            IDebugEventSetListener,
-            IAsyncExecutor
+            IDebugEventSetListener
 {
  //The shared instance.
  private static CDebugUIPlugin plugin;
@@ -320,7 +317,6 @@
   {
    fImageDescriptorRegistry.dispose();
   }
-  CDebugCorePlugin.getDefault().setAsyncExecutor( null );
   super.shutdown();
  }
  
@@ -335,7 +331,6 @@
   {
    ww.getSelectionService().addSelectionListener( IDebugUIConstants.ID_DEBUG_VIEW, this );
   }
-  CDebugCorePlugin.getDefault().setAsyncExecutor( this );
   DebugPlugin.getDefault().addDebugEventListener( this );
  }
 
@@ -484,17 +479,5 @@
   if ( fDisassemblyDocumentProvider == null )
    fDisassemblyDocumentProvider = new DisassemblyDocumentProvider();
   return fDisassemblyDocumentProvider;
- }
-
- /* (non-Javadoc)
-  * @see org.eclipse.cdt.debug.core.IAsyncExecutor#asyncExec(Runnable)
-  */
- public void asyncExec( Runnable runnable )
- {
-  Display display = getStandardDisplay();
-  if ( display != null )
-  {
-   display.asyncExec( runnable );
-  }
  }
 }

Back to the top