You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by mg...@apache.org on 2014/12/18 22:21:16 UTC

isis git commit: ISIS-964 Use @ActionLayout#prototype=true instead of the deprecated @Prototype

Repository: isis
Updated Branches:
  refs/heads/master dff5c96da -> 4af93b081


ISIS-964 Use @ActionLayout#prototype=true instead of the deprecated @Prototype


Project: http://git-wip-us.apache.org/repos/asf/isis/repo
Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/4af93b08
Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/4af93b08
Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/4af93b08

Branch: refs/heads/master
Commit: 4af93b081bacb908a5a2ae1d4346a14557e52815
Parents: dff5c96
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Thu Dec 18 23:20:09 2014 +0200
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Thu Dec 18 23:20:09 2014 +0200

----------------------------------------------------------------------
 .../todoapp/dom/src/main/java/dom/todo/ToDoItem.java         | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/isis/blob/4af93b08/example/application/todoapp/dom/src/main/java/dom/todo/ToDoItem.java
----------------------------------------------------------------------
diff --git a/example/application/todoapp/dom/src/main/java/dom/todo/ToDoItem.java b/example/application/todoapp/dom/src/main/java/dom/todo/ToDoItem.java
index 98dbe91..2c79aee 100644
--- a/example/application/todoapp/dom/src/main/java/dom/todo/ToDoItem.java
+++ b/example/application/todoapp/dom/src/main/java/dom/todo/ToDoItem.java
@@ -40,6 +40,7 @@ import org.apache.isis.applib.Identifier;
 import org.apache.isis.applib.NonRecoverableException;
 import org.apache.isis.applib.RecoverableException;
 import org.apache.isis.applib.annotation.ActionInteraction;
+import org.apache.isis.applib.annotation.ActionLayout;
 import org.apache.isis.applib.annotation.ActionSemantics;
 import org.apache.isis.applib.annotation.ActionSemantics.Of;
 import org.apache.isis.applib.annotation.AutoComplete;
@@ -57,7 +58,6 @@ import org.apache.isis.applib.annotation.Optional;
 import org.apache.isis.applib.annotation.ParameterLayout;
 import org.apache.isis.applib.annotation.Programmatic;
 import org.apache.isis.applib.annotation.PropertyInteraction;
-import org.apache.isis.applib.annotation.Prototype;
 import org.apache.isis.applib.annotation.RegEx;
 import org.apache.isis.applib.annotation.TypicalLength;
 import org.apache.isis.applib.security.UserMemento;
@@ -638,7 +638,7 @@ public class ToDoItem implements Categorized, Comparable<ToDoItem> {
     //endregion
 
     //region > openSourceCodeOnGithub (action)
-    @Prototype
+    @ActionLayout(prototype = true)
     @ActionSemantics(Of.SAFE)
     public URL openSourceCodeOnGithub() throws MalformedURLException {
         return new URL("https://github.com/apache/isis/tree/master/example/application/todoapp/dom/src/main/java/dom/todo/ToDoItem.java");
@@ -652,8 +652,8 @@ public class ToDoItem implements Categorized, Comparable<ToDoItem> {
         RecoverableExceptionAutoEscalated,
         NonRecoverableException;
     }
-    
-    @Prototype
+
+    @ActionLayout(prototype = true)
     @ActionSemantics(Of.SAFE)
     public void demoException(
             final @ParameterLayout(named="Type") DemoExceptionType type) {