1 19 20 21 package org.netbeans.modules.debugger.jpda.ui.actions; 22 23 import java.awt.event.ActionEvent ; 24 import javax.swing.Action ; 25 import javax.swing.AbstractAction ; 26 import javax.swing.ImageIcon ; 27 import org.netbeans.modules.debugger.jpda.ui.views.ClassesView; 28 29 import org.openide.util.NbBundle; 30 import org.openide.util.Utilities; 31 32 33 37 public class ClassesViewAction extends AbstractAction { 38 39 public ClassesViewAction () { 40 putValue ( 41 Action.NAME, 42 NbBundle.getMessage ( 43 ClassesViewAction.class, 44 "CTL_ClassesAction" 45 ) 46 ); 47 putValue ( 48 Action.SMALL_ICON, 49 new ImageIcon (Utilities.loadImage ("org/netbeans/modules/debugger/resources/classesView/Classes.gif")) ); 51 } 52 53 public void actionPerformed (ActionEvent evt) { 54 if (SourcesViewAction.activateComponent (ClassesView.class)) return; 55 ClassesView v = new ClassesView (); 56 v.open (); 57 v.requestActive (); 58 } 59 } 60 61 | Popular Tags |