Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2004-04-22 21:31:25 +0000
committerDarin Wright2004-04-22 21:31:25 +0000
commit4de16c4a177bd405739e33acd0a18c6187f327b1 (patch)
tree9d06f3c9490e4763145a1c39e3ed37048b5597c8 /org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/ReformatAction.java
parentac6d6137ef2759159180286aab35130e5844133b (diff)
downloadeclipse.platform.debug-4de16c4a177bd405739e33acd0a18c6187f327b1.tar.gz
eclipse.platform.debug-4de16c4a177bd405739e33acd0a18c6187f327b1.tar.xz
eclipse.platform.debug-4de16c4a177bd405739e33acd0a18c6187f327b1.zip
Bug 56146 - Memory View Contribution to Eclipse
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/ReformatAction.java')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/ReformatAction.java45
1 files changed, 45 insertions, 0 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/ReformatAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/ReformatAction.java
new file mode 100644
index 000000000..925419d29
--- /dev/null
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/ReformatAction.java
@@ -0,0 +1,45 @@
+/*******************************************************************************
+ * Copyright (c) 2004 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.debug.internal.ui.views.memory;
+
+import org.eclipse.debug.internal.ui.DebugUIMessages;
+import org.eclipse.jface.action.Action;
+
+/**
+ * Resize all columns
+ *
+ * @since 3.0
+ */
+public class ReformatAction extends Action {
+
+ ITableMemoryViewTab fViewTab;
+
+ private static final String PREFIX = "ReformatAction."; //$NON-NLS-1$
+ private static final String TITLE = PREFIX + "title"; //$NON-NLS-1$
+
+ public ReformatAction(ITableMemoryViewTab viewTab)
+ {
+ super(DebugUIMessages.getString(TITLE));
+ fViewTab = viewTab;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.action.IAction#run()
+ */
+ public void run() {
+
+ if (fViewTab instanceof MemoryViewTab)
+ {
+ ((MemoryViewTab)fViewTab).packColumns();
+ }
+ }
+
+}

Back to the top