cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ntimof...@apache.org
Subject [6/9] cayenne git commit: CAY-2454 Modeler: Unable to read validation message if it's truncated
Date Wed, 29 Aug 2018 11:39:34 GMT
CAY-2454 Modeler: Unable to read validation message if it's truncated


Project: http://git-wip-us.apache.org/repos/asf/cayenne/repo
Commit: http://git-wip-us.apache.org/repos/asf/cayenne/commit/6f8513ca
Tree: http://git-wip-us.apache.org/repos/asf/cayenne/tree/6f8513ca
Diff: http://git-wip-us.apache.org/repos/asf/cayenne/diff/6f8513ca

Branch: refs/heads/STABLE-4.0
Commit: 6f8513cab9b75dd25a0258afeaf7ec3ab72b69df
Parents: 9aaad9c
Author: Nikita Timofeev <stariy95@gmail.com>
Authored: Wed Aug 29 14:17:19 2018 +0300
Committer: Nikita Timofeev <stariy95@gmail.com>
Committed: Wed Aug 29 14:17:19 2018 +0300

----------------------------------------------------------------------
 RELEASE-NOTES.txt                               |  3 +-
 .../dialog/validator/ValidatorDialog.java       | 39 ++++++++++----------
 2 files changed, 21 insertions(+), 21 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne/blob/6f8513ca/RELEASE-NOTES.txt
----------------------------------------------------------------------
diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt
index be528a3..181b90b 100644
--- a/RELEASE-NOTES.txt
+++ b/RELEASE-NOTES.txt
@@ -17,7 +17,8 @@ Bug Fixes:
 CAY-2449 Modeler: Needless scrollbar in Generate DB Schema result menu
 CAY-2450 Modeler: Impossible to update Attribute title after syncing ObjEntity
 CAY-2451 Modeler: ObjEntity "Edit" button doesn't open editor for Relationship
-CAY-2459 Paste function is not working
+CAY-2454 Modeler: Unable to read validation message if it's truncated
+CAY-2459 Modeler: DataMap Paste function is not working
 CAY-2464 ClassCastException when returning PRUNED_NODE in expression transformer
 
 ----------------------------------

http://git-wip-us.apache.org/repos/asf/cayenne/blob/6f8513ca/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/dialog/validator/ValidatorDialog.java
----------------------------------------------------------------------
diff --git a/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/dialog/validator/ValidatorDialog.java
b/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/dialog/validator/ValidatorDialog.java
index d4fda65..8e83718 100644
--- a/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/dialog/validator/ValidatorDialog.java
+++ b/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/dialog/validator/ValidatorDialog.java
@@ -19,16 +19,14 @@
 
 package org.apache.cayenne.modeler.dialog.validator;
 
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.FlowLayout;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.MouseAdapter;
-import java.awt.event.MouseEvent;
-import java.util.Collections;
-import java.util.List;
+import com.jgoodies.forms.builder.PanelBuilder;
+import com.jgoodies.forms.layout.CellConstraints;
+import com.jgoodies.forms.layout.FormLayout;
+import org.apache.cayenne.modeler.Application;
+import org.apache.cayenne.modeler.CayenneModelerFrame;
+import org.apache.cayenne.modeler.action.ValidateAction;
+import org.apache.cayenne.modeler.util.CayenneDialog;
+import org.apache.cayenne.validation.ValidationFailure;
 
 import javax.swing.JButton;
 import javax.swing.JDialog;
@@ -40,16 +38,16 @@ import javax.swing.event.ListSelectionEvent;
 import javax.swing.event.ListSelectionListener;
 import javax.swing.table.AbstractTableModel;
 import javax.swing.table.DefaultTableCellRenderer;
-
-import org.apache.cayenne.modeler.Application;
-import org.apache.cayenne.modeler.CayenneModelerFrame;
-import org.apache.cayenne.modeler.action.ValidateAction;
-import org.apache.cayenne.modeler.util.CayenneDialog;
-import org.apache.cayenne.validation.ValidationFailure;
-
-import com.jgoodies.forms.builder.PanelBuilder;
-import com.jgoodies.forms.layout.CellConstraints;
-import com.jgoodies.forms.layout.FormLayout;
+import java.awt.BorderLayout;
+import java.awt.Color;
+import java.awt.Component;
+import java.awt.FlowLayout;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.awt.event.MouseAdapter;
+import java.awt.event.MouseEvent;
+import java.util.Collections;
+import java.util.List;
 
 /**
  * Dialog for displaying validation errors.
@@ -217,6 +215,7 @@ public class ValidatorDialog extends CayenneDialog {
             if (value != null) {
                 ValidationFailure info = (ValidationFailure) value;
                 value = info.getDescription();
+                setToolTipText(info.getDescription());
             }
 
             setBackground(error ? ERROR_COLOR : WARNING_COLOR);


Mime
View raw message