diff -r 8b9365e11a76 core.windows/src/org/netbeans/core/windows/actions/Bundle.properties --- a/core.windows/src/org/netbeans/core/windows/actions/Bundle.properties Mon Feb 21 14:18:11 2011 +0100 +++ b/core.windows/src/org/netbeans/core/windows/actions/Bundle.properties Tue Feb 22 19:07:42 2011 +0100 @@ -88,6 +88,7 @@ # ResetWindowsAction CTL_ResetWindows=Reset &Windows +CTL_ReloadWindows=Reload Windows LBL_ToggleWindowTransparencyAction=Transparent Window LBL_WindowTransparencyHint=Press and hold [Ctrl+NumPad 0] key to make minimized window transparent. diff -r 8b9365e11a76 core.windows/src/org/netbeans/core/windows/actions/ResetWindowsAction.java --- a/core.windows/src/org/netbeans/core/windows/actions/ResetWindowsAction.java Mon Feb 21 14:18:11 2011 +0100 +++ b/core.windows/src/org/netbeans/core/windows/actions/ResetWindowsAction.java Tue Feb 22 19:07:42 2011 +0100 @@ -74,10 +74,23 @@ * * @author S. Aubrecht */ -@ActionID(id = "org.netbeans.core.windows.actions.ResetWindowsAction", category = "Window") -@ActionRegistration(displayName = "#CTL_ResetWindows") -@ActionReference(position = 3000, path = "Menu/Window") public class ResetWindowsAction implements ActionListener { + @ActionID(id = "org.netbeans.core.windows.actions.ResetWindowsAction", category = "Window") + @ActionRegistration(displayName = "#CTL_ResetWindows") + @ActionReference(position = 3000, path = "Menu/Window") + public static ActionListener reset() { + return new ResetWindowsAction(true); + } + + @ActionID(id = "org.netbeans.core.windows.actions.ReloadWindowsAction", category = "Window") + @ActionRegistration(displayName = "#CTL_ReloadWindows") + public static ActionListener reload() { + return new ResetWindowsAction(false); + } + private final boolean reset; + public ResetWindowsAction(boolean reset) { + this.reset = reset; + } @Override public void actionPerformed(ActionEvent e) { @@ -119,7 +132,7 @@ public void run() { //find the local folder that must be deleted FileObject rootFolder = FileUtil.getConfigFile( PersistenceManager.ROOT_LOCAL_FOLDER ); - if( null != rootFolder ) { + if (reset && null != rootFolder) { try { for( FileObject fo : rootFolder.getChildren() ) { if( PersistenceManager.COMPS_FOLDER.equals( fo.getName() ) )