KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > actions > breakpoints > BreakpointsExpandAllAction


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 package org.eclipse.debug.internal.ui.actions.breakpoints;
12
13 import org.eclipse.debug.internal.ui.views.breakpoints.BreakpointsView;
14 import org.eclipse.jface.action.IAction;
15 import org.eclipse.jface.viewers.ISelection;
16 import org.eclipse.ui.IViewActionDelegate;
17 import org.eclipse.ui.IViewPart;
18
19 /**
20  * Action which fully expands the tree in the breakpoints view.
21  */

22 public class BreakpointsExpandAllAction implements IViewActionDelegate {
23     
24     private BreakpointsView fView;
25
26     /* (non-Javadoc)
27      * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
28      */

29     public void init(IViewPart view) {
30         fView= (BreakpointsView) view;
31     }
32
33     /* (non-Javadoc)
34      * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
35      */

36     public void run(IAction action) {
37         fView.getCheckboxViewer().expandAll();
38     }
39
40     /* (non-Javadoc)
41      * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
42      */

43     public void selectionChanged(IAction action, ISelection selection) {
44     }
45
46 }
47
Popular Tags