mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-13 11:15:38 +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
|
2002-10-10 Mikhail Khodjaiants
|
||||||
* DisassemblyManager.java: Replaced 'getInstructions( String fileName, int lineNumber )'
|
* DisassemblyManager.java: Replaced 'getInstructions( String fileName, int lineNumber )'
|
||||||
by 'getInstructions( String fileName, int lineNumber, int maxLineCount )'.
|
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() ) );
|
fVariables.add( new CLocalVariable( this, (ICDIVariable)it.next() ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ( fRefreshVariables )
|
else if ( refreshVariables() )
|
||||||
{
|
{
|
||||||
updateVariables();
|
updateVariables();
|
||||||
}
|
}
|
||||||
fRefreshVariables = false;
|
setRefreshVariables( false );
|
||||||
return fVariables;
|
return fVariables;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -468,7 +468,7 @@ public class CStackFrame extends CDebugElement
|
||||||
fLastCDIStackFrame = fCDIStackFrame;
|
fLastCDIStackFrame = fCDIStackFrame;
|
||||||
}
|
}
|
||||||
fCDIStackFrame = frame;
|
fCDIStackFrame = frame;
|
||||||
fRefreshVariables = true;
|
setRefreshVariables( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -742,4 +742,14 @@ public class CStackFrame extends CDebugElement
|
||||||
((IRestart)getDebugTarget()).restart();
|
((IRestart)getDebugTarget()).restart();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void setRefreshVariables( boolean refresh )
|
||||||
|
{
|
||||||
|
fRefreshVariables = refresh;
|
||||||
|
}
|
||||||
|
|
||||||
|
private boolean refreshVariables()
|
||||||
|
{
|
||||||
|
return fRefreshVariables;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue