KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > launchConfigurations > OrganizeFavoritesAction


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.launchConfigurations;
12
13 import org.eclipse.debug.internal.ui.DebugUIPlugin;
14 import org.eclipse.jface.action.Action;
15
16 /**
17  * OrganizeFavoritesAction
18  */

19 public class OrganizeFavoritesAction extends Action {
20     
21     // launch group identifier
22
private String JavaDoc fGroupId;
23     
24     /**
25      * @param text
26      */

27     public OrganizeFavoritesAction(String JavaDoc launchGroupId) {
28         super(LaunchConfigurationsMessages.OrganizeFavoritesAction_0);
29         fGroupId = launchGroupId;
30     }
31
32     /* (non-Javadoc)
33      * @see org.eclipse.jface.action.IAction#run()
34      */

35     public void run() {
36         LaunchHistory history = DebugUIPlugin.getDefault().getLaunchConfigurationManager().getLaunchHistory(fGroupId);
37         FavoritesDialog dialog = new FavoritesDialog(DebugUIPlugin.getShell(), history);
38         dialog.open();
39     }
40
41 }
42
Popular Tags