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 RefactoringPreviewOpenAction extends AbstractAction { 36 37 40 public RefactoringPreviewOpenAction() { 41 String name = NbBundle.getMessage( 42 FindUsagesOpenAction.class, 43 "LBL_RefactoringWindow"); putValue(NAME, name); 45 putValue("iconBase", "org/netbeans/modules/refactoring/resources/refactoringpreview.png"); } 47 48 53 public void actionPerformed(ActionEvent e) { 54 RefactoringPanelContainer resultView = RefactoringPanelContainer.getRefactoringComponent(); 55 resultView.open(); 56 resultView.requestActive(); 57 } 58 } 59 | Popular Tags |