1 19 20 package org.netbeans.modules.subversion.ui.status; 21 22 import org.openide.util.NbBundle; 23 import org.openide.util.HelpCtx; 24 25 import java.awt.event.ActionEvent ; 26 27 35 public class OpenVersioningAction extends ShowAllChangesAction { 36 37 public OpenVersioningAction() { 38 putValue("noIconInMenu", Boolean.TRUE); setIcon(null); 40 } 41 42 public String getName() { 43 return NbBundle.getMessage(OpenVersioningAction.class, "CTL_MenuItem_OpenVersioning"); } 45 46 51 public boolean isEnabled() { 52 return true; 53 } 54 55 public HelpCtx getHelpCtx() { 56 return new HelpCtx(OpenVersioningAction.class); 57 } 58 59 public void actionPerformed(ActionEvent e) { 60 SvnVersioningTopComponent stc = SvnVersioningTopComponent.getInstance(); 61 if (stc.hasContext() == false) { 62 super.actionPerformed(e); 63 } else { 64 stc.open(); 65 stc.requestActive(); 66 } 67 } 68 69 protected boolean shouldPostRefresh() { 70 return false; 71 } 72 } 73 | Popular Tags |