1 package org.netbeans.modules.j2ee.sun.ide.avk.report.view; 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 14 public class ReportAction extends AbstractAction { 15 16 17 TopComponent win; 18 19 public ReportAction() { 20 super(NbBundle.getMessage(ReportAction.class, "CTL_ReportAction")); 21 win = ReportTopComponent.findInstance(); 22 } 24 25 public void actionPerformed(ActionEvent evt) { 26 win.open(); 27 win.requestActive(); 28 } 29 30 public void repaint() { 31 win.repaint(); 32 } 33 34 public boolean isUIClosed() { 35 return !win.isOpened(); 36 } 37 } 38 | Popular Tags |