mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Fix for bug 70453. Linux: error exiting Eclipse on Linux RedHat or SuSe Enterprise Server 9.
Applied modified patch from Sean Evoy.
This commit is contained in:
parent
05e48d32ff
commit
424f976c4f
2 changed files with 15 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-08-12 Mikhail Khodjaiants
|
||||
Fix for bug 70453. Linux: error exiting Eclipse on Linux RedHat or SuSe Enterprise Server 9.
|
||||
Applied modified patch from Sean Evoy.
|
||||
* CDebugUIPlugin.java
|
||||
|
||||
2004-08-10 Tanya Wolff
|
||||
Fix for 70943 - externalized strings
|
||||
* plugin.xml
|
||||
|
|
|
@ -39,6 +39,7 @@ import org.eclipse.jface.dialogs.ErrorDialog;
|
|||
import org.eclipse.jface.preference.PreferenceConverter;
|
||||
import org.eclipse.jface.viewers.ISelection;
|
||||
import org.eclipse.jface.viewers.IStructuredSelection;
|
||||
import org.eclipse.swt.SWTException;
|
||||
import org.eclipse.swt.graphics.Color;
|
||||
import org.eclipse.swt.widgets.Display;
|
||||
import org.eclipse.swt.widgets.Shell;
|
||||
|
@ -317,7 +318,11 @@ public class CDebugUIPlugin extends AbstractUIPlugin implements ISelectionListen
|
|||
*/
|
||||
public void stop( BundleContext context ) throws Exception {
|
||||
CDebugCorePlugin.getDefault().removeCBreakpointListener( CBreakpointUpdater.getInstance() );
|
||||
listenSelection( false, this );
|
||||
try {
|
||||
listenSelection( false, this );
|
||||
}
|
||||
catch (SWTException e) {
|
||||
}
|
||||
if ( fImageDescriptorRegistry != null ) {
|
||||
fImageDescriptorRegistry.dispose();
|
||||
}
|
||||
|
@ -325,6 +330,9 @@ public class CDebugUIPlugin extends AbstractUIPlugin implements ISelectionListen
|
|||
}
|
||||
|
||||
void listenSelection( final boolean enable, final ISelectionListener listener ) {
|
||||
Display display = getWorkbench().getDisplay();
|
||||
if ( display == null || display.isDisposed() )
|
||||
return;
|
||||
Runnable r = new Runnable() {
|
||||
|
||||
public void run() {
|
||||
|
@ -337,6 +345,6 @@ public class CDebugUIPlugin extends AbstractUIPlugin implements ISelectionListen
|
|||
}
|
||||
}
|
||||
};
|
||||
getWorkbench().getDisplay().asyncExec( r );
|
||||
display.asyncExec( r );
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue