2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
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);
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};
33 protected String
iconResource() {
34 return "org/netbeans/modules/git/resources/icons/gitvcs-icon.png";
37 public HelpCtx
getHelpCtx() {
38 return HelpCtx
.DEFAULT_HELP
;
42 protected boolean asynchronous() {