1 11 package org.eclipse.debug.internal.ui.views.memory; 12 13 import org.eclipse.debug.internal.ui.DebugUIMessages; 14 import org.eclipse.jface.action.Action; 15 16 21 public class ReformatAction extends Action { 22 23 ITableMemoryViewTab fViewTab; 24 25 private static final String PREFIX = "ReformatAction."; private static final String TITLE = PREFIX + "title"; 28 public ReformatAction(ITableMemoryViewTab viewTab) 29 { 30 super(DebugUIMessages.getString(TITLE)); 31 fViewTab = viewTab; 32 } 33 34 37 public void run() { 38 39 if (fViewTab instanceof MemoryViewTab) 40 { 41 ((MemoryViewTab)fViewTab).packColumns(); 42 } 43 } 44 45 } 46 | Popular Tags |