1 19 package org.netbeans.modules.gsf.browser; 20 21 import java.awt.event.ActionEvent ; 22 import javax.swing.AbstractAction ; 23 24 import org.openide.util.NbBundle; 25 import org.openide.windows.TopComponent; 26 27 28 33 public class AstViewerAction extends AbstractAction { 34 public AstViewerAction() { 35 super(NbBundle.getMessage(AstViewerAction.class, "CTL_AstViewerAction")); 36 37 } 39 40 public void actionPerformed(ActionEvent evt) { 41 TopComponent win = AstViewer.findInstance(); 42 win.open(); 43 win.requestActive(); 44 } 45 } 46 | Popular Tags |