1 19 package org.netbeans.modules.editor.hints.ui; 20 21 import java.awt.event.ActionEvent ; 22 import javax.swing.AbstractAction ; 23 import javax.swing.ImageIcon ; 24 import org.openide.util.NbBundle; 25 import org.openide.util.Utilities; 26 import org.openide.windows.TopComponent; 27 28 31 public class ProblemAction extends AbstractAction { 32 33 public ProblemAction() { 34 super(NbBundle.getMessage(ProblemAction.class, "CTL_ProblemAction")); 35 } 37 38 public void actionPerformed(ActionEvent evt) { 39 TopComponent win = ProblemTopComponent.findInstance(); 40 win.open(); 41 win.requestActive(); 42 } 43 44 } 45 | Popular Tags |