mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-10 17:55:39 +02:00
Added Getter and Setter for 'fRefreshVariables'.
This commit is contained in:
parent
5049754989
commit
f5a5e58c82
2 changed files with 16 additions and 3 deletions
|
@ -1,3 +1,6 @@
|
|||
2002-10-10 Mikhail Khodjaiants
|
||||
* CStackFrame.java: Added Getter and Setter for 'fRefreshVariables'.
|
||||
|
||||
2002-10-10 Mikhail Khodjaiants
|
||||
* DisassemblyManager.java: Replaced 'getInstructions( String fileName, int lineNumber )'
|
||||
by 'getInstructions( String fileName, int lineNumber, int maxLineCount )'.
|
||||
|
|
|
@ -107,11 +107,11 @@ public class CStackFrame extends CDebugElement
|
|||
fVariables.add( new CLocalVariable( this, (ICDIVariable)it.next() ) );
|
||||
}
|
||||
}
|
||||
else if ( fRefreshVariables )
|
||||
else if ( refreshVariables() )
|
||||
{
|
||||
updateVariables();
|
||||
}
|
||||
fRefreshVariables = false;
|
||||
setRefreshVariables( false );
|
||||
return fVariables;
|
||||
}
|
||||
|
||||
|
@ -468,7 +468,7 @@ public class CStackFrame extends CDebugElement
|
|||
fLastCDIStackFrame = fCDIStackFrame;
|
||||
}
|
||||
fCDIStackFrame = frame;
|
||||
fRefreshVariables = true;
|
||||
setRefreshVariables( true );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -742,4 +742,14 @@ public class CStackFrame extends CDebugElement
|
|||
((IRestart)getDebugTarget()).restart();
|
||||
}
|
||||
}
|
||||
|
||||
private void setRefreshVariables( boolean refresh )
|
||||
{
|
||||
fRefreshVariables = refresh;
|
||||
}
|
||||
|
||||
private boolean refreshVariables()
|
||||
{
|
||||
return fRefreshVariables;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue