From 15b620d7f08d188a93593d3b1a4a5b1cdf33fb1e Mon Sep 17 00:00:00 2001 From: Mikhail Khodjaiants Date: Tue, 31 May 2005 21:35:54 +0000 Subject: [PATCH] Bug 84816: The modification of the signal properties should be done in the background. --- .../propertypages/PropertyPageMessages.properties | 3 +-- .../ui/propertypages/SignalPropertyPage.java | 13 ++----------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/PropertyPageMessages.properties b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/PropertyPageMessages.properties index 32de621a5de..d84ab73d014 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/PropertyPageMessages.properties +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/PropertyPageMessages.properties @@ -33,9 +33,8 @@ ThreadFilterEditor.0=&Restrict to Selected Targets and Threads: SignalPropertyPage.0=Description: {0}. SignalPropertyPage.1=Pass this signal to the program. SignalPropertyPage.2=Suspend the program when this signal happens. -SignalPropertyPage.3=Error SignalPropertyPage.4=Operation failed. -SignalPropertyPage.5=Unable to change signal properties. +SignalPropertyPage.5=Unable to change signal's properties. ModulePropertyPage.0=Type: ModulePropertyPage.1=executable ModulePropertyPage.2=shared library diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/SignalPropertyPage.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/SignalPropertyPage.java index e4ef79a4b7d..6ae6812fe07 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/SignalPropertyPage.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/propertypages/SignalPropertyPage.java @@ -112,15 +112,6 @@ public class SignalPropertyPage extends PropertyPage { DebugPlugin.getDefault().asyncExec( new Runnable() { public void run() { - - - try { - Thread.sleep( 10000 ); - } - catch( InterruptedException e1 ) { - // TODO Auto-generated catch block - } - if ( !getSignal().canModify() ) return; if ( getPassButton() != null ) { @@ -128,7 +119,7 @@ public class SignalPropertyPage extends PropertyPage { getSignal().setPassEnabled( getPassButton().isSelected() ); } catch( DebugException e ) { - failed( PropertyPageMessages.getString( "SignalPropertyPage.4" ), e ); //$NON-NLS-1$ + failed( PropertyPageMessages.getString( "SignalPropertyPage.5" ), e ); //$NON-NLS-1$ } } if ( getStopButton() != null ) { @@ -136,7 +127,7 @@ public class SignalPropertyPage extends PropertyPage { getSignal().setStopEnabled( getStopButton().isSelected() ); } catch( DebugException e ) { - failed( PropertyPageMessages.getString( "SignalPropertyPage.4" ), e ); //$NON-NLS-1$ + failed( PropertyPageMessages.getString( "SignalPropertyPage.5" ), e ); //$NON-NLS-1$ } } }