Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] Implementation of the 'Memory Unit Size' action

Implementation of the 'Memory Unit Size' action.

Index: MemorySizeAction.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/MemorySizeAction.java,v
retrieving revision 1.1
diff -u -r1.1 MemorySizeAction.java
--- MemorySizeAction.java 24 Oct 2002 23:16:01 -0000 1.1
+++ MemorySizeAction.java 25 Oct 2002 04:02:31 -0000
@@ -77,6 +77,7 @@
  public void run()
  {
   fGroup.setCurrentSelection( this );
+  fMemoryViewer.setWordSize( fId );
  }
  
  public String getActionId()

Index: MemoryViewer.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/memory/MemoryViewer.java,v
retrieving revision 1.10
diff -u -r1.10 MemoryViewer.java
--- MemoryViewer.java 24 Oct 2002 23:16:01 -0000 1.10
+++ MemoryViewer.java 25 Oct 2002 04:02:48 -0000
@@ -215,4 +215,14 @@
   IFormattedMemoryBlock block = ((MemoryControlArea)fTabFolder.getSelection().getControl()).getMemoryBlock();
   return ( block != null ) ? block.getWordSize() : 0;
  }

+ public void setWordSize( int size )
+ {
+  IFormattedMemoryBlock block = ((MemoryControlArea)fTabFolder.getSelection().getControl()).getMemoryBlock();
+  if ( block != null )
+  {
+   block.setWordSize( size );
+   ((MemoryControlArea)fTabFolder.getSelection().getControl()).refresh();
+  }
+ }
 }

Index: ChangeLog
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.ui/ChangeLog,v
retrieving revision 1.14
diff -u -r1.14 ChangeLog
--- ChangeLog 24 Oct 2002 23:16:01 -0000 1.14
+++ ChangeLog 25 Oct 2002 04:03:14 -0000
@@ -1,4 +1,9 @@
 2002-10-24 Mikhail Khodjaiants
+ Implementation of the 'Memory Unit Size' action.
+ * MemorySizeAction.java
+ * MemoryView.java
+
+2002-10-24 Mikhail Khodjaiants
  Implementing Memory view formatting actions.
  * MemoryActionSelectionGroup.java: implementation of a toggle action group.
  * MemorySizeAction.java: implementation of the "Memory Unit Size" menu item.


Back to the top