Revision: 6211
http://squirrel-sql.svn.sourceforge.net/squirrel-sql/?rev=6211&view=rev
Author: wis775
Date: 2011-03-26 18:53:14 +0000 (Sat, 26 Mar 2011)
Log Message:
-----------
When editing table cells in a text area, the input field for the file name will be shown in an appropriate size
instead of being very small. If the user change the size of the dialog, the input field for the file name will use the extra space.
Modified Paths:
--------------
trunk/sql12/doc/src/main/resources/changes.txt
trunk/sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/datasetviewer/PopupEditableIOPanel.java
Modified: trunk/sql12/doc/src/main/resources/changes.txt
===================================================================
--- trunk/sql12/doc/src/main/resources/changes.txt 2011-03-26 18:00:34 UTC (rev 6210)
+++ trunk/sql12/doc/src/main/resources/changes.txt 2011-03-26 18:53:14 UTC (rev 6211)
@@ -7,6 +7,9 @@
Enhancements:
+Editing numeric values: Now, Squirrel has the same behavior for signed values for all different numeric data types.
+ A minus sign is allowed only at the first position and if the data type is signed.
+
Hibernate Plugin: Improved display of mapped objects in table cells:
Class name, primary key and toString() ist displayed instead of toString() only.
@@ -29,6 +32,9 @@
Bug-fixes:
+When editing table cells in a text area, the input field for the file name will be shown in an appropriate size
+ instead of being very small. If the user change the size of the dialog, the input field for the file name will use the extra space.
+
3238037: It's impossible to create a foreign key in oracle 10g, if some tables contains a / in their name eg. recycle bins
Now, "Press to open logs" shows the current log file by default instead of a random one.
Modified: trunk/sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/datasetviewer/PopupEditableIOPanel.java
===================================================================
--- trunk/sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/datasetviewer/PopupEditableIOPanel.java 2011-03-26 18:00:34 UTC (rev 6210)
+++ trunk/sql12/fw/src/main/java/net/sourceforge/squirrel_sql/fw/datasetviewer/PopupEditableIOPanel.java 2011-03-26 18:53:14 UTC (rev 6211)
@@ -19,6 +19,7 @@
*/
import java.awt.BorderLayout;
import java.awt.Color;
+import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
@@ -234,12 +235,19 @@
// i18n[popupeditableIoPanel.useFile=Use File: ]
eiPanel.add(new JLabel(s_stringMgr.getString("popupeditableIoPanel.useFile")), gbc);
-
- fileNameField = new JTextField(TEMP_FILE_FLAG, 19);
+ // ensure, that the text field can use the extra space if the user resize the dialog.
+ gbc.fill = GridBagConstraints.HORIZONTAL;
+ gbc.weightx=0.5;
+ fileNameField = new JTextField(TEMP_FILE_FLAG, 17);
+ Dimension preferredSize = fileNameField.getPreferredSize();
+ // ensure, that the text field has a suitable size, even the panel is too small.
+ fileNameField.setMinimumSize(new Dimension(preferredSize.width/2, preferredSize.height));
gbc.gridx++;
+
eiPanel.add(fileNameField, gbc);
+ gbc.fill = GridBagConstraints.NONE;;
+ gbc.weightx=0.0;
-
// add button for Brows
// i18n[popupeditableIoPanel.browse=Browse]
JButton browseButton = new JButton(s_stringMgr.getString("popupeditableIoPanel.browse"));
@@ -288,9 +296,16 @@
// make this the same size as the fileNameField
externalCommandCombo.setPreferredSize(fileNameField.getPreferredSize());
-
+ externalCommandCombo.setMinimumSize(fileNameField.getMinimumSize());
+
+ // ensure, that the text field can use the extra space if the user resize the dialog.
+ gbc.fill = GridBagConstraints.HORIZONTAL;
+ gbc.weightx=0.5;
eiPanel.add(externalCommandCombo, gbc);
-
+ gbc.fill = GridBagConstraints.NONE;;
+ gbc.weightx=0.0;
+
+
// add button to execute external command
// i18n[popupeditableIoPanel.execute34=Execute]
JButton externalCommandButton = new JButton(s_stringMgr.getString("popupeditableIoPanel.execute34"));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|