Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] Implementation of the 'refresh' method of CVariable

Index: ChangeLog
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.core/ChangeLog,v
retrieving revision 1.77
diff -u -r1.77 ChangeLog
--- ChangeLog 17 Dec 2002 02:41:32 -0000 1.77
+++ ChangeLog 17 Dec 2002 18:36:54 -0000
@@ -1,3 +1,7 @@
+2002-12-17 Mikhail Khodjaiants
+ Changed the implementation of the 'refresh' method of CVariable.
+ * CVariable.java
+
 2002-12-16 Mikhail Khodjaiants
  Added support of variable formatting.
  * ICValue.java: new type - TYPE_UNKNOWN
Index: CVariable.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CVariable.java,v
retrieving revision 1.13
diff -u -r1.13 CVariable.java
--- CVariable.java 17 Dec 2002 02:41:32 -0000 1.13
+++ CVariable.java 17 Dec 2002 18:41:44 -0000
@@ -388,13 +388,7 @@
   */
  public void refresh() throws DebugException
  {
-  try
-  {
-   getCDIVariable().setValue( getCDIVariable().getValue().getValueString() );
-  }
-  catch( CDIException e )
-  {
-   targetRequestFailed( e.getMessage(), null );
-  }
+  ((ICValue)getValue()).setChanged( true );
+  fireChangeEvent( DebugEvent.STATE );
  }
 }

Back to the top