[hg] main-silver: #230348 - [Inline variable] After refactoring ...

  • From: Ralph Benjamin Ruijs < >
  • To: ,
  • Subject: [hg] main-silver: #230348 - [Inline variable] After refactoring ...
  • Date: Thu, 03 Apr 2014 22:22:28 +0000

changeset e571988fcc31 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/e571988fcc31
description:
        #230348 - [Inline variable] After refactoring the editor lost the 
focus

diffstat:

 
refactoring.api/src/org/netbeans/modules/refactoring/spi/impl/RefactoringPanel.java
 |  7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diffs (24 lines):

diff --git 
a/refactoring.api/src/org/netbeans/modules/refactoring/spi/impl/RefactoringPanel.java
 
b/refactoring.api/src/org/netbeans/modules/refactoring/spi/impl/RefactoringPanel.java
--- 
a/refactoring.api/src/org/netbeans/modules/refactoring/spi/impl/RefactoringPanel.java
+++ 
b/refactoring.api/src/org/netbeans/modules/refactoring/spi/impl/RefactoringPanel.java
@@ -92,6 +92,7 @@
 import org.openide.awt.Mnemonics;
 import org.openide.awt.ToolbarWithOverflow;
 import org.openide.filesystems.FileObject;
+import org.openide.filesystems.FileUtil;
 import org.openide.loaders.DataObject;
 import org.openide.util.*;
 import org.openide.windows.TopComponent;
@@ -587,6 +588,12 @@
         } else {
             
RefactoringPanelContainer.getRefactoringComponent().removePanel(this);
         }
+        if(isVisible) {
+            Action action = 
FileUtil.getConfigObject("Actions/Window/org-netbeans-core-windows-actions-SwitchToRecentDocumentAction.instance",
 Action.class); //NOI18N
+            if(action != null) {
+                action.actionPerformed(new ActionEvent(this, 
ActionEvent.ACTION_PERFORMED, null));
+            }
+        }
         closeNotify();
     }
     

[hg] main-silver: #230348 - [Inline variable] After refactoring ...

Ralph Benjamin Ruijs 04/03/2014

Project Features

About this Project

Editor was started in November 2009, is owned by Martin Ryzl, and has 188 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20150226.965aeb8). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close