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 2015/11/25 10:57:21 UTC
[1/3] isis git commit: ISIS-1243: updating live templates for
IntelliJ, also adding file templates
Repository: isis
Updated Branches:
refs/heads/master d8473972e -> f5a5de6c2
http://git-wip-us.apache.org/repos/asf/isis/blob/f5a5de6c/adocs/documentation/src/main/asciidoc/resources/templates/isis-templates2.xml
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/resources/templates/isis-templates2.xml b/adocs/documentation/src/main/asciidoc/resources/templates/isis-templates2.xml
deleted file mode 100644
index 8724f6e..0000000
--- a/adocs/documentation/src/main/asciidoc/resources/templates/isis-templates2.xml
+++ /dev/null
@@ -1,479 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="true" context="java-members" deleted="false" description="Action" enabled="true" name="isa">// //////////////////////////////////////
-// ${actionName} (action)
-// //////////////////////////////////////
-
-${:import(org.apache.isis.applib.annotation.MemberOrder)}@MemberOrder(sequence="1")
-public ${ReturnType} ${actionName}(final ${ParameterType} ${parameterType}) {
- return ${cursor}null; // TODO: business logic here
-}
-
-</template><template autoinsert="true" context="java-members" deleted="false" description="Action argument N choices" enabled="true" name="isacho">${:import(java.util.Collections,java.util.List)}public List<${ParameterType}> choices${ParameterNumThenCapitalizedActionName}() {
- return ${cursor}Collections.emptyList(); // TODO: return list of choices for argument N
-}</template><template autoinsert="true" context="java-members" deleted="false" description="Action argument defaults" enabled="true" name="isadef">public ${ParameterType} default${ParameterNumThenCapitalizedActionName}() {
- return ${cursor}null; // TODO: return default for argument N
-}</template><template autoinsert="true" context="java-members" deleted="false" description="Action disabling" enabled="true" name="isadis">public String disable${ActionName}() {
- return ${cursor}null; // TODO: return reason why action disabled, null if enabled
-}</template><template autoinsert="true" context="java-members" deleted="false" description="Action hiding" enabled="true" name="isahid">public boolean hide${ActionName}() {
- return ${cursor}false; // TODO: return true if action is hidden, false if visible
-}</template><template autoinsert="true" context="java-members" deleted="false" description="Action validation" enabled="true" name="isaval">public String validate${ActionName}(final ${ParameterType} ${parameterType}) {
- return ${cursor}null; // TODO: return reason why action arguments are invalid, null if ok
-}</template><template autoinsert="true" context="java-members" deleted="false" description="Collection (1:m bidir parent)" enabled="true" name="isc-1m">public void addTo${ChildCollectionName}(final ${ChildElementType} ${childElementName}) {
- // check for no-op
- if (${childElementName} == null ||
- get${ChildCollectionName}().contains(${childElementName})) {
- return;
- }
- // dissociate arg from its current parent (if any).
- ${childElementName}.clear${ParentPropertyNameInChild}();
- // associate arg
- ${childElementName}.set${ParentPropertyNameInChild}(this);
- get${ChildCollectionName}().add(${childElementName});
- // additional business logic
- onAddTo${ChildCollectionName}(${childElementName});
-}
-public void removeFrom${ChildCollectionName}(final ${ChildElementType} ${childElementName}) {
- // check for no-op
- if (${childElementName} == null ||
- !get${ChildCollectionName}().contains(${childElementName})) {
- return;
- }
- // dissociate arg
- ${childElementName}.set${ParentPropertyNameInChild}(null);
- get${ChildCollectionName}().remove(${childElementName});
- // additional business logic
- onRemoveFrom${ChildCollectionName}(${childElementName});
-}</template><template autoinsert="true" context="java-members" deleted="false" description="JDO Collection (set - 1:n bidir, foreign key)" enabled="true" name="isc-jdo-1n-b-fk">// //////////////////////////////////////
-// ${collectionName} (collection)
-// //////////////////////////////////////
-
-${:import(java.util.SortedSet,java.util.TreeSet,org.apache.isis.applib.annotation.MemberOrder,javax.jdo.annotations.Persistent)}@Persistent(mappedBy="${elementNameInChild}", dependentElement="${trueOrFalse}")
-private SortedSet<${ElementType}> ${collectionName} = new TreeSet<${ElementType}>();
-@MemberOrder(sequence="1")
-public SortedSet<${ElementType}> get${CollectionName}() {
-return ${collectionName};
-}
-public void set${CollectionName}(final SortedSet<${ElementType}> ${collectionName}) {
-this.${collectionName} = ${collectionName};
-}
-
-
-</template><template autoinsert="true" context="java-members" deleted="false" description="JDO Collection (set - 1:n bidir, join table)" enabled="true" name="isc-jdo-1n-b-jt">// //////////////////////////////////////
-// ${collectionName} (collection)
-// //////////////////////////////////////
-
-${:import(java.util.SortedSet,java.util.TreeSet,org.apache.isis.applib.annotation.MemberOrder,javax.jdo.annotations.Persitent,javax.jdo.annotations.Join)}@Persistent(mappedBy="${elementNameInChild}", dependentElement="${trueOrFalse}")
-@Join
-private SortedSet<${ElementType}> ${collectionName} = new TreeSet<${ElementType}>();
-@MemberOrder(sequence="1")
-public SortedSet<${ElementType}> get${CollectionName}() {
-return ${collectionName};
-}
-public void set${CollectionName}(final SortedSet<${ElementType}> ${collectionName}) {
-this.${collectionName} = ${collectionName};
-}
-
-
-</template><template autoinsert="true" context="java-members" deleted="false" description="JDO Collection (set - 1:n unidir, foreign key)" enabled="true" name="isc-jdo-1n-u-fk">// //////////////////////////////////////
-// ${collectionName} (collection)
-// //////////////////////////////////////
-
-${:import(java.util.SortedSet,java.util.TreeSet,org.apache.isis.applib.annotation.MemberOrder,javax.jdo.annotations.Element)}
-@Element(column="${ColumnName}", dependent="${trueOrFalse}")
-private SortedSet<${ElementType}> ${collectionName} = new TreeSet<${ElementType}>();
-@MemberOrder(sequence="1")
-public SortedSet<${ElementType}> get${CollectionName}() {
-return ${collectionName};
-}
-public void set${CollectionName}(final SortedSet<${ElementType}> ${collectionName}) {
-this.${collectionName} = ${collectionName};
-}
-
-
-</template><template autoinsert="true" context="java-members" deleted="false" description="JDO Collection (set - 1:n unidir, join table)" enabled="true" name="isc-jdo-1n-u-jt">// //////////////////////////////////////
-// ${collectionName} (collection)
-// //////////////////////////////////////
-
-${:import(java.util.SortedSet,java.util.TreeSet,org.apache.isis.applib.annotation.MemberOrder,javax.jdo.annotations.Join,javax.jdo.annotations.Element)}@Join
-@Element(dependent="${trueOrFalse}")
-private SortedSet<${ElementType}> ${collectionName} = new TreeSet<${ElementType}>();
-@MemberOrder(sequence="1")
-public SortedSet<${ElementType}> get${CollectionName}() {
-return ${collectionName};
-}
-public void set${CollectionName}(final SortedSet<${ElementType}> ${collectionName}) {
-this.${collectionName} = ${collectionName};
-}
-
-
-</template><template autoinsert="true" context="java-members" deleted="false" description="JDO Collection (set - m:n bidir - child)" enabled="true" name="isc-jdo-mn-ub-c">// //////////////////////////////////////
-// ${collectionName} (collection)
-// //////////////////////////////////////
-
-${:import(java.util.SortedSet,java.util.TreeSet,org.apache.isis.applib.annotation.MemberOrder,javax.jdo.annotations.Persistent)}@Persistent(mappedBy="${ChildCollectionNameInParent}")
-private SortedSet<${ElementType}> ${collectionName} = new TreeSet<${ElementType}>();
-public SortedSet<${ElementType}> get${CollectionName}() {
-return ${collectionName};
-}
-public void set${CollectionName}(final SortedSet<${ElementType}> ${collectionName}) {
-this.${collectionName} = ${collectionName};
-}
-
-
-</template><template autoinsert="true" context="java-members" deleted="false" description="JDO Collection (set - m:n unidir & bidir - parent)" enabled="true" name="isc-jdo-mn-ub-p">// //////////////////////////////////////
-// ${collectionName} (collection)
-// //////////////////////////////////////
-
-${:import(java.util.SortedSet,java.util.TreeSet,org.apache.isis.applib.annotation.MemberOrder,javax.jdo.annotations.Persistent,javax.jdo.annotations.Join,javax.jdo.annotations.Element)}@Persistent(table="${TableName}")
-@Join(column="${ThisEntityFieldName}")
-@Element(column="${RelatedEntityFieldName}")
-private SortedSet<${ElementType}> ${collectionName} = new TreeSet<${ElementType}>();@MemberOrder(sequence="1")
-
-public SortedSet<${ElementType}> get${CollectionName}() {
- return ${collectionName};
-}
-public void set${CollectionName}(final SortedSet<${ElementType}> ${collectionName}) {
- this.${collectionName} = ${collectionName};
-}
-
-
-</template><template autoinsert="true" context="java-members" deleted="false" description="Collection (m:m bidir child)" enabled="true" name="isc-mmc">public void addTo${ParentCollectionName}(final ${ParentElementType} ${parentElementName}) {
- // check for no-op
- if (${parentElementName} == null ||
- get${ParentCollectionName}().contains(${parentElementName})) {
- return;
- }
- // delegate to parent to add
- ${parentElementName}.addTo${ChildCollectionNameInParent}(this);
- // additional business logic
- onAddTo${ParentCollectionName}(${parentElementName});
-}
-public void removeFrom${ParentCollectionName}(final ${ParentElementType} ${parentElementName}) {
- // check for no-op
- if (${parentElementName} == null ||
- !get${ParentCollectionName}().contains(${parentElementName})) {
- return;
- }
- // delegate to parent to remove
- ${parentElementName}.removeFrom${ChildCollectionNameInParent}(this);
- // additional business logic
- onRemoveFrom${ParentCollectionName}(${parentElementName});
-}</template><template autoinsert="true" context="java-members" deleted="false" description="Collection (m:m bidir parent)" enabled="true" name="isc-mmp">public void addTo${ChildCollectionName}(final ${ChildElementType} ${childElementName}) {
- // check for no-op
- if (${childElementName} == null ||
- get${ChildCollectionName}().contains(${childElementName})) {
- return;
- }
- // dissociate arg from its current parent (if any).
- ${childElementName}.removeFrom${ParentCollectionNameInChild}(this);
- // associate arg
- ${childElementName}.get${ParentCollectionNameInChild}().add(this);
- get${ChildCollectionName}().add(${childElementName});
- // additional business logic
- onAddTo${ChildCollectionName}(${childElementName});
-}
-public void removeFrom${ChildCollectionName}(final ${ChildElementType} ${childElementName}) {
- // check for no-op
- if (${childElementName} == null ||
- !get${ChildCollectionName}().contains(${childElementName})) {
- return;
- }
- // dissociate arg
- ${childElementName}.get${ParentCollectionNameInChild}().remove(this);
- get${ChildCollectionName}().remove(${childElementName});
- // additional business logic
- onRemoveFrom${ChildCollectionName}(${childElementName});
-}</template><template autoinsert="true" context="java-members" deleted="false" description="Collection disabling" enabled="true" name="iscdis">public String disable${CollectionName}() {
- return ${cursor}null; // TODO: return reason why collection read-only, null if editable
-}</template><template autoinsert="true" context="java-members" deleted="false" description="Collection hiding" enabled="true" name="ischid">public boolean hide${CollectionName}() {
- return ${cursor}false; // TODO: return true if hidden, false otherwise
-}</template><template autoinsert="true" context="java-members" deleted="false" description="Collection (list)" enabled="true" name="iscl">// //////////////////////////////////////
-// ${collectionName} (collection)
-// //////////////////////////////////////
-
-${:import(java.util.List,java.util.ArrayList,org.apache.isis.applib.annotation.MemberOrder)}private List<${ElementType}> ${collectionName} = new ArrayList<${ElementType}>();
-@MemberOrder(sequence="1")
-public List<${ElementType}> get${CollectionName}() {
- return ${collectionName};
-}
-public void set${CollectionName}(final List<${ElementType}> ${collectionName}) {
- this.${collectionName} = ${collectionName};
-}
-
-
-</template><template autoinsert="true" context="java-members" deleted="false" description="Collection modify" enabled="true" name="iscmod">public void addTo${CollectionName}(final ${ElementType} ${elementName}) {
- // check for no-op
- if (${elementName} == null ||
- get${CollectionName}().contains(${elementName})) {
- return;
- }
- // associate new
- get${CollectionName}().add(${elementName});
- // additional business logic
- onAddTo${CollectionName}(${elementName});
-}
-public void removeFrom${CollectionName}(final ${ElementType} ${elementName}) {
- // check for no-op
- if (${elementName} == null ||
- !get${CollectionName}().contains(${elementName})) {
- return;
- }
- // dissociate existing
- get${CollectionName}().remove(${elementName});
- // additional business logic
- onRemoveFrom${CollectionName}(${elementName});
-}
-protected void onAddTo${CollectionName}(final ${ElementType} ${elementName}) {
-}
-protected void onRemoveFrom${CollectionName}(final ${ElementType} ${elementName}) {
-}</template><template autoinsert="true" context="java-members" deleted="false" description="Collection (set)" enabled="true" name="iscs">// //////////////////////////////////////
-// ${collectionName} (collection)
-// //////////////////////////////////////
-
-${:import(java.util.Set,java.util.LinkedHashSet,org.apache.isis.applib.annotation.MemberOrder)}private Set<${ElementType}> ${collectionName} = new LinkedHashSet<${ElementType}>();
-@MemberOrder(sequence="1")
-public Set<${ElementType}> get${CollectionName}() {
- return ${collectionName};
-}
-public void set${CollectionName}(final Set<${ElementType}> ${collectionName}) {
- this.${collectionName} = ${collectionName};
-}
-
-
-</template><template autoinsert="true" context="java-members" deleted="false" description="Collection validation" enabled="true" name="iscval">public String validateAddTo${CollectionName}(final ${ElementType} ${elementName}) {
- return ${cursor}null; // TODO: return reason why argument cannot be added, null if ok to add
-}
-public String validateRemoveFrom${CollectionName}(final ${ElementType} ${elementName}) {
- return null; // TODO: return reason why argument cannot be removed, null if ok to remove
-}
-
-</template><template autoinsert="true" context="java-members" deleted="false" description="Dependencies region" enabled="true" name="isd">// //////////////////////////////////////
-// injected dependencies
-// //////////////////////////////////////
-
-${cursor}
-
-
-</template><template autoinsert="true" context="java-members" deleted="false" description="Dependencies - injected service" enabled="true" name="isds">private ${ServiceType} ${serviceType};
-public final void inject${ServiceType}(final ${ServiceType} ${serviceType}) {
- this.${serviceType} = ${serviceType};
-}
-
-
-</template><template autoinsert="true" context="java-members" deleted="false" description="Factory - new instance (persistent)" enabled="true" name="isfp">public ${Type} new${Type}() {
- ${Type} ${type} = newTransientInstance(${Type}.class);
- ${cursor}// TODO: set up any properties
-
- persistIfNotAlready(${type});
- return ${type};
-}
-</template><template autoinsert="true" context="java-members" deleted="false" description="Factory - new instance (transient)" enabled="true" name="isft">public ${Type} new${InstanceOfType}() {
- ${Type} ${type} = newTransientInstance(${Type}.class);
- ${cursor}// TODO: set up any properties
-
- return ${type};
-}
-
-</template><template autoinsert="true" context="java-members" deleted="false" description="Identification region" enabled="true" name="isid">// //////////////////////////////////////
-// Identification
-// //////////////////////////////////////
-
-${cursor}
-
-
-</template><template autoinsert="true" context="java-members" deleted="false" description="Identification - icon" enabled="true" name="isidicon">public String iconName() {
- return ${cursor}null; // TODO: return name of image file (without suffix)
-}</template><template autoinsert="true" context="java-members" deleted="false" description="Identification - title" enabled="true" name="isidtitle">public String title() {
- ${:import(org.apache.isis.applib.util.TitleBuffer)}final TitleBuffer buf = new TitleBuffer();
- ${cursor}// TODO: append to TitleBuffer, typically value properties
- return buf.toString();
-}</template><template autoinsert="true" context="java-members" deleted="false" description="Lifecycle region" enabled="true" name="isl">// //////////////////////////////////////
-// Lifecycle methods
-// //////////////////////////////////////
-
-${cursor}
-
-
-</template><template autoinsert="true" context="java-members" deleted="false" description="Lifecycle - create" enabled="true" name="islc">public void created() {
- ${cursor}// TODO: post-create
-}</template><template autoinsert="true" context="java-members" deleted="false" description="Lifecycle - load" enabled="true" name="isll">public void loading() {
- ${cursor}// TODO: pre-load
-}
-public void loaded() {
- // TODO: post-load
-}</template><template autoinsert="true" context="java-members" deleted="false" description="Lifecycle - persist" enabled="true" name="islp">public void persisting() {
- ${cursor}// TODO: pre-persist
-}
-public void persisted() {
- // TODO: post-persist
-}</template><template autoinsert="true" context="java-members" deleted="false" description="Lifecycle - remove" enabled="true" name="islr">public void removing() {
- ${cursor}// TODO: pre-remove
-}
-public void removed() {
- // TODO: post-remove
-}</template><template autoinsert="true" context="java-members" deleted="false" description="Lifecycle - update" enabled="true" name="islu">public void updating() {
- ${cursor}// TODO: pre-update
-}
-public void updated() {
- // TODO: post-update
-}</template><template autoinsert="true" context="java-members" deleted="false" description="Property" enabled="true" name="isp">// //////////////////////////////////////
-// ${propertyName} (property)
-// //////////////////////////////////////
-
-private ${PropertyType} ${propertyName};
-${:import(org.apache.isis.applib.annotation.MemberOrder)}@MemberOrder(sequence="1")
-public ${PropertyType} get${PropertyName}() {
- return ${propertyName};
-}
-public void set${PropertyName}(final ${PropertyType} ${propertyName}) {
- this.${propertyName} = ${propertyName};
-}
-
-
-</template><template autoinsert="true" context="java-members" deleted="false" description="Property (1:1 bidir child)" enabled="true" name="isp-11c">public void modify${ParentPropertyName}(final ${ParentPropertyType} ${parentPropertyName}) {
- ${ParentPropertyType} current${ParentPropertyName} = get${ParentPropertyName}();
- // check for no-op
- if (${parentPropertyName} == null ||
- ${parentPropertyName}.equals(current${ParentPropertyName})) {
- return;
- }
- // delegate to parent to associate
- ${parentPropertyName}.modify${ChildPropertyNameInParent}(this);
- // additional business logic
- onModify${ParentPropertyName}(current${ParentPropertyName}, ${parentPropertyName});
-}
-public void clear${PropertyName}() {
- ${ParentPropertyType} current${ParentPropertyName} = get${ParentPropertyName}();
- // check for no-op
- if (current${ParentPropertyName} == null) {
- return;
- }
- // delegate to parent to dissociate
- current${ParentPropertyName}.clear${ChildPropertyNameInParent}();
- // additional business logic
- onClear${ParentPropertyName}(current${ParentPropertyName});
-}</template><template autoinsert="true" context="java-members" deleted="false" description="Property (1:1 bidir parent)" enabled="true" name="isp-11p">public void modify${ChildPropertyName}(final ${ChildPropertyType} ${childPropertyName}) {
- ${ChildPropertyType} current${ChildPropertyName} = get${ChildPropertyName}();
- // check for no-op
- if (${childPropertyName} == null ||
- ${childPropertyName}.equals(current${ChildPropertyName})) {
- return;
- }
- // dissociate existing
- clear${ChildPropertyName}();
- // associate new
- ${childPropertyName}.set${ParentPropertyNameInChild}(this);
- set${ChildPropertyName}(${childPropertyName});
- // additional business logic
- onModify${ChildPropertyName}(current${ChildPropertyName}, ${childPropertyName});
-}
-public void clear${ChildPropertyName}() {
- ${ChildPropertyType} current${ChildPropertyName} = get${ChildPropertyName}();
- // check for no-op
- if (current${ChildPropertyName} == null) {
- return;
- }
- // dissociate existing
- current${ChildPropertyName}.set${ParentPropertyNameInChild}(null);
- set${ChildPropertyName}(null);
- // additional business logic
- onClear${ChildPropertyName}(current${ChildPropertyName});
-}</template><template autoinsert="true" context="java-members" deleted="false" description="Property (m:1 bidir child)" enabled="true" name="isp-m1">public void modify${ParentPropertyName}(final ${ParentPropertyType} ${parentPropertyName}) {
- ${ParentPropertyType} current${ParentPropertyName} = get${ParentPropertyName}();
- // check for no-op
- if (${parentPropertyName} == null ||
- ${parentPropertyName}.equals(current${ParentPropertyName})) {
- return;
- }
- // delegate to parent to associate
- ${parentPropertyName}.addTo${ChildCollectionNameInParent}(this);
- // additional business logic
- onModify${ParentPropertyName}(current${ParentPropertyName}, ${parentPropertyName});
-}
-public void clear${ParentPropertyName}() {
- ${ParentPropertyType} current${ParentPropertyName} = get${ParentPropertyName}();
- // check for no-op
- if (current${ParentPropertyName} == null) {
- return;
- }
- // delegate to parent to dissociate
- current${ParentPropertyName}.removeFrom${ChildCollectionNameInParent}(this);
- // additional business logic
- onClear${ParentPropertyName}(current${ParentPropertyName});
-}</template><template autoinsert="true" context="java-members" deleted="false" description="Property choices" enabled="true" name="ispcho">${:import(java.util.List)}public List<${PropertyType}> choices${PropertyName}() {
- return ${cursor}null; // TODO: return list of choices for property
-}</template><template autoinsert="true" context="java-members" deleted="false" description="Property defaults" enabled="true" name="ispdef">public ${PropertyType} default${PropertyName}() {
- return ${cursor}null; // TODO: return default for property when first created
-}</template><template autoinsert="true" context="java-members" deleted="false" description="Property disabling" enabled="true" name="ispdis">public String disable${PropertyName}() {
- return ${cursor}null; // TODO: return reason why property is disabled, null if editable
-}</template><template autoinsert="true" context="java-members" deleted="false" description="Property hiding" enabled="true" name="isphid">public boolean hide${PropertyName}() {
- return ${cursor}false; // TODO: return true if hidden, false if visible
-}</template><template autoinsert="true" context="java-members" deleted="false" description="Property modify" enabled="true" name="ispmod">public void modify${PropertyName}(final ${PropertyType} ${propertyName}) {
- ${PropertyType} current${PropertyName} = get${PropertyName}();
- // check for no-op
- if (${propertyName} == null ||
- ${propertyName}.equals(current${PropertyName})) {
- return;
- }
- // associate new
- set${PropertyName}(${propertyName});
- // additional business logic
- onModify${PropertyName}(current${PropertyName}, ${propertyName});
-}
-public void clear${PropertyName}() {
- ${PropertyType} current${PropertyName} = get${PropertyName}();
- // check for no-op
- if (current${PropertyName} == null) {
- return;
- }
- // dissociate existing
- set${PropertyName}(null);
- // additional business logic
- onClear${PropertyName}(current${PropertyName});
-}
-protected void onModify${PropertyName}(final ${PropertyType} old${PropertyName}, final ${PropertyType} new${PropertyName}) {
-}
-protected void onClear${PropertyName}(final ${PropertyType} old${PropertyName}) {
-}</template><template autoinsert="true" context="java-members" deleted="false" description="Property validation" enabled="true" name="ispval">public String validate${PropertyName}(final ${PropertyType} ${propertyName}) {
- if (${propertyName} == null) return null;
- return ${cursor}null; // TODO: return reason why proposed value is invalid, null if valid
-}</template><template autoinsert="true" context="java-members" deleted="false" description="Search for all" enabled="true" name="issa">// //////////////////////////////////////
-// all ${TypePlural}
-// //////////////////////////////////////
-
-${:import(org.apache.isis.applib.annotation.Prototype,java.util.List)}@Prototype
-public List<${Type}> all${TypePlural}() {
- return allInstances(${Type}.class);
-}
-
-
-</template><template autoinsert="true" context="java-members" deleted="false" description="Search for all matching" enabled="true" name="issafil">// //////////////////////////////////////
-// all ${TypePlural} that ${filterDescription}
-// //////////////////////////////////////
-
-${:import(org.apache.isis.applib.annotation.Prototype,org.apache.isis.applib.Filter,java.util.List)}@Prototype
-public List<${Type}> all${TypePlural}Matching(final Filter<${Type}> filter) {
- return allMatches(${Type}.class, filter);
-}
-
-
-</template><template autoinsert="true" context="java-members" deleted="false" description="Search for first matching" enabled="true" name="issffil">// //////////////////////////////////////
-// first ${Type} that ${filterDescription}
-// //////////////////////////////////////
-
-${:import(org.apache.isis.applib.annotation.Prototype,org.apache.isis.applib.Filter,java.util.List)}@Prototype
-public ${Type} first${Type}Matching(final Filter<${Type}> filter) {
- return firstMatch(${Type}.class, filter);
-}
-
-</template><template autoinsert="true" context="java-members" deleted="false" description="Search for unique matching" enabled="true" name="issufil">// //////////////////////////////////////
-// unique ${Type} that ${filterDescription}
-// //////////////////////////////////////
-
-${:import(org.apache.isis.applib.annotation.Exploration,org.apache.isis.applib.Filter,java.util.List)}@Exploration
-public ${Type} unique${Type}Matching(final Filter<${Type}> filter) {
- return uniqueMatch(${Type}.class, filter);
-}
-
-</template><template autoinsert="true" context="java-members" deleted="false" description="Object-level validation" enabled="true" name="isval">public String validate() {
- ${cursor}// TODO: return reason why object is in invalid state (and so cannot be saved/updated), or null if ok
-}</template></templates>
\ No newline at end of file
[3/3] isis git commit: ISIS-1243: updating live templates for
IntelliJ, also adding file templates
Posted by da...@apache.org.
ISIS-1243: updating live templates for IntelliJ, also adding file templates
Project: http://git-wip-us.apache.org/repos/asf/isis/repo
Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/f5a5de6c
Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/f5a5de6c
Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/f5a5de6c
Branch: refs/heads/master
Commit: f5a5de6c21c39b207da70e28c9e6a8512b65a994
Parents: d847397
Author: Dan Haywood <da...@haywood-associates.co.uk>
Authored: Wed Nov 25 09:57:02 2015 +0000
Committer: Dan Haywood <da...@haywood-associates.co.uk>
Committed: Wed Nov 25 09:57:02 2015 +0000
----------------------------------------------------------------------
.../asciidoc/resources/templates/.gitignore | 1 +
.../intellij-live-templates-for-apache-isis.xml | 522 ++++++++++++
...-settings-file-templates-for-apache-isis.jar | Bin 0 -> 9104 bytes
.../resources/templates/isis-templates-idea.xml | 804 -------------------
.../resources/templates/isis-templates2.xml | 479 -----------
5 files changed, 523 insertions(+), 1283 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/isis/blob/f5a5de6c/adocs/documentation/src/main/asciidoc/resources/templates/.gitignore
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/resources/templates/.gitignore b/adocs/documentation/src/main/asciidoc/resources/templates/.gitignore
new file mode 100644
index 0000000..27620d5
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/resources/templates/.gitignore
@@ -0,0 +1 @@
+!*.jar
http://git-wip-us.apache.org/repos/asf/isis/blob/f5a5de6c/adocs/documentation/src/main/asciidoc/resources/templates/intellij-live-templates-for-apache-isis.xml
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/resources/templates/intellij-live-templates-for-apache-isis.xml b/adocs/documentation/src/main/asciidoc/resources/templates/intellij-live-templates-for-apache-isis.xml
new file mode 100644
index 0000000..0047c3f
--- /dev/null
+++ b/adocs/documentation/src/main/asciidoc/resources/templates/intellij-live-templates-for-apache-isis.xml
@@ -0,0 +1,522 @@
+<templateSet group="Apache Isis">
+ <template name="ai-a" value="@org.apache.isis.applib.annotation.Action() public $ReturnType$ $actionName$(final $ParameterType$ $parameterType$) { return $END$null; // TODO: business logic here } " description="Apache Isis Action" toReformat="true" toShortenFQNames="true">
+ <variable name="actionName" expression=""actionName"" defaultValue="" alwaysStopAt="true" />
+ <variable name="ParameterType" expression="classNameComplete()" defaultValue="" alwaysStopAt="true" />
+ <variable name="parameterType" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
+ <variable name="ReturnType" expression="className()" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-a-p-auto" value="public java.util.Collection<$ParameterType$> autoComplete$ParameterNum$$ActionName$(final String search) { return $END$com.google.common.collect.Lists.newArrayList(); // TODO: return list of choices for argument N }" description="Apache Isis Action parameter auto-complete" toReformat="true" toShortenFQNames="true">
+ <variable name="ParameterNum" expression=""Num"" defaultValue="" alwaysStopAt="true" />
+ <variable name="ActionName" expression=""ActionName"" defaultValue="" alwaysStopAt="true" />
+ <variable name="ParameterType" expression="className()" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-a-p-cho" value="public java.util.List<$ParameterType$> choices$ParameterNum$$ActionName$() { return $END$com.google.common.collect.Lists.newArrayList(); // TODO: return list of choices for argument N }" description="Apache Isis Action parameter choices" toReformat="true" toShortenFQNames="true">
+ <variable name="ParameterNum" expression=""Num"" defaultValue="" alwaysStopAt="true" />
+ <variable name="ActionName" expression=""ActionName"" defaultValue="" alwaysStopAt="true" />
+ <variable name="ParameterType" expression="className()" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-a-p-def" value="public $ParameterType$ default$ParameterNum$$ActionName$() { return $END$null; // TODO: return default for argument N }" description="Apache Isis Action parameter defaults" toReformat="true" toShortenFQNames="true">
+ <variable name="ParameterNum" expression=""Num"" defaultValue="" alwaysStopAt="true" />
+ <variable name="ActionName" expression=""ActionName"" defaultValue="" alwaysStopAt="true" />
+ <variable name="ParameterType" expression="className()" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-a-p-val" value="public String validate$ParamNum}$ActionName$(final $ParameterType$ $parameterType$) { return $END$null; // TODO: return reason why action argument are invalid, null if ok }" description="Apache Isis Action parameter validation" toReformat="true" toShortenFQNames="true">
+ <variable name="ActionName" expression=""ActionName"" defaultValue="" alwaysStopAt="true" />
+ <variable name="ParameterType" expression="className()" defaultValue="" alwaysStopAt="true" />
+ <variable name="parameterType" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-a-dis" value="public String disable$ActionName$() { return $END$null; // TODO: return reason why action disabled, null if enabled }" description="Apache Isis Action disablement" toReformat="true" toShortenFQNames="true">
+ <variable name="ActionName" expression=""ActionName"" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-a-event" value="public static class $ActionName$DomainEvent extends ActionDomainEvent{} @org.apache.isis.applib.annotation.Action( domainEvent = $ActionName$DomainEvent.class ) public $ReturnType$ $actionName$(final $ParameterType$ $parameterType$) { return $END$null; // TODO: business logic here } " description="Apache Isis Action (with domain event)" toReformat="true" toShortenFQNames="true">
+ <variable name="actionName" expression=""actionName"" defaultValue="" alwaysStopAt="true" />
+ <variable name="ActionName" expression="capitalize(actionName)" defaultValue="" alwaysStopAt="false" />
+ <variable name="ParameterType" expression="classNameComplete()" defaultValue="" alwaysStopAt="true" />
+ <variable name="parameterType" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
+ <variable name="ReturnType" expression="className()" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-a-event-decl" value="public static class $ActionName$DomainEvent extends ActionDomainEvent{} @org.apache.isis.applib.annotation.Action( domainEvent = $ActionName$DomainEvent.class ) " description="Apache Isis Action (domain event declaration only)" toReformat="true" toShortenFQNames="true">
+ <variable name="ActionName" expression="" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-a-hid" value="public boolean hide$ActionName$() { return $END$false; // TODO: return true if action is hidden, false if visible }" description="Apache Isis Action visibility" toReformat="true" toShortenFQNames="true">
+ <variable name="ActionName" expression=""ActionName"" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-a-val" value="public String validate$ActionName$(final $ParameterType$ $parameterType$) { return $END$null; // TODO: return reason why action arguments are invalid, null if ok }" description="Apache Isis Action validation" toReformat="true" toShortenFQNames="true">
+ <variable name="ActionName" expression=""ActionName"" defaultValue="" alwaysStopAt="true" />
+ <variable name="ParameterType" expression="className()" defaultValue="" alwaysStopAt="true" />
+ <variable name="parameterType" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-c-dis" value="public String disable$CollectionName$() { return $END$null; // TODO: return reason why collection read-only, null if editable }" description="Apache Isis Collection disablement" toReformat="true" toShortenFQNames="true">
+ <variable name="CollectionName" expression=""CollectionName"" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-c-hid" value="public boolean hide$CollectionName$() { return $END$false; // TODO: return true if hidden, false otherwise }" description="Apache Isis Collection visibility" toReformat="true" toShortenFQNames="false">
+ <variable name="CollectionName" expression=""CollectionName"" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-c-jdo-1m-b-fk" value="@org.apache.isis.applib.annotation.Collection() @javax.jdo.annotations.Persistent(mappedBy="$elementNameInChild$", dependentElement="$trueOrFalse$") @lombok.Getter @lombok.Setter private java.util.SortedSet<$ElementType$> $collectionName$ = new java.util.TreeSet<$ElementType$>(); " description="Apache Isis Collection (JDO, 1:m parent bidirectional to foreign key)" toReformat="true" toShortenFQNames="true">
+ <variable name="ElementType" expression="classNameComplete()" defaultValue="" alwaysStopAt="true" />
+ <variable name="collectionName" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
+ <variable name="elementNameInChild" expression="decapitalize(EntityName)" defaultValue="" alwaysStopAt="false" />
+ <variable name="trueOrFalse" expression=""trueOrFalse"" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-c-jdo-1m-b-jt" value="@org.apache.isis.applib.annotation.Collection() @javax.jdo.annotations.Persistent(mappedBy="$elementNameInChild$", dependentElement="$trueOrFalse$") @javax.jdo.annotations.Join @lombok.Getter @lombok.Setter private java.util.SortedSet<$ElementType$> $collectionName$ = new java.util.TreeSet<$ElementType$>(); " description="Apache Isis Collection (JDO, 1:m parent bidirectional to join table)" toReformat="true" toShortenFQNames="true">
+ <variable name="ElementType" expression="classNameComplete()" defaultValue="" alwaysStopAt="true" />
+ <variable name="collectionName" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
+ <variable name="elementNameInChild" expression="decapitalize(EntityName)" defaultValue="" alwaysStopAt="false" />
+ <variable name="trueOrFalse" expression=""trueOrFalse"" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-c-jdo-1m-u-fk" value="@org.apache.isis.applib.annotation.Collection() @javax.jdo.annotations.Element(column="$ColumnName$", dependent="$trueOrFalse$") @lombok.Getter @lombok.Setter private java.util.SortedSet<$ElementType$> $collectionName$ = new java.util.TreeSet<$ElementType$>(); " description="Apache Isis JDO Collection (1:m parent unidirectional)" toReformat="true" toShortenFQNames="true">
+ <variable name="ElementType" expression="classNameComplete()" defaultValue="" alwaysStopAt="true" />
+ <variable name="collectionName" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
+ <variable name="ColumnName" expression=""ColumnName"" defaultValue="" alwaysStopAt="true" />
+ <variable name="trueOrFalse" expression=""trueOrFalse"" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-c-jdo-1m-u-jt" value="@org.apache.isis.applib.annotation.Collection() @javax.jdo.annotations.Join @javax.jdo.annotations.Element(dependent="$trueOrFalse$") @lombok.Getter @lombok.Setter private java.util.SortedSet<$ElementType$> $collectionName$ = new java.util.TreeSet<$ElementType$>(); " description="Apache Isis Collection (JDO, 1:m parent unidirectional to join table)" toReformat="true" toShortenFQNames="true">
+ <variable name="ElementType" expression="classNameComplete()" defaultValue="" alwaysStopAt="true" />
+ <variable name="collectionName" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
+ <variable name="trueOrFalse" expression=""trueOrFalse"" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-c-jdo-mn-ub-c" value="@org.apache.isis.applib.annotation.Collection() @javax.jdo.annotations.Persistent(mappedBy="$ChildCollectionNameInParent$") @lombok.Getter @lombok.Setter private java.util.SortedSet<$ElementType$> $collectionName$ = new java.util.TreeSet<$ElementType$>(); " description="Apache Isis Collection (JDO, m:n child)" toReformat="true" toShortenFQNames="true">
+ <variable name="ElementType" expression="classNameComplete()" defaultValue="" alwaysStopAt="true" />
+ <variable name="collectionName" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
+ <variable name="ChildCollectionNameInParent" expression=""ChildCollectionNameInParent"" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-c-jdo-mn-ub-p" value="@org.apache.isis.applib.annotation.Collection() @javax.jdo.annotations.Persistent(table="$TableName$") @javax.jdo.annotations.Join(column="$ThisEntityFieldName$") @javax.jdo.annotations.Element(column="$RelatedEntityFieldName$") @lombok.Getter @lombok.Setter private java.util.SortedSet<$ElementType$> $collectionName$ = new java.util.TreeSet<$ElementType$>(); " description="Apache Isis Collection (JDO, m:n parent)" toReformat="true" toShortenFQNames="true">
+ <variable name="ElementType" expression="classNameComplete()" defaultValue="" alwaysStopAt="true" />
+ <variable name="collectionName" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
+ <variable name="TableName" expression=""TableName"" defaultValue="" alwaysStopAt="true" />
+ <variable name="ThisEntityFieldName" expression=""ThisEntityFieldName"" defaultValue="" alwaysStopAt="true" />
+ <variable name="RelatedEntityFieldName" expression=""RelatedEntityFieldName"" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-ds-subscriber-on" value="@com.google.common.eventbus.Subscribe public void on(final $EventType$ ev) { // TODO } " description="Apache Isis Domain Service Subscriber "on" event" toReformat="false" toShortenFQNames="true">
+ <variable name="EventType" expression="classNameComplete()" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="JAVA_DECLARATION" value="true" />
+ </context>
+ </template>
+ <template name="ai-jaxb-package.info" value="@javax.xml.bind.annotation.XmlSchema( namespace = "http://$namespaceBase$/$namespaceSuffix$/v$versionMajor$_$versionMinor$/$namespaceSuffix$.xsd", xmlns = { @javax.xml.bind.annotation.XmlNs( namespaceURI = "http://isis.apache.org/schema/common", prefix = "common" ), }, elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED )" toReformat="false" toShortenFQNames="true">
+ <variable name="namespaceBase" expression=" groovyScript("def str = _1; def list = str.split(\"\\\\.\"); def revlist = list.reverse(); def ret = revlist.iterator().join(\".\"); return ret", currentPackage())" defaultValue="" alwaysStopAt="true" />
+ <variable name="namespaceSuffix" expression="groovyScript("def str = _1; def list = str.split(\"\\\\.\"); def revlist = list.reverse(); def ret = revlist[0]; return ret", currentPackage())" defaultValue="" alwaysStopAt="true" />
+ <variable name="versionMajor" expression="" defaultValue="1" alwaysStopAt="true" />
+ <variable name="versionMinor" expression="" defaultValue="0" alwaysStopAt="true" />
+ <context>
+ <option name="JAVA_DECLARATION" value="true" />
+ </context>
+ </template>
+ <template name="ai-inject" value="@javax.inject.Inject $ServiceType$ $serviceType$; " description="Apache Isis Injected Dependency Service" toReformat="true" toShortenFQNames="true">
+ <variable name="ServiceType" expression="className()" defaultValue="" alwaysStopAt="true" />
+ <variable name="serviceType" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-id" value="//region > title, icon etc public String title() { final org.apache.isis.applib.util.TitleBuffer buf = new org.apache.isis.applib.util.TitleBuffer(); $END$// TODO: append to org.apache.isis.applib.util.TitleBuffer, typically value properties return buf.toString(); } public String iconName() { return null; // TODO: return icon name (suffix) } public String cssClass() { return null; // TODO: return CSS class name } //endregion" description="Apache Isis Identification region" toReformat="true" toShortenFQNames="true">
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-new" value="$Type$ $type$ = $container$.newTransientInstance($Type$.class); $END$// TODO: set up any properties $container$.persist($type$); " description="Apache Isis Commonly used method (factory for persistent)" toReformat="true" toShortenFQNames="true">
+ <variable name="Type" expression="className()" defaultValue="" alwaysStopAt="true" />
+ <variable name="type" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
+ <variable name="container" expression=""container"" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_STATEMENT" value="true" />
+ <option name="JAVA_EXPRESSION" value="false" />
+ <option name="JAVA_DECLARATION" value="false" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-p-jdo" value="@org.apache.isis.applib.annotation.Property() @javax.jdo.annotations.Column(allowsNull="$trueOrFalse$") @lombok.Getter @lombok.Setter private $PropertyType$ $propertyName$; " description="Apache Isis Property (JDO)" toReformat="true" toShortenFQNames="false">
+ <variable name="PropertyType" expression="classNameComplete()" defaultValue="" alwaysStopAt="true" />
+ <variable name="propertyName" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
+ <variable name="trueOrFalse" expression="" defaultValue="false" alwaysStopAt="true" />
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-p-auto" value="public java.util.Collection<$PropertyType$> autoComplete$PropertyName$(final String search) { return $END$com.google.common.collect.Lists.newArrayList(); // TODO: return list of choices for property }" description="Apache Isis Property auto-complete" toReformat="true" toShortenFQNames="true">
+ <variable name="PropertyName" expression=""PropertyName"" defaultValue="" alwaysStopAt="true" />
+ <variable name="PropertyType" expression="className()" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-p-cho" value="public java.util.Collection<$PropertyType$> choices$PropertyName$() { return $END$com.google.common.collect.Lists.newArrayList(); // TODO: return list of choices for property }" description="Apache Isis Property choices" toReformat="true" toShortenFQNames="true">
+ <variable name="PropertyName" expression=""PropertyName"" defaultValue="" alwaysStopAt="true" />
+ <variable name="PropertyType" expression="className()" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-p-def" value="public $PropertyType$ default$PropertyName$() { return $END$null; // TODO: return default for property when first created }" description="Apache Isis Property default" toReformat="true" toShortenFQNames="true">
+ <variable name="PropertyName" expression=""PropertyName"" defaultValue="" alwaysStopAt="true" />
+ <variable name="PropertyType" expression="className()" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-p-dis" value="public String disable$PropertyName$() { return $END$null; // TODO: return reason why property is disabled, null if editable }" description="Apache Isis Property disablement" toReformat="true" toShortenFQNames="true">
+ <variable name="PropertyName" expression=""PropertyName"" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-p-hid" value="public boolean hide$PropertyName$() { return $END$false; // TODO: return true if hidden, false if visible }" description="Apache Isis Property visibility" toReformat="true" toShortenFQNames="true">
+ <variable name="PropertyName" expression=""PropertyName"" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-p-val" value="public String validate$PropertyName$(final $PropertyType$ $propertyName$) { if ($propertyName$ == null) return null; return $END$null; // TODO: return reason why proposed value is invalid, null if valid }" description="Apache Isis Property validation" toReformat="true" toShortenFQNames="true">
+ <variable name="PropertyName" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
+ <variable name="PropertyType" expression="className()" defaultValue="" alwaysStopAt="true" />
+ <variable name="propertyName" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-obj-events" value="//region > domain events public static abstract class PropertyDomainEvent<T> extends org.apache.isis.applib.services.eventbus.PropertyDomainEvent<$EntityName$,T> { } public static abstract class CollectionDomainEvent<T> extends org.apache.isis.applib.services.eventbus.CollectionDomainEvent<$EntityName$,T> { } public static abstract class ActionDomainEvent extends org.apache.isis.applib.services.eventbus.ActionDomainEvent<$EntityName$> { } //endregion " description="Apache Isis Object: abstract domain events declarations" toReformat="true" toShortenFQNames="true">
+ <variable name="EntityName" expression="className()" defaultValue="" alwaysStopAt="false" />
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-obj-region" value="//region > $Region$ $END$ //endregion" description="Apache Isis Region" toReformat="true" toShortenFQNames="true">
+ <variable name="Region" expression=""Region"" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-obj-standard" value="//region > compareTo, toString @Override public int compareTo(final $EntityName$ other) { return org.apache.isis.applib.util.ObjectContracts.compare(this, other, "$property$"); } @Override public String toString() { return org.apache.isis.applib.util.ObjectContracts.toString(this, "$property$"); } //endregion " description="Apache Isis Object: standard methods (compareTo, toString)" toReformat="true" toShortenFQNames="true">
+ <variable name="EntityName" expression="className()" defaultValue="" alwaysStopAt="false" />
+ <variable name="property" expression="" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-obj-validate" value="public String validate() { $END$// TODO: return reason why object is in invalid state (and so cannot be saved/updated), or null if ok }" description="Apache Isis Object: validate method" toReformat="true" toShortenFQNames="true">
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-p-jdo-11c" value="@javax.jdo.annotations.Column(allowsNull="$trueOrFalse$") @javax.jdo.annotations.Persistent(mappedBy="$fieldOnChild$") @lombok.Getter @lombok.Setter private $PropertyType$ $propertyName$; " description="Apache Isis Property (JDO, 1:1 bidirectional parent to foreign key)" toReformat="true" toShortenFQNames="false">
+ <variable name="PropertyType" expression="classNameComplete()" defaultValue="" alwaysStopAt="true" />
+ <variable name="propertyName" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
+ <variable name="fieldOnChild" expression="" defaultValue="" alwaysStopAt="true" />
+ <variable name="trueOrFalse" expression="" defaultValue="false" alwaysStopAt="true" />
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-c-event-decl" value="public static class $CollectionName$DomainEvent extends CollectionDomainEvent<$ElementType$>{} @org.apache.isis.applib.annotation.Collection( domainEvent = $CollectionName$DomainEvent.class ) " description="Apache Isis Collection (domain event declaration only)" toReformat="true" toShortenFQNames="true">
+ <variable name="ElementType" expression="classNameComplete()" defaultValue="" alwaysStopAt="true" />
+ <variable name="CollectionName" expression="capitalize(collectionName)" defaultValue="" alwaysStopAt="false" />
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+ <template name="ai-p-event-decl" value="public static class $PropertyName$DomainEvent extends PropertyDomainEvent<$ElementType$>{} @org.apache.isis.applib.annotation.Property( domainEvent = $PropertyName$DomainEvent.class ) " description="Apache Isis Property (domain event declaration only)" toReformat="true" toShortenFQNames="true">
+ <variable name="ElementType" expression="classNameComplete()" defaultValue="" alwaysStopAt="true" />
+ <variable name="PropertyName" expression="" defaultValue="" alwaysStopAt="true" />
+ <context>
+ <option name="HTML" value="false" />
+ <option name="XML" value="false" />
+ <option name="JAVA_CODE" value="false" />
+ <option name="JAVA_DECLARATION" value="true" />
+ <option name="JAVA_COMMENT" value="false" />
+ <option name="JAVA_STRING" value="false" />
+ <option name="COMPLETION" value="false" />
+ <option name="OTHER" value="false" />
+ </context>
+ </template>
+</templateSet>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/isis/blob/f5a5de6c/adocs/documentation/src/main/asciidoc/resources/templates/intellij-settings-file-templates-for-apache-isis.jar
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/resources/templates/intellij-settings-file-templates-for-apache-isis.jar b/adocs/documentation/src/main/asciidoc/resources/templates/intellij-settings-file-templates-for-apache-isis.jar
new file mode 100644
index 0000000..93d1345
Binary files /dev/null and b/adocs/documentation/src/main/asciidoc/resources/templates/intellij-settings-file-templates-for-apache-isis.jar differ
[2/3] isis git commit: ISIS-1243: updating live templates for
IntelliJ, also adding file templates
Posted by da...@apache.org.
http://git-wip-us.apache.org/repos/asf/isis/blob/f5a5de6c/adocs/documentation/src/main/asciidoc/resources/templates/isis-templates-idea.xml
----------------------------------------------------------------------
diff --git a/adocs/documentation/src/main/asciidoc/resources/templates/isis-templates-idea.xml b/adocs/documentation/src/main/asciidoc/resources/templates/isis-templates-idea.xml
deleted file mode 100644
index d633678..0000000
--- a/adocs/documentation/src/main/asciidoc/resources/templates/isis-templates-idea.xml
+++ /dev/null
@@ -1,804 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<templateSet group="isis-templates">
- <template name="isa" value="//region > $actionName$ (action) @org.apache.isis.applib.annotation.MemberOrder(sequence="1") public $ReturnType$ $actionName$(final $ParameterType$ $parameterType$) { return $END$null; // TODO: business logic here } //endregion" description="Isis Action" toReformat="true" toShortenFQNames="true">
- <variable name="actionName" expression=""actionName"" defaultValue="" alwaysStopAt="true" />
- <variable name="ParameterType" expression="className()" defaultValue="" alwaysStopAt="true" />
- <variable name="parameterType" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
- <variable name="ReturnType" expression="className()" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="isaauto" value="public java.util.Collection<$ParameterType$> autoComplete$ParameterNum$$ActionName$(final String search) { return $END$com.google.common.collect.Lists.newArrayList(); // TODO: return list of choices for argument N }" description="Isis Action auto-complete" toReformat="true" toShortenFQNames="true">
- <variable name="ParameterNum" expression=""Num"" defaultValue="" alwaysStopAt="true" />
- <variable name="ActionName" expression=""ActionName"" defaultValue="" alwaysStopAt="true" />
- <variable name="ParameterType" expression="className()" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="isacho" value="public java.util.List<$ParameterType$> choices$ParameterNum$$ActionName$() { return $END$com.google.common.collect.Lists.newArrayList(); // TODO: return list of choices for argument N }" description="Isis Action choices" toReformat="true" toShortenFQNames="true">
- <variable name="ParameterNum" expression=""Num"" defaultValue="" alwaysStopAt="true" />
- <variable name="ActionName" expression=""ActionName"" defaultValue="" alwaysStopAt="true" />
- <variable name="ParameterType" expression="className()" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="isadef" value="public $ParameterType$ default$ParameterNum$$ActionName$() { return $END$null; // TODO: return default for argument N }" description="Isis Action defaults" toReformat="true" toShortenFQNames="true">
- <variable name="ParameterNum" expression=""Num"" defaultValue="" alwaysStopAt="true" />
- <variable name="ActionName" expression=""ActionName"" defaultValue="" alwaysStopAt="true" />
- <variable name="ParameterType" expression="className()" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="isadis" value="public String disable$ActionName$() { return $END$null; // TODO: return reason why action disabled, null if enabled }" description="Isis Action disablement" toReformat="true" toShortenFQNames="true">
- <variable name="ActionName" expression=""ActionName"" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="isahid" value="public boolean hide$ActionName$() { return $END$false; // TODO: return true if action is hidden, false if visible }" description="Isis Action visibility" toReformat="true" toShortenFQNames="true">
- <variable name="ActionName" expression=""ActionName"" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="isaval" value="public String validate$ActionName$(final $ParameterType$ $parameterType$) { return $END$null; // TODO: return reason why action arguments are invalid, null if ok }" description="Isis Action validation" toReformat="true" toShortenFQNames="true">
- <variable name="ActionName" expression=""ActionName"" defaultValue="" alwaysStopAt="true" />
- <variable name="ParameterType" expression="className()" defaultValue="" alwaysStopAt="true" />
- <variable name="parameterType" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="iscmod.1m" value="public void addTo$ChildCollectionName$(final $ChildElementType$ $childElementName$) { // check for no-op if ($childElementName$ == null || get$ChildCollectionName$().contains($childElementName$)) { return; } // dissociate arg from its current parent (if any). $childElementName$.clear$ParentPropertyNameInChild$(); // associate arg $childElementName$.set$ParentPropertyNameInChild$(this); get$ChildCollectionName$().add($childElementName$); } public void removeFrom$ChildCollectionName$(final $ChildElementType$ $childElementName$) { // check for no-op if ($childElementName$ == null || !get$ChildCollectionName$().contains($childElementName$)) { return; } // dissociate arg $childElementName$.set$ParentPropertyNameInChild$(null); get$ChildCollectionName$().remove($childElementName$);
}" description="Isis Collection modification" toReformat="true" toShortenFQNames="true">
- <variable name="ChildCollectionName" expression=""ChildCollectionName"" defaultValue="" alwaysStopAt="true" />
- <variable name="ChildElementType" expression="className()" defaultValue="" alwaysStopAt="true" />
- <variable name="childElementName" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
- <variable name="ParentPropertyNameInChild" expression=""ParentPropertyNameInChild"" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="iscmod.mmc" value="public void addTo$ParentCollectionName$(final $ParentElementType$ $parentElementName$) { // check for no-op if ($parentElementName$ == null || get$ParentCollectionName$().contains($parentElementName$)) { return; } // delegate to parent to add $parentElementName$.addTo$ChildCollectionNameInParent$(this); } public void removeFrom$ParentCollectionName$(final $ParentElementType$ $parentElementName$) { // check for no-op if ($parentElementName$ == null || !get$ParentCollectionName$().contains($parentElementName$)) { return; } // delegate to parent to remove $parentElementName$.removeFrom$ChildCollectionNameInParent$(this); }" description="Isis Collection modification (m:m child)" toReformat="true" toShortenFQNames="true">
- <variable name="ParentCollectionName" expression=""ParentCollectionName"" defaultValue="" alwaysStopAt="true" />
- <variable name="ParentElementType" expression="className()" defaultValue="" alwaysStopAt="true" />
- <variable name="parentElementName" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
- <variable name="ChildCollectionNameInParent" expression=""ChildCollectionNameInParent"" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="iscmod.mmp" value="public void addTo$ChildCollectionName$(final $ChildElementType$ $childElementName$) { // check for no-op if ($childElementName$ == null || get$ChildCollectionName$().contains($childElementName$)) { return; } // dissociate arg from its current parent (if any). $childElementName$.removeFrom$ParentCollectionNameInChild$(this); // associate arg $childElementName$.get$ParentCollectionNameInChild$().add(this); get$ChildCollectionName$().add($childElementName$); } public void removeFrom$ChildCollectionName$(final $ChildElementType$ $childElementName$) { // check for no-op if ($childElementName$ == null || !get$ChildCollectionName$().contains($childElementName$)) { return; } // dissociate arg $childElementName$.get$ParentCollectionNameInChild$().remove(this); get$ChildCollectionName$().rem
ove($childElementName$); }" description="Isis Collection modification (m:m parent)" toReformat="true" toShortenFQNames="true">
- <variable name="ChildCollectionName" expression=""ChildCollectionName"" defaultValue="" alwaysStopAt="true" />
- <variable name="ChildElementType" expression="className()" defaultValue="" alwaysStopAt="true" />
- <variable name="childElementName" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
- <variable name="ParentCollectionNameInChild" expression=""ParentCollectionNameInChild"" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="iscdis" value="public String disable$CollectionName$() { return $END$null; // TODO: return reason why collection read-only, null if editable }" description="Isis Collection disablement" toReformat="true" toShortenFQNames="true">
- <variable name="CollectionName" expression=""CollectionName"" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="ischid" value="public boolean hide$CollectionName$() { return $END$false; // TODO: return true if hidden, false otherwise }" description="Isis Collection visibility" toReformat="true" toShortenFQNames="false">
- <variable name="CollectionName" expression=""CollectionName"" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="iscl" value="//region > $collectionName$ (collection) private java.util.List<$ElementType$> $collectionName$ = com.google.common.collect.Lists.newArrayList(); @org.apache.isis.applib.annotation.MemberOrder(sequence="1") public java.util.List<$ElementType$> get$CollectionName$() { return $collectionName$; } public void set$CollectionName$(final java.util.List<$ElementType$> $collectionName$) { this.$collectionName$ = $collectionName$; } //endregion" description="Isis Collection (List)" toReformat="true" toShortenFQNames="true">
- <variable name="collectionName" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
- <variable name="CollectionName" expression=""CollectionName"" defaultValue="" alwaysStopAt="true" />
- <variable name="ElementType" expression="className()" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="iscs" value="//region > $collectionName$ (collection) private java.util.SortedSet<$ElementType$> $collectionName$ = com.google.common.collect.Sets.newTreeSet(); @org.apache.isis.applib.annotation.MemberOrder(sequence="1") public java.util.Set<$ElementType$> get$CollectionName$() { return $collectionName$; } public void set$CollectionName$(final java.util.Set<$ElementType$> $collectionName$) { this.$collectionName$ = $collectionName$; } //endregion" description="Isis Collection (Set)" toReformat="true" toShortenFQNames="true">
- <variable name="collectionName" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
- <variable name="CollectionName" expression=""CollectionName"" defaultValue="" alwaysStopAt="true" />
- <variable name="ElementType" expression="className()" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="iscval" value="public String validateAddTo$CollectionName$(final $ElementType$ $elementName$) { return $END$null; // TODO: return reason why argument cannot be added, null if ok to add } public String validateRemoveFrom$CollectionName$(final $ElementType$ $elementName$) { return null; // TODO: return reason why argument cannot be removed, null if ok to remove }" description="Isis Collection validation" toReformat="true" toShortenFQNames="true">
- <variable name="elementName" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
- <variable name="CollectionName" expression=""CollectionName"" defaultValue="" alwaysStopAt="true" />
- <variable name="ElementType" expression="className()" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="isds" value="//region > $serviceType$ (injected) private $ServiceType$ $serviceType$; public final void inject$ServiceType$(final $ServiceType$ $serviceType$) { this.$serviceType$ = $serviceType$; } //endregion" description="Isis Injected Dependency Service" toReformat="true" toShortenFQNames="true">
- <variable name="ServiceType" expression="className()" defaultValue="" alwaysStopAt="true" />
- <variable name="serviceType" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="ism.fp" value="/** * Create new (already persisted) $Type$ */ @org.apache.isis.applib.annotation.Programmatic public $Type$ new$Type$() { $Type$ $type$ = newTransientInstance($Type$.class); $END$// TODO: set up any properties persist($type$); return $type$; } " description="Isis Commonly used method (factory for persistent)" toReformat="true" toShortenFQNames="true">
- <variable name="Type" expression="className()" defaultValue="" alwaysStopAt="true" />
- <variable name="type" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="ism.ft" value="/** * Create new (still transient) $Type$ */ @org.apache.isis.applib.annotation.Programmatic public $Type$ new$Type$() { $Type$ $type$ = newTransientInstance($Type$.class); $END$// TODO: set up any properties return $type$; } " description="Isis Commonly used method (factory for transient)" toReformat="true" toShortenFQNames="true">
- <variable name="Type" expression="className()" defaultValue="" alwaysStopAt="true" />
- <variable name="type" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="isid" value="//region > identificatio $END$ //endregion" description="Isis Identification region" toReformat="true" toShortenFQNames="true">
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="isidicon" value="public String iconName() { return $END$null; // TODO: return name of image file (without suffix) }" description="Isis Identification (icon)" toReformat="true" toShortenFQNames="true">
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="isidtitle" value="public String title() { final org.apache.isis.applib.util.TitleBuffer buf = new org.apache.isis.applib.util.TitleBuffer(); $END$// TODO: append to org.apache.isis.applib.util.TitleBuffer, typically value properties return buf.toString(); }" description="Isis Identification (title)" toReformat="true" toShortenFQNames="true">
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="iscs.jdo.1m.b.fk" value="//region > $collectionName$ (collection) @javax.jdo.annotations.Persistent(mappedBy="$elementNameInChild$", dependentElement="$trueOrFalse$") private java.util.SortedSet<$ElementType$> $collectionName$ = new java.util.TreeSet<$ElementType$>(); @org.apache.isis.applib.annotation.MemberOrder(sequence="1") public java.util.SortedSet<$ElementType$> get$CollectionName$() { return $collectionName$; } public void set$CollectionName$(final java.util.SortedSet<$ElementType$> $collectionName$) { this.$collectionName$ = $collectionName$; } //endregion" description="Isis JDO Collection (1:m parent bidirectional to foreign key)" toReformat="true" toShortenFQNames="true">
- <variable name="collectionName" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
- <variable name="CollectionName" expression=""CollectionName"" defaultValue="" alwaysStopAt="true" />
- <variable name="ElementType" expression="className()" defaultValue="" alwaysStopAt="true" />
- <variable name="elementNameInChild" expression=""elementNameInChild"" defaultValue="" alwaysStopAt="true" />
- <variable name="trueOrFalse" expression=""trueOrFalse"" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="iscs.jdo.1m.b.jt" value="//region > $collectionName$ (collection) @javax.jdo.annotations.Persistent(mappedBy="$elementNameInChild$", dependentElement="$trueOrFalse$") @javax.jdo.annotations.Join private java.util.SortedSet<$ElementType$> $collectionName$ = new java.util.TreeSet<$ElementType$>(); @org.apache.isis.applib.annotation.MemberOrder(sequence="1") public java.util.SortedSet<$ElementType$> get$CollectionName$() { return $collectionName$; } public void set$CollectionName$(final java.util.SortedSet<$ElementType$> $collectionName$) { this.$collectionName$ = $collectionName$; } //endregion" description="Isis JDO Collection (1:m parent bidirectional to join table)" toReformat="true" toShortenFQNames="true">
- <variable name="collectionName" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
- <variable name="CollectionName" expression=""CollectionName"" defaultValue="" alwaysStopAt="true" />
- <variable name="ElementType" expression="className()" defaultValue="" alwaysStopAt="true" />
- <variable name="elementNameInChild" expression=""elementNameInChild"" defaultValue="" alwaysStopAt="true" />
- <variable name="trueOrFalse" expression=""trueOrFalse"" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="iscs.jdo.1m.u.fk" value="//region > $collectionName$ (collection) @javax.jdo.annotations.Element(column="$ColumnName$", dependent="$trueOrFalse$") private java.util.SortedSet<$ElementType$> $collectionName$ = new java.util.TreeSet<$ElementType$>(); @org.apache.isis.applib.annotation.MemberOrder(sequence="1") public java.util.SortedSet<$ElementType$> get$CollectionName$() { return $collectionName$; } public void set$CollectionName$(final java.util.SortedSet<$ElementType$> $collectionName$) { this.$collectionName$ = $collectionName$; } //endregion" description="Isis JDO Collection (1:m parent unidirectional)" toReformat="true" toShortenFQNames="true">
- <variable name="collectionName" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
- <variable name="CollectionName" expression=""CollectionName"" defaultValue="" alwaysStopAt="true" />
- <variable name="ElementType" expression="className()" defaultValue="" alwaysStopAt="true" />
- <variable name="ColumnName" expression=""ColumnName"" defaultValue="" alwaysStopAt="true" />
- <variable name="trueOrFalse" expression=""trueOrFalse"" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="iscs.jdo.1m.u.jt" value="//region > $collectionName$ (collection) @javax.jdo.annotations.Join @javax.jdo.annotations.Element(dependent="$trueOrFalse$") private java.util.SortedSet<$ElementType$> $collectionName$ = new java.util.TreeSet<$ElementType$>(); @org.apache.isis.applib.annotation.MemberOrder(sequence="1") public java.util.SortedSet<$ElementType$> get$CollectionName$() { return $collectionName$; } public void set$CollectionName$(final java.util.SortedSet<$ElementType$> $collectionName$) { this.$collectionName$ = $collectionName$; } //endregion" description="Isis JDO Collection (1:m parent unidirectional to join table)" toReformat="true" toShortenFQNames="true">
- <variable name="collectionName" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
- <variable name="CollectionName" expression=""CollectionName"" defaultValue="" alwaysStopAt="true" />
- <variable name="ElementType" expression="className()" defaultValue="" alwaysStopAt="true" />
- <variable name="trueOrFalse" expression=""trueOrFalse"" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="iscs.jdo.mn.ub.c" value="//region > $collectionName$ (collection) @javax.jdo.annotations.Persistent(mappedBy="$ChildCollectionNameInParent$") private java.util.SortedSet<$ElementType$> $collectionName$ = new java.util.TreeSet<$ElementType$>(); public java.util.SortedSet<$ElementType$> get$CollectionName$() { return $collectionName$; } public void set$CollectionName$(final java.util.SortedSet<$ElementType$> $collectionName$) { this.$collectionName$ = $collectionName$; } //endregion" description="Isis JDO Collection (m:n child)" toReformat="true" toShortenFQNames="true">
- <variable name="collectionName" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
- <variable name="CollectionName" expression=""CollectionName"" defaultValue="" alwaysStopAt="true" />
- <variable name="ElementType" expression="className()" defaultValue="" alwaysStopAt="true" />
- <variable name="ChildCollectionNameInParent" expression=""ChildCollectionNameInParent"" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="iscs.jdo.mn.ub.p" value="//region > $collectionName$ (collection) @javax.jdo.annotations.Persistent(table="$TableName$") @javax.jdo.annotations.Join(column="$ThisEntityFieldName$") @javax.jdo.annotations.Element(column="$RelatedEntityFieldName$") private java.util.SortedSet<$ElementType$> $collectionName$ = new java.util.TreeSet<$ElementType$>(); @org.apache.isis.applib.annotation.MemberOrder(sequence="1") public java.util.SortedSet<$ElementType$> get$CollectionName$() { return $collectionName$; } public void set$CollectionName$(final java.util.SortedSet<$ElementType$> $collectionName$) { this.$collectionName$ = $collectionName$; } //endregion" description="Isis JDO Collection (m:n parent)" toReformat="true" toShortenFQNames="true">
- <variable name="collectionName" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
- <variable name="CollectionName" expression=""CollectionName"" defaultValue="" alwaysStopAt="true" />
- <variable name="ElementType" expression="className()" defaultValue="" alwaysStopAt="true" />
- <variable name="TableName" expression=""TableName"" defaultValue="" alwaysStopAt="true" />
- <variable name="ThisEntityFieldName" expression=""ThisEntityFieldName"" defaultValue="" alwaysStopAt="true" />
- <variable name="RelatedEntityFieldName" expression=""RelatedEntityFieldName"" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="isp.jdo" value="//region > $propertyName$ (property) private $PropertyType$ $propertyName$; @org.apache.isis.applib.annotation.MemberOrder(sequence="1") @javax.jdo.annotations.Column(allowsNull="$trueOrFalse$") public $PropertyType$ get$PropertyName$() { return $propertyName$; } public void set$PropertyName$(final $PropertyType$ $propertyName$) { this.$propertyName$ = $propertyName$; } //endregion" description="Isis JDO Property" toReformat="true" toShortenFQNames="true">
- <variable name="propertyName" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
- <variable name="PropertyName" expression=""PropertyName"" defaultValue="" alwaysStopAt="true" />
- <variable name="PropertyType" expression="className()" defaultValue="" alwaysStopAt="true" />
- <variable name="trueOrFalse" expression=""trueOrFalse"" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="isp.jdo.11c" value="//region > $propertyName$ (property) private $PropertyType$ $propertyName$; @org.apache.isis.applib.annotation.MemberOrder(sequence="1") @javax.jdo.annotations.Column(allowsNull="$trueOrFalse$") @javax.jdo.annotations.Persistent(mappedBy="$fieldOnChild$") public $PropertyType$ get$PropertyName$() { return $propertyName$; } public void set$PropertyName$(final $PropertyType$ $propertyName$) { this.$propertyName$ = $propertyName$; } //endregion" description="Isis JDO Property (1:1 bidirectional parent to foreign key)" toReformat="true" toShortenFQNames="true">
- <variable name="propertyName" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
- <variable name="PropertyName" expression=""PropertyName"" defaultValue="" alwaysStopAt="true" />
- <variable name="PropertyType" expression="className()" defaultValue="" alwaysStopAt="true" />
- <variable name="trueOrFalse" expression=""trueOrFalse"" defaultValue="" alwaysStopAt="true" />
- <variable name="fieldOnChild" expression=""fieldOnChild"" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="isl" value="//region > Lifecycle callbacks $END$ //endregion" description="Isis Lifecycle callbacks region" toReformat="true" toShortenFQNames="true">
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="islc" value="public void created() { $END$// TODO: post-create }" description="Isis Lifecycle callback (created)" toReformat="true" toShortenFQNames="true">
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="isll" value="public void loading() { $END$// TODO: pre-load } public void loaded() { // TODO: post-load }" description="Isis Lifecycle callback (loading/loaded)" toReformat="true" toShortenFQNames="true">
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="islp" value="public void persisting() { $END$// TODO: pre-persist } public void persisted() { // TODO: post-persist }" description="Isis Lifecycle callback (persisting/persisted)" toReformat="true" toShortenFQNames="true">
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="islr" value="public void removing() { $END$// TODO: pre-remove } public void removed() { // TODO: post-remove }" description="Isis Lifecycle callback (removing/removed)" toReformat="true" toShortenFQNames="true">
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="islu" value="public void updating() { $END$// TODO: pre-update } public void updated() { // TODO: post-update }" description="Isis Lifecycle callback (updating/updated)" toReformat="true" toShortenFQNames="true">
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="isp" value="//region > $propertyName$ (property) private $PropertyType$ $propertyName$; @org.apache.isis.applib.annotation.MemberOrder(sequence="1") public $PropertyType$ get$PropertyName$() { return $propertyName$; } public void set$PropertyName$(final $PropertyType$ $propertyName$) { this.$propertyName$ = $propertyName$; } //endregion" description="Isis Property" toReformat="true" toShortenFQNames="true">
- <variable name="propertyName" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
- <variable name="PropertyName" expression=""PropertyName"" defaultValue="" alwaysStopAt="true" />
- <variable name="PropertyType" expression="className()" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="ispmod.11c" value="public void modify$ParentPropertyName$(final $ParentPropertyType$ $parentPropertyName$) { $ParentPropertyType$ current$ParentPropertyName$ = get$ParentPropertyName$(); // check for no-op if ($parentPropertyName$ == null || $parentPropertyName$.equals(current$ParentPropertyName$)) { return; } // delegate to parent to associate $parentPropertyName$.modify$ChildPropertyNameInParent$(this); } public void clear$ParentPropertyName$() { $ParentPropertyType$ current$ParentPropertyName$ = get$ParentPropertyName$(); // check for no-op if (current$ParentPropertyName$ == null) { return; } // delegate to parent to dissociate current$ParentPropertyName$.clear$ChildPropertyNameInParent$(); }" description="Isis Property modification (1:1 bidirectional parent)" toReformat="true" toShortenFQNames="true">
- <variable name="ParentPropertyName" expression=""ParentPropertyName"" defaultValue="" alwaysStopAt="true" />
- <variable name="ParentPropertyType" expression="className()" defaultValue="" alwaysStopAt="true" />
- <variable name="parentPropertyName" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
- <variable name="ChildPropertyNameInParent" expression=""ChildPropertyNameInParent"" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="ispmod.11p" value="public void modify$ChildPropertyName$(final $ChildPropertyType$ $childPropertyName$) { $ChildPropertyType$ current$ChildPropertyName$ = get$ChildPropertyName$(); // check for no-op if ($childPropertyName$ == null || $childPropertyName$.equals(current$ChildPropertyName$)) { return; } // dissociate existing clear$ChildPropertyName$(); // associate new $childPropertyName$.set$ParentPropertyNameInChild$(this); set$ChildPropertyName$($childPropertyName$); } public void clear$ChildPropertyName$() { $ChildPropertyType$ current$ChildPropertyName$ = get$ChildPropertyName$(); // check for no-op if (current$ChildPropertyName$ == null) { return; } // dissociate existing current$ChildPropertyName$.set$ParentPropertyNameInChild$(null); set$ChildPropertyName$(null); }" description="Isis
Property modification (1:1 bidirectional child)" toReformat="true" toShortenFQNames="true">
- <variable name="ChildPropertyName" expression=""ChildPropertyName"" defaultValue="" alwaysStopAt="true" />
- <variable name="ChildPropertyType" expression="className()" defaultValue="" alwaysStopAt="true" />
- <variable name="childPropertyName" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
- <variable name="ParentPropertyNameInChild" expression=""ParentPropertyNameInChild"" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="isp.m1" value="public void modify$ParentPropertyName$(final $ParentPropertyType$ $parentPropertyName$) { $ParentPropertyType$ current$ParentPropertyName$ = get$ParentPropertyName$(); // check for no-op if ($parentPropertyName$ == null || $parentPropertyName$.equals(current$ParentPropertyName$)) { return; } // delegate to parent to associate $parentPropertyName$.addTo$ChildCollectionNameInParent$(this); } public void clear$ParentPropertyName$() { $ParentPropertyType$ current$ParentPropertyName$ = get$ParentPropertyName$(); // check for no-op if (current$ParentPropertyName$ == null) { return; } // delegate to parent to dissociate current$ParentPropertyName$.removeFrom$ChildCollectionNameInParent$(this); }" description="Isis Property modification (m:1 child)" toReformat="true" toShortenFQNames="true">
- <variable name="ParentPropertyName" expression=""ParentPropertyName"" defaultValue="" alwaysStopAt="true" />
- <variable name="parentPropertyName" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
- <variable name="ParentPropertyType" expression="className()" defaultValue="" alwaysStopAt="true" />
- <variable name="ChildCollectionNameInParent" expression=""ChildCollectionNameInParent"" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="ispcho" value="public java.util.Collection<$PropertyType$> choices$PropertyName$() { return $END$com.google.common.collect.Lists.newArrayList(); // TODO: return list of choices for property }" description="Isis Property choices" toReformat="true" toShortenFQNames="true">
- <variable name="PropertyName" expression=""PropertyName"" defaultValue="" alwaysStopAt="true" />
- <variable name="PropertyType" expression="className()" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="ispdef" value="public $PropertyType$ default$PropertyName$() { return $END$null; // TODO: return default for property when first created }" description="Isis Property default" toReformat="true" toShortenFQNames="true">
- <variable name="PropertyName" expression=""PropertyName"" defaultValue="" alwaysStopAt="true" />
- <variable name="PropertyType" expression="className()" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="ispdis" value="public String disable$PropertyName$() { return $END$null; // TODO: return reason why property is disabled, null if editable }" description="Isis Property disablement" toReformat="true" toShortenFQNames="true">
- <variable name="PropertyName" expression=""PropertyName"" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="isphid" value="public boolean hide$PropertyName$() { return $END$false; // TODO: return true if hidden, false if visible }" description="Isis Property visibility" toReformat="true" toShortenFQNames="true">
- <variable name="PropertyName" expression=""PropertyName"" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="ispmod" value="public void modify$PropertyName$(final $PropertyType$ $propertyName$) { $PropertyType$ current$PropertyName$ = get$PropertyName$(); // check for no-op if ($propertyName$ == null || $propertyName$.equals(current$PropertyName$)) { return; } // associate new set$PropertyName$($propertyName$); } public void clear$PropertyName$() { $PropertyType$ current$PropertyName$ = get$PropertyName$(); // check for no-op if (current$PropertyName$ == null) { return; } // dissociate existing set$PropertyName$(null); }" description="Isis Property modification" toReformat="true" toShortenFQNames="true">
- <variable name="PropertyName" expression=""PropertyName"" defaultValue="" alwaysStopAt="true" />
- <variable name="PropertyType" expression="className()" defaultValue="" alwaysStopAt="true" />
- <variable name="propertyName" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="ispval" value="public String validate$PropertyName$(final $PropertyType$ $propertyName$) { if ($propertyName$ == null) return null; return $END$null; // TODO: return reason why proposed value is invalid, null if valid }" description="Isis Property validation" toReformat="true" toShortenFQNames="true">
- <variable name="PropertyName" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
- <variable name="PropertyType" expression="className()" defaultValue="" alwaysStopAt="true" />
- <variable name="propertyName" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="isr" value="//region > $Region$ $END$ //endregion" description="Isis Region" toReformat="true" toShortenFQNames="true">
- <variable name="Region" expression=""Region"" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="ism.p.all" value="//region > all $TypePlural$ @org.apache.isis.applib.annotation.Prototype public java.util.List<$Type$> all$TypePlural$() { return allInstances($Type$.class); } //endregion" description="Isis Commonly used prototyping method (all instances)" toReformat="true" toShortenFQNames="true">
- <variable name="Type" expression="className()" defaultValue="" alwaysStopAt="true" />
- <variable name="TypePlural" expression=""TypePlural"" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="ism.p.afil" value="//region > all $TypePlural$ that $filterDescription$ @org.apache.isis.applib.annotation.Exploration public java.util.List<$Type$> all$TypePlural$Matching(final org.apache.isis.applib.Filter<$Type$> filter) { return allMatches($Type$.class, filter); } //endregion" description="Isis Commonly used prototyping method (all instances matching filter)" toReformat="true" toShortenFQNames="true">
- <variable name="Type" expression="className()" defaultValue="" alwaysStopAt="true" />
- <variable name="TypePlural" expression=""TypePlural"" defaultValue="" alwaysStopAt="true" />
- <variable name="filterDescription" expression=""filterDescription"" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="ism.p.ffil" value="//region > first $Type$ that $filterDescription$ @org.apache.isis.applib.annotation.Exploration public $Type$ first$Type$Matching(final org.apache.isis.applib.Filter<$Type$> filter) { return firstMatch($Type$.class, filter); } //endregion" description="Isis Commonly used prototyping method (first instance matching filter)" toReformat="true" toShortenFQNames="true">
- <variable name="Type" expression="className()" defaultValue="" alwaysStopAt="true" />
- <variable name="filterDescription" expression=""filterDescription"" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="ism.p.ufil" value="//region > unique $Type$ that $filterDescription$ @org.apache.isis.applib.annotation.Exploration public $Type$ unique$Type$Matching(final org.apache.isis.applib.Filter<$Type$> filter) { return uniqueMatch($Type$.class, filter); } //endregion" description="Isis Commonly used prototyping method (unique instance matching filter)" toReformat="true" toShortenFQNames="true">
- <variable name="Type" expression="className()" defaultValue="" alwaysStopAt="true" />
- <variable name="filterDescription" expression=""filterDescription"" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="isval" value="public String validate() { $END$// TODO: return reason why object is in invalid state (and so cannot be saved/updated), or null if ok }" description="Isis Validate method" toReformat="true" toShortenFQNames="true">
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
- <template name="ispauto" value="public java.util.Collection<$PropertyType$> autoComplete$PropertyName$(final String search) { return $END$com.google.common.collect.Lists.newArrayList(); // TODO: return list of choices for property }" description="Isis Property auto-complete" toReformat="true" toShortenFQNames="true">
- <variable name="PropertyName" expression=""PropertyName"" defaultValue="" alwaysStopAt="true" />
- <variable name="PropertyType" expression="className()" defaultValue="" alwaysStopAt="true" />
- <context>
- <option name="HTML" value="false" />
- <option name="XML" value="false" />
- <option name="JAVA_CODE" value="false" />
- <option name="JAVA_DECLARATION" value="true" />
- <option name="JAVA_COMMENT" value="false" />
- <option name="JAVA_STRING" value="false" />
- <option name="COMPLETION" value="false" />
- <option name="JAVA_SCRIPT" value="false" />
- <option name="OTHER" value="false" />
- </context>
- </template>
-</templateSet>
-