KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > views > variables > MaxDetailsLengthAction


1 /*******************************************************************************
2  * Copyright (c) 2000, 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 package org.eclipse.debug.internal.ui.views.variables;
12
13 import org.eclipse.jface.action.IAction;
14 import org.eclipse.jface.viewers.ISelection;
15 import org.eclipse.ui.IViewActionDelegate;
16 import org.eclipse.ui.IViewPart;
17
18 public class MaxDetailsLengthAction implements IViewActionDelegate {
19     
20     private IViewPart fView;
21
22     /* (non-Javadoc)
23      * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
24      */

25     public void init(IViewPart view) {
26         fView = view;
27     }
28
29     /* (non-Javadoc)
30      * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
31      */

32     public void run(IAction action) {
33         MaxDetailsLengthDialog dialog = new MaxDetailsLengthDialog(fView.getSite().getShell());
34         dialog.open();
35     }
36
37     /* (non-Javadoc)
38      * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
39      */

40     public void selectionChanged(IAction action, ISelection selection) {
41     }
42
43 }
44
Popular Tags