Author: pmouawad
Date: Sun Nov 27 22:07:18 2011
New Revision: 1206861
URL: http://svn.apache.org/viewvc?rev=1206861&view=rev
Log:
Bug 51093 - when loading a selection previously stored by "Save Selection As", show the file
name in the blue window bar
Modified:
jmeter/trunk/src/core/org/apache/jmeter/gui/util/FileDialoger.java
jmeter/trunk/xdocs/changes.xml
Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/util/FileDialoger.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/gui/util/FileDialoger.java?rev=1206861&r1=1206860&r2=1206861&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/gui/util/FileDialoger.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/gui/util/FileDialoger.java Sun Nov 27 22:07:18
2011
@@ -124,6 +124,7 @@ public final class FileDialoger {
}
String ext = ".jmx";//$NON-NLS-1$
if (filename != null) {
+ jfc.setDialogTitle(filename);
jfc.setSelectedFile(filename.lastIndexOf(System.getProperty("file.separator"))
> 0 ?
new File(filename) :
new File(lastJFCDirectory, filename));
@@ -140,6 +141,7 @@ public final class FileDialoger {
}
int retVal = jfc.showSaveDialog(GuiPackage.getInstance().getMainFrame());
+ jfc.setDialogTitle(null);
lastJFCDirectory = jfc.getCurrentDirectory().getAbsolutePath();
if (retVal == JFileChooser.APPROVE_OPTION) {
return jfc;
Modified: jmeter/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/xdocs/changes.xml?rev=1206861&r1=1206860&r2=1206861&view=diff
==============================================================================
--- jmeter/trunk/xdocs/changes.xml (original)
+++ jmeter/trunk/xdocs/changes.xml Sun Nov 27 22:07:18 2011
@@ -229,6 +229,7 @@ Loads any additional properties found in
<li>Bug 52240 - TestBeans should support Boolean, Integer and Long</li>
<li>Bug 52241 - GenericTestBeanCustomizer assumes that the default value is the empty
string</li>
<li>Bug 52242 - FileEditor does not allow output to be saved in a File </li>
+<li>Bug 51093 - when loading a selection previously stored by "Save Selection As",
show the file name in the blue window bar</li>
</ul>
<h2>Non-functional changes</h2>
|