1 19 20 package org.netbeans.core.output2; 21 22 import org.openide.util.HelpCtx; 23 import org.openide.util.NbBundle; 24 import org.openide.util.actions.CallableSystemAction; 25 import org.openide.windows.Mode; 26 import org.openide.windows.TopComponent; 27 import org.openide.windows.WindowManager; 28 29 33 public final class OutputWindowAction extends CallableSystemAction { 34 35 public void performAction() { 36 OutputWindow output = OutputWindow.findDefault(); 37 output.open(); 38 output.requestActive(); 39 } 40 41 protected boolean asynchronous() { 42 return false; 43 } 44 45 public String getName() { 46 return NbBundle.getBundle(OutputWindowAction.class).getString("OutputWindow"); 47 } 48 49 public HelpCtx getHelpCtx() { 50 return new HelpCtx (OutputWindowAction.class); 51 } 52 53 protected String iconResource () { 54 return "org/netbeans/core/resources/frames/output.gif"; } 56 } 57 | Popular Tags |