1 19 20 21 package org.netbeans.modules.refactoring.spi.impl; 22 23 import java.awt.event.ActionEvent ; 24 import javax.swing.AbstractAction ; 25 import javax.swing.Icon ; 26 import javax.swing.ImageIcon ; 27 import org.openide.util.NbBundle; 28 import org.openide.util.Utilities; 29 30 35 public class FindUsagesOpenAction extends AbstractAction { 36 37 40 public FindUsagesOpenAction() { 41 String name = NbBundle.getMessage( 42 FindUsagesOpenAction.class, 43 "LBL_UsagesWindow"); putValue(NAME, name); 45 putValue("iconBase", "org/netbeans/modules/refactoring/api/resources/findusages.png"); } 47 48 53 public void actionPerformed(ActionEvent e) { 54 RefactoringPanelContainer resultView = RefactoringPanelContainer.getUsagesComponent(); 55 resultView.open(); 56 resultView.requestActive(); 57 } 58 } 59 | Popular Tags |