Repository: cayenne
Updated Branches:
  refs/heads/master 67aad8a98 -> 125a9a813


CAY-2419

Fix not changing highlight on selecting search results within one entity.


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

Branch: refs/heads/master
Commit: 8ac6029c2a803271117f037e14bbd134988ad7da
Parents: 67aad8a
Author: kkomyak <const1...@gmail.com>
Authored: Wed Apr 4 12:06:12 2018 +0300
Committer: kkomyak <const1...@gmail.com>
Committed: Fri Apr 6 12:15:56 2018 +0300

----------------------------------------------------------------------
 RELEASE-NOTES.txt                                             | 1 +
 .../java/org/apache/cayenne/modeler/action/FindAction.java    | 7 +++++++
 2 files changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne/blob/8ac6029c/RELEASE-NOTES.txt
----------------------------------------------------------------------
diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt
index 3dfbdbc..21bac86 100644
--- a/RELEASE-NOTES.txt
+++ b/RELEASE-NOTES.txt
@@ -47,6 +47,7 @@ CAY-2397 Modeler: Unable to set enum:value as Entity qualifier
 CAY-2401 Modeler: NPE in ObjEntity sync action
 CAY-2405 Broken prefetch of entity with inheritance and attribute with custom 
java type
 CAY-2411 Wrong resolution of ExtendedType with ValueObjectType for inherited 
class
+CAY-2419 Not changing highlight on selecting search results within one entity
 CAY-2420 Modeler: search is not performed for Stored Procedures
 
 ----------------------------------

http://git-wip-us.apache.org/repos/asf/cayenne/blob/8ac6029c/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/action/FindAction.java
----------------------------------------------------------------------
diff --git 
a/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/action/FindAction.java
 
b/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/action/FindAction.java
index 0da14eb..70e9b76 100755
--- 
a/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/action/FindAction.java
+++ 
b/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/action/FindAction.java
@@ -279,8 +279,10 @@ public class FindAction extends CayenneAction {
             event.setMainTabFocus(true);
             if(searchResultEntry.getObject() instanceof DbAttribute) {
                 editor.getDbDetailView().currentDbAttributeChanged(event);
+                editor.getDbDetailView().repaint();
             } else {
                 editor.getObjDetailView().currentObjAttributeChanged(event);
+                editor.getObjDetailView().repaint();
             }
         } else if (searchResultEntry.getObject() instanceof Relationship) {
             RelationshipDisplayEvent event = new 
RelationshipDisplayEvent(editor.getProjectTreeView(),
@@ -288,8 +290,10 @@ public class FindAction extends CayenneAction {
             event.setMainTabFocus(true);
             if(searchResultEntry.getObject() instanceof DbRelationship) {
                 editor.getDbDetailView().currentDbRelationshipChanged(event);
+                editor.getDbDetailView().repaint();
             } else {
                 editor.getObjDetailView().currentObjRelationshipChanged(event);
+                editor.getObjDetailView().repaint();
             }
         }
     }
@@ -302,6 +306,7 @@ public class FindAction extends CayenneAction {
                 embeddable, attribute, map, domain);
         event.setMainTabFocus(true);
         editor.getEmbeddableView().currentEmbeddableAttributeChanged(event);
+        editor.getEmbeddableView().repaint();
     }
 
     private static void jumpToEmbeddableResult(Embeddable embeddable, 
EditorView editor, DataChannelDescriptor domain) {
@@ -337,6 +342,7 @@ public class FindAction extends CayenneAction {
         buildAndSelectTreePath(map, procedure, editor);
         ProcedureDisplayEvent event = new 
ProcedureDisplayEvent(editor.getProjectTreeView(), procedure, map, domain);
         editor.getProcedureView().currentProcedureChanged(event);
+        editor.getProcedureView().repaint();
     }
 
     private static void jumpToProcedureResult(ProcedureParameter parameter, 
EditorView editor, DataChannelDescriptor domain) {
@@ -346,6 +352,7 @@ public class FindAction extends CayenneAction {
         ProcedureParameterDisplayEvent event =
                 new 
ProcedureParameterDisplayEvent(editor.getProjectTreeView(), parameter, 
procedure, map, domain);
         editor.getProcedureView().currentProcedureParameterChanged(event);
+        editor.getProcedureView().repaint();
     }
 
     /**

Reply via email to