KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > actions > variables > details > DetailPaneMaxLengthAction


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.debug.internal.ui.actions.variables.details;
12
13 import org.eclipse.debug.internal.ui.IDebugHelpContextIds;
14 import org.eclipse.debug.internal.ui.actions.ActionMessages;
15 import org.eclipse.jface.action.Action;
16 import org.eclipse.swt.widgets.Shell;
17 import org.eclipse.ui.PlatformUI;
18
19 /**
20  * Opens a dialog so that the user can enter the maximum length in characters that
21  * the detail pane should display.
22  *
23  * @see DetailPaneMaxLengthDialog
24  * @since 3.0
25  */

26 public class DetailPaneMaxLengthAction extends Action {
27     
28     private Shell fDialogShell;
29     
30     public DetailPaneMaxLengthAction(Shell dialogShell){
31         super(ActionMessages.DetailPaneMaxLengthAction_0);
32         fDialogShell = dialogShell;
33         
34         PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IDebugHelpContextIds.DETAIL_PANE_MAX_LENGTH_ACTION);
35         
36     }
37     
38     public void run() {
39         DetailPaneMaxLengthDialog dialog = new DetailPaneMaxLengthDialog(fDialogShell);
40         dialog.open();
41     }
42
43 }
44
Popular Tags