You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2011/07/04 13:17:23 UTC
svn commit: r1142627 - in
/incubator/isis/trunk/framework/src/site/resources/ide/eclipse/templates:
isis-templates.xml jmock2-templates.xml junit4-templates.xml
Author: danhaywood
Date: Mon Jul 4 11:17:23 2011
New Revision: 1142627
URL: http://svn.apache.org/viewvc?rev=1142627&view=rev
Log:
fixing Eclipse templates, since were broken
Modified:
incubator/isis/trunk/framework/src/site/resources/ide/eclipse/templates/isis-templates.xml
incubator/isis/trunk/framework/src/site/resources/ide/eclipse/templates/jmock2-templates.xml
incubator/isis/trunk/framework/src/site/resources/ide/eclipse/templates/junit4-templates.xml
Modified: incubator/isis/trunk/framework/src/site/resources/ide/eclipse/templates/isis-templates.xml
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/framework/src/site/resources/ide/eclipse/templates/isis-templates.xml?rev=1142627&r1=1142626&r2=1142627&view=diff
==============================================================================
--- incubator/isis/trunk/framework/src/site/resources/ide/eclipse/templates/isis-templates.xml (original)
+++ incubator/isis/trunk/framework/src/site/resources/ide/eclipse/templates/isis-templates.xml Mon Jul 4 11:17:23 2011
@@ -17,6 +17,7 @@
specific language governing permissions and limitations
under the License.
-->
+<templates><template autoinsert="true" context="java-members" deleted="false" description="Action" enabled="true" name="isa">// {{ ${actionName}
${:import(org.apache.isis.applib.annotation.MemberOrder)}@MemberOrder(sequence="1")
public ${ReturnType} ${actionName}(final ${ParameterType} ${parameterType}) {
return ${cursor}null; // TODO: business logic here
Modified: incubator/isis/trunk/framework/src/site/resources/ide/eclipse/templates/jmock2-templates.xml
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/framework/src/site/resources/ide/eclipse/templates/jmock2-templates.xml?rev=1142627&r1=1142626&r2=1142627&view=diff
==============================================================================
--- incubator/isis/trunk/framework/src/site/resources/ide/eclipse/templates/jmock2-templates.xml (original)
+++ incubator/isis/trunk/framework/src/site/resources/ide/eclipse/templates/jmock2-templates.xml Mon Jul 4 11:17:23 2011
@@ -17,6 +17,7 @@
specific language governing permissions and limitations
under the License.
-->
+<templates><template autoinsert="true" context="java" deleted="false" description="JMock2 Context field" enabled="true" name="jmcontext">${:import(org.jmock.Mockery,org.jmock.integration.junit4.JUnit4Mockery)}private Mockery context = new JUnit4Mockery();
</template><template autoinsert="true" context="java" deleted="false" description="JMock2 Expectations" enabled="true" name="jmexpectations">${:import(org.jmock.Expectations)}context.checking(new Expectations() {{
${cursor}
}});</template><template autoinsert="true" context="java" deleted="false" description="JMock2 Mock Definition" enabled="true" name="jmmock">${MockClass} ${mockObject} = context.mock(${MockClass}.class);</template><template autoinsert="true" context="java" deleted="false" description="JMock2 RunWith" enabled="true" name="jmrunwith">${:import(org.junit.runner.RunWith,org.jmock.integration.junit4.JMock)}@RunWith(JMock.class)</template></templates>
Modified: incubator/isis/trunk/framework/src/site/resources/ide/eclipse/templates/junit4-templates.xml
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/framework/src/site/resources/ide/eclipse/templates/junit4-templates.xml?rev=1142627&r1=1142626&r2=1142627&view=diff
==============================================================================
--- incubator/isis/trunk/framework/src/site/resources/ide/eclipse/templates/junit4-templates.xml (original)
+++ incubator/isis/trunk/framework/src/site/resources/ide/eclipse/templates/junit4-templates.xml Mon Jul 4 11:17:23 2011
@@ -17,6 +17,7 @@
specific language governing permissions and limitations
under the License.
-->
+<templates><template autoinsert="true" context="java" deleted="false" description="JUnit4 After Method" enabled="true" name="juafter">${:import(org.junit.After)}@After
public void tearDown() throws Exception {
${cursor}
}