mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 14:55:41 +02: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 fOKButton;
|
||||||
private Button fOKNewTabButton;
|
private Button fOKNewTabButton;
|
||||||
private Composite fComposite;
|
private Composite fComposite;
|
||||||
private Object fCurrentDebugContext;
|
|
||||||
|
|
||||||
protected static int ID_GO_NEW_TAB = 2000;
|
protected static int ID_GO_NEW_TAB = 2000;
|
||||||
|
|
||||||
|
@ -268,22 +267,20 @@ public class GoToAddressBarWidget {
|
||||||
*/
|
*/
|
||||||
public void loadSavedExpressions(Object context, String memorySpace)
|
public void loadSavedExpressions(Object context, String memorySpace)
|
||||||
{
|
{
|
||||||
if ( context != null && ! context.equals( fCurrentDebugContext ) ) {
|
try {
|
||||||
try {
|
String[] expressions = getSavedExpressions(context, memorySpace);
|
||||||
String[] expressions = getSavedExpressions(context, memorySpace);
|
String currentExpression = fExpression.getText();
|
||||||
String currentExpression = fExpression.getText();
|
fExpression.removeAll();
|
||||||
fExpression.removeAll();
|
for (String expression : expressions) {
|
||||||
for (String expression : expressions) {
|
fExpression.add(expression);
|
||||||
fExpression.add(expression);
|
|
||||||
}
|
|
||||||
if (currentExpression != null) {
|
|
||||||
fExpression.setText(currentExpression);
|
|
||||||
}
|
|
||||||
fCurrentDebugContext = context;
|
|
||||||
} catch (CoreException e) {
|
|
||||||
// Unexpected snag dealing with launch configuration
|
|
||||||
MemoryBrowserPlugin.log(e);
|
|
||||||
}
|
}
|
||||||
|
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…
Add table
Reference in a new issue