Browse Source

Property values sometimes were not updated in Local Variables Pad

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.0@1407 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
David Srbecký 20 years ago
parent
commit
7441ef4892
  1. 4
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/PropertyVariable.cs
  2. 3
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/VariableCollection.cs

4
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/PropertyVariable.cs

@ -36,7 +36,7 @@ namespace Debugger
} }
} }
public bool IsEvaluated { bool IsEvaluated {
get { get {
if (Eval != null) { if (Eval != null) {
return Eval.Evaluated; return Eval.Evaluated;
@ -46,7 +46,7 @@ namespace Debugger
} }
} }
public Eval Eval { Eval Eval {
get { get {
if (cachedEval == null || cachedEval.HasExpired) { if (cachedEval == null || cachedEval.HasExpired) {
cachedEval = evalCreator(); cachedEval = evalCreator();

3
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/VariableCollection.cs

@ -154,6 +154,9 @@ namespace Debugger
((ClassVariable)oldVariable).isPublic = ((ClassVariable)oldVariable).isPublic; ((ClassVariable)oldVariable).isPublic = ((ClassVariable)oldVariable).isPublic;
((ClassVariable)oldVariable).isStatic = ((ClassVariable)oldVariable).isStatic; ((ClassVariable)oldVariable).isStatic = ((ClassVariable)oldVariable).isStatic;
} }
if (newVariable is PropertyVariable) {
newVariable.ValueChanged += delegate { oldVariable.OnValueChanged(); };
}
} }
// Keep the variable in the list // Keep the variable in the list
toBeRemoved.Remove(this[newVariable.Name]); toBeRemoved.Remove(this[newVariable.Name]);

Loading…
Cancel
Save