ASF Bugzilla – Attachment 32135 Details for
Bug 52707
Make Open File dialog use last opened file folder as start folder
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
FileDialoger&Load patch
bug_52707.patch (text/plain), 1.79 KB, created by
Dzmitry Kashlach
on 2014-10-22 08:47:43 UTC
(
hide
)
Description:
FileDialoger&Load patch
Filename:
MIME Type:
Creator:
Dzmitry Kashlach
Created:
2014-10-22 08:47:43 UTC
Size:
1.79 KB
patch
obsolete
>Index: src/core/org/apache/jmeter/gui/action/Load.java >IDEA additional info: >Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP ><+>UTF-8 >=================================================================== >--- src/core/org/apache/jmeter/gui/action/Load.java (revision f03a8bdbe5ba31d9f42adf816887c714cd8c7dce) >+++ src/core/org/apache/jmeter/gui/action/Load.java (revision ) >@@ -152,6 +152,7 @@ > } finally { > JOrphanUtils.closeQuietly(reader); > } >+ FileDialoger.setLastJFCDirectory(f.getParentFile().getAbsolutePath()); > guiPackage.updateCurrentGui(); > guiPackage.getMainFrame().repaint(); > } >Index: src/core/org/apache/jmeter/gui/util/FileDialoger.java >IDEA additional info: >Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP ><+>UTF-8 >=================================================================== >--- src/core/org/apache/jmeter/gui/util/FileDialoger.java (revision f03a8bdbe5ba31d9f42adf816887c714cd8c7dce) >+++ src/core/org/apache/jmeter/gui/util/FileDialoger.java (revision ) >@@ -101,8 +101,8 @@ > jfc.setAcceptAllFileFilterUsed(true); > jfc.setFileFilter(currentFilter); > } >+ jfc.setCurrentDirectory(new File(lastJFCDirectory)); > int retVal = jfc.showOpenDialog(GuiPackage.getInstance().getMainFrame()); >- lastJFCDirectory = jfc.getCurrentDirectory().getAbsolutePath(); > > if (retVal == JFileChooser.APPROVE_OPTION) { > return jfc; >@@ -173,5 +173,13 @@ > return jfc; > } > return null; >+ } >+ >+ public static String getLastJFCDirectory() { >+ return lastJFCDirectory; >+ } >+ >+ public static void setLastJFCDirectory(String lastJFCDirectory) { >+ FileDialoger.lastJFCDirectory = lastJFCDirectory; > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 52707
: 32135 |
32160