| 1 19 package org.netbeans.bluej.ui; 20 21 import javax.swing.Action ; 22 import org.netbeans.bluej.ui.window.BluejViewTopComponent; 23 import org.openide.util.HelpCtx; 24 import org.openide.util.NbBundle; 25 import org.openide.util.actions.CallableSystemAction; 26 27 public final class BlueJViewAction extends CallableSystemAction { 28 29 public BlueJViewAction() { 30 } 31 32 public void performAction() { 33 BluejViewTopComponent.findInstance().open(); 34 BluejViewTopComponent.findInstance().requestActive(); 35 } 36 37 public String getName() { 38 return NbBundle.getMessage(BlueJViewAction.class, "CTL_BlueJViewAction"); 39 } 40 41 protected String iconResource() { 42 return "org/netbeans/bluej/ui/window/bluejview.png"; } 44 45 public HelpCtx getHelpCtx() { 46 return HelpCtx.DEFAULT_HELP; 47 } 48 49 protected boolean asynchronous() { 50 return false; 51 } 52 53 } 54 | Popular Tags |