KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > views > memory > renderings > SetPaddedStringAction


1 /*******************************************************************************
2  * Copyright (c) 2004, 2005 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
12 package org.eclipse.debug.internal.ui.views.memory.renderings;
13
14 import org.eclipse.debug.internal.ui.DebugUIPlugin;
15 import org.eclipse.jface.action.IAction;
16 import org.eclipse.jface.viewers.ISelection;
17 import org.eclipse.swt.widgets.Shell;
18 import org.eclipse.ui.IViewActionDelegate;
19 import org.eclipse.ui.IViewPart;
20
21 /**
22  * Action for setting the padded string preference
23  * @since 3.1
24  */

25 public class SetPaddedStringAction implements IViewActionDelegate {
26
27     public void init(IViewPart view) {
28
29     }
30
31     public void run(IAction action) {
32         Shell shell = DebugUIPlugin.getShell();
33         SetPaddedStringDialog dialog = new SetPaddedStringDialog(shell);
34         dialog.open();
35
36     }
37
38     public void selectionChanged(IAction action, ISelection selection) {
39     }
40
41 }
42
Popular Tags