mirror of
https://github.com/eclipse-cdt/cdt
synced 2024-10-28 12:09:40 +01:00
Bug 356346 - You cannot enter an expression in the memory Browser expression area if a continuous breakpoint is runing (backed out change; see bugzilla for explanation)
This commit is contained in:
parent
235d88f017
commit
9445f4c6a4
1 changed files with 13 additions and 16 deletions
|
@ -62,7 +62,6 @@ public class GoToAddressBarWidget {
|
|||
private Button fOKButton;
|
||||
private Button fOKNewTabButton;
|
||||
private Composite fComposite;
|
||||
private Object fCurrentDebugContext;
|
||||
|
||||
protected static int ID_GO_NEW_TAB = 2000;
|
||||
|
||||
|
@ -268,22 +267,20 @@ public class GoToAddressBarWidget {
|
|||
*/
|
||||
public void loadSavedExpressions(Object context, String memorySpace)
|
||||
{
|
||||
if ( context != null && ! context.equals( fCurrentDebugContext ) ) {
|
||||
try {
|
||||
String[] expressions = getSavedExpressions(context, memorySpace);
|
||||
String currentExpression = fExpression.getText();
|
||||
fExpression.removeAll();
|
||||
for (String expression : expressions) {
|
||||
fExpression.add(expression);
|
||||
}
|
||||
if (currentExpression != null) {
|
||||
fExpression.setText(currentExpression);
|
||||
}
|
||||
fCurrentDebugContext = context;
|
||||
} catch (CoreException e) {
|
||||
// Unexpected snag dealing with launch configuration
|
||||
MemoryBrowserPlugin.log(e);
|
||||
try {
|
||||
String[] expressions = getSavedExpressions(context, memorySpace);
|
||||
String currentExpression = fExpression.getText();
|
||||
fExpression.removeAll();
|
||||
for (String expression : expressions) {
|
||||
fExpression.add(expression);
|
||||
}
|
||||
if (currentExpression != null) {
|
||||
fExpression.setText(currentExpression);
|
||||
}
|
||||
System.out.println("GoToAddressBarWidget: set context field to " + context);
|
||||
} catch (CoreException e) {
|
||||
// Unexpected snag dealing with launch configuration
|
||||
MemoryBrowserPlugin.log(e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue