1 11 package org.eclipse.debug.internal.ui.views.memory; 12 13 import org.eclipse.debug.internal.ui.DebugUIMessages; 14 import org.eclipse.debug.internal.ui.DebugUIPlugin; 15 import org.eclipse.debug.ui.IDebugUIConstants; 16 import org.eclipse.jface.action.Action; 17 import org.eclipse.swt.widgets.Shell; 18 import org.eclipse.ui.help.WorkbenchHelp; 19 20 21 public class SetDefaultColumnSizePrefAction extends Action { 22 23 private static final String PREFIX = "SetDefaultColumnSizePrefAction."; private static final String DEFAULT_COLUMN_SIZE = PREFIX + "DefaultColumnSize"; private static final String SET_DEFAULT_COLUMN_SIZE = PREFIX + "SetDefaultColumnSize"; 27 public SetDefaultColumnSizePrefAction() 28 { 29 setText(DebugUIMessages.getString(DEFAULT_COLUMN_SIZE)); 30 setToolTipText(DebugUIMessages.getString(SET_DEFAULT_COLUMN_SIZE)); 31 WorkbenchHelp.setHelp(this, IDebugUIConstants.PLUGIN_ID + ".DefaultColumnSizePrefAction_context"); } 33 34 37 public void run() { 38 Shell shell = DebugUIPlugin.getShell(); 39 DefaultColumnSizeDialog dialog = new DefaultColumnSizeDialog(shell); 40 dialog.open(); 41 } 42 } 43 | Popular Tags |