KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > actions > breakpointGroups > WorkingSetsAction


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 implementation
10  *******************************************************************************/

11 package org.eclipse.debug.internal.ui.actions.breakpointGroups;
12
13 import org.eclipse.debug.internal.ui.DebugUIPlugin;
14 import org.eclipse.jface.action.IAction;
15 import org.eclipse.jface.viewers.ISelection;
16 import org.eclipse.ui.PlatformUI;
17 import org.eclipse.ui.dialogs.IWorkingSetSelectionDialog;
18
19 /**
20  * Allows the user to manage working sets.
21  */

22 public class WorkingSetsAction extends AbstractBreakpointsViewAction {
23     
24     /* (non-Javadoc)
25      * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
26      */

27     public void run(IAction action) {
28         IWorkingSetSelectionDialog selectionDialog = PlatformUI.getWorkbench().getWorkingSetManager().createWorkingSetSelectionDialog(DebugUIPlugin.getShell(), false);
29         selectionDialog.open();
30     }
31
32     /* (non-Javadoc)
33      * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
34      */

35     public void selectionChanged(IAction action, ISelection selection) {
36     }
37
38 }
39
Popular Tags