cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ksen...@apache.org
Subject svn commit: r1159871 - /cayenne/main/trunk/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/action/DefaultActionManager.java
Date Sat, 20 Aug 2011 11:55:32 GMT
Author: kseniak
Date: Sat Aug 20 11:55:32 2011
New Revision: 1159871

URL: http://svn.apache.org/viewvc?rev=1159871&view=rev
Log:
CAY-1554. Fixed "Unsupported operation exception" because of attempt to modify unmodificable
collections.

Modified:
    cayenne/main/trunk/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/action/DefaultActionManager.java

Modified: cayenne/main/trunk/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/action/DefaultActionManager.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/action/DefaultActionManager.java?rev=1159871&r1=1159870&r2=1159871&view=diff
==============================================================================
--- cayenne/main/trunk/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/action/DefaultActionManager.java
(original)
+++ cayenne/main/trunk/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/action/DefaultActionManager.java
Sat Aug 20 11:55:32 2011
@@ -133,18 +133,20 @@ public class DefaultActionManager implem
     }
 
     private void initActions() {
-        SPECIAL_ACTIONS = Arrays.asList(
+        SPECIAL_ACTIONS = new HashSet<String>();
+
+        SPECIAL_ACTIONS.addAll(Arrays.asList(
                 SaveAction.class.getName(),
                 UndoAction.class.getName(),
-                RedoAction.class.getName());
+                RedoAction.class.getName()));
 
-        // search action added to project actions
-        PROJECT_ACTIONS = Arrays.asList(
+        PROJECT_ACTIONS = new HashSet<String>();
+        PROJECT_ACTIONS.addAll(Arrays.asList(
                 RevertAction.class.getName(),
                 ProjectAction.class.getName(),
                 ValidateAction.class.getName(),
                 SaveAsAction.class.getName(),
-                FindAction.class.getName());
+                FindAction.class.getName()));
 
         DOMAIN_ACTIONS = new HashSet<String>(PROJECT_ACTIONS);
         DOMAIN_ACTIONS.addAll(Arrays.asList(



Mime
View raw message