1
0
Fork 0
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:
Mikhail Khodjaiants 2002-10-10 22:01:16 +00:00
parent 5049754989
commit f5a5e58c82
2 changed files with 16 additions and 3 deletions

View file

@ -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 )'.

View file

@ -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;
}
}