ASF Bugzilla – Attachment 27853 Details for
Bug 52097
Save As should point to same folder that was used to open a file if MRU list is used
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch for build 1182604
Bug52097_SaveAsToLastOpenFolder.patch (text/plain), 1.67 KB, created by
Roman Bargezi
on 2011-10-27 12:19:29 UTC
(
hide
)
Description:
Proposed patch for build 1182604
Filename:
MIME Type:
Creator:
Roman Bargezi
Created:
2011-10-27 12:19:29 UTC
Size:
1.67 KB
patch
obsolete
>Index: src/core/org/apache/jmeter/gui/action/Save.java >=================================================================== >--- src/core/org/apache/jmeter/gui/action/Save.java (revision 1188913) >+++ src/core/org/apache/jmeter/gui/action/Save.java (working copy) >@@ -96,9 +96,9 @@ > > String updateFile = GuiPackage.getInstance().getTestPlanFile(); > if (!ActionNames.SAVE.equals(e.getActionCommand()) || updateFile == null) { >- JFileChooser chooser = FileDialoger.promptToSaveFile(GuiPackage.getInstance().getTreeListener() >+ JFileChooser chooser = FileDialoger.promptToSaveFile(updateFile == null ? GuiPackage.getInstance().getTreeListener() > .getCurrentNode().getName() >- + JMX_FILE_EXTENSION); >+ + JMX_FILE_EXTENSION : updateFile); > if (chooser == null) { > return; > } >Index: src/core/org/apache/jmeter/gui/util/FileDialoger.java >=================================================================== >--- src/core/org/apache/jmeter/gui/util/FileDialoger.java (revision 1188913) >+++ src/core/org/apache/jmeter/gui/util/FileDialoger.java (working copy) >@@ -124,7 +124,9 @@ > } > String ext = ".jmx";//$NON-NLS-1$ > if (filename != null) { >- jfc.setSelectedFile(new File(lastJFCDirectory, filename)); >+ jfc.setSelectedFile(filename.lastIndexOf(System.getProperty("file.separator")) > 0 ? >+ new File(filename) : >+ new File(lastJFCDirectory, filename)); > int i = -1; > if ((i = filename.lastIndexOf(".")) > -1) {//$NON-NLS-1$ > ext = filename.substring(i);
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 52097
: 27853