blob: 112725210dfe3807b51b0e8eaab5e060153c71cb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
/*******************************************************************************
* Copyright (c) 2000, 2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.debug.internal.ui.actions.variables.details;
import org.eclipse.debug.internal.ui.IDebugHelpContextIds;
import org.eclipse.debug.internal.ui.actions.ActionMessages;
import org.eclipse.jface.action.Action;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.PlatformUI;
/**
* Opens a dialog so that the user can enter the maximum length in characters that
* the detail pane should display.
*
* @see DetailPaneMaxLengthDialog
* @since 3.0
*/
public class DetailPaneMaxLengthAction extends Action {
private Shell fDialogShell;
public DetailPaneMaxLengthAction(Shell dialogShell){
super(ActionMessages.DetailPaneMaxLengthAction_0);
fDialogShell = dialogShell;
PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IDebugHelpContextIds.DETAIL_PANE_MAX_LENGTH_ACTION);
}
@Override
public void run() {
DetailPaneMaxLengthDialog dialog = new DetailPaneMaxLengthDialog(fDialogShell);
dialog.open();
}
}
|