1 11 package org.eclipse.debug.internal.ui.views.memory.renderings; 12 13 import org.eclipse.debug.internal.ui.DebugUIMessages; 14 import org.eclipse.debug.ui.IDebugUIConstants; 15 import org.eclipse.jface.action.Action; 16 import org.eclipse.ui.PlatformUI; 17 18 23 public class ReformatAction extends Action { 24 25 private AbstractBaseTableRendering fRendering; 26 27 public ReformatAction(AbstractBaseTableRendering rendering) 28 { 29 super(DebugUIMessages.ReformatAction_title); 30 PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IDebugUIConstants.PLUGIN_ID + ".ReformatAction_context"); fRendering = rendering; 32 } 33 34 37 public void run() { 38 fRendering.resizeColumnsToPreferredSize(); 39 } 40 41 } 42 | Popular Tags |