Removed unused ServeAction.
[nbgit.git] / src / org / netbeans / modules / git / ui / stash / StashAction.java
bloba4158d5a7ffa7fe34f1b33cfbe8ba9090cc6f9b2
1 /*
2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
4 */
5 package org.netbeans.modules.git.ui.stash;
7 import org.netbeans.api.project.Project;
8 import org.openide.nodes.Node;
9 import org.openide.util.HelpCtx;
10 import org.openide.util.NbBundle;
11 import org.openide.util.actions.CookieAction;
13 public final class StashAction extends CookieAction {
15 protected void performAction(Node[] activatedNodes) {
16 Project project = activatedNodes[0].getLookup().lookup(Project.class);
17 // TODO use project
20 protected int mode() {
21 return CookieAction.MODE_ALL;
24 public String getName() {
25 return NbBundle.getMessage(StashAction.class, "CTL_StashAction");
28 protected Class[] cookieClasses() {
29 return new Class[]{Project.class};
32 @Override
33 protected String iconResource() {
34 return "org/netbeans/modules/git/resources/icons/gitvcs-icon.png";
37 public HelpCtx getHelpCtx() {
38 return HelpCtx.DEFAULT_HELP;
41 @Override
42 protected boolean asynchronous() {
43 return false;