1 19 20 21 package org.netbeans.modules.search; 22 23 import java.awt.event.ActionEvent ; 24 import javax.swing.AbstractAction ; 25 import org.openide.util.NbBundle; 26 27 33 public class ResultViewOpenAction extends AbstractAction { 34 35 38 public ResultViewOpenAction() { 39 String name = NbBundle.getMessage( 40 ResultViewOpenAction.class, 41 "TEXT_ACTION_SEARCH_RESULTS"); putValue(NAME, name); 43 putValue("iconBase", "org/netbeans/modules/search/res/find.gif"); } 46 47 52 public void actionPerformed(ActionEvent e) { 53 ResultView resultView = ResultView.getInstance(); 54 resultView.open(); 55 resultView.requestActive(); 56 } 57 58 } 59 | Popular Tags |