1 package org.netbeans.modules.gsf.tools.lucene; 2 3 import java.awt.event.ActionEvent ; 4 import javax.swing.AbstractAction ; 5 import javax.swing.ImageIcon ; 6 import org.openide.util.NbBundle; 7 import org.openide.util.Utilities; 8 import org.openide.windows.TopComponent; 9 10 13 public class IndexBrowserAction extends AbstractAction { 14 15 public IndexBrowserAction() { 16 super(NbBundle.getMessage(IndexBrowserAction.class, "CTL_IndexBrowserAction")); 17 } 19 20 public void actionPerformed(ActionEvent evt) { 21 TopComponent win = IndexBrowserTopComponent.findInstance(); 22 win.open(); 23 win.requestActive(); 24 } 25 26 } 27 | Popular Tags |