[jbosstools-issues] [JBoss JIRA] Updated: (JBIDE-8842) Code completion for tag names of Seam config xml

Alexey Kazakov (JIRA) jira-events at lists.jboss.org
Tue May 10 13:47:18 EDT 2011


     [ https://issues.jboss.org/browse/JBIDE-8842?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Kazakov updated JBIDE-8842:
----------------------------------

    Description: 
For example
{code}
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://java.sun.com/xml/ns/javaee"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:s="urn:java:ee" 
       xmlns:r="urn:java:org.example.reports">

 	<r:Report>  
 		<s:modifies/>
 		<r:filename>sales.jrxml<r:filename>
 		<r:datasource>
 			<r:SalesQualifier/>
 		</r:datasource>
  	</r:Report>
  	
 	<r:Report filename="billing.jrxml">
 		<s:replaces/>
 		<r:datasource>
 			<s:Inject/>
 			<s:Exact>org.example.reports.BillingDatasource</s:Exact>
 		</r:datasource>
  	</r:Report>  	
</beans>
{code}
<r:| - here we can propose a list of all the classes available in org.example.reports package.

See http://docs.jboss.org/seam/3/config/latest/reference/en-US/html/index.html

The full list of all types of such a code completion is TBD.

# In context of <beans> ... </beans>
   Suggest all classes and annotation types in available packages.
# In context of tag header <r:Report | >
   Suggest all fields available if Report is class;
   Suggest all methods available if Report is annotation type.
# In context of tag content <r:Report> | </r:Report>
   Suggest <s:replaces/> and <s:modifies/> if Report is class;
   Suggest <s:parameters> if Report is class;
   Suggest all fields and methods available if Report is class;
   Suggest all methods available if Report is annotation type;
   Suggest all annotation types in available packages.
# In context of <r:Report> <r:address> | </r:address> </r:Report>
   Suggest <s:value> if 'address' is class field or annotation type method;
   Suggest <s:entry> if 'address' is class field or annotation type method (maybe we should check that it is map);
   Suggest <s:parameters> if 'address' is class method;
   Suggest all annotation types in available packages.
# In context of <s:entry> | </s:entry>
   Suggest <s:value> and <s:key>
# In context of <s:value> | </s:value> or <s:key> | </s:key>
   Suggest all classes in available packages since value may be set as an inline bean.
# In context of <s:parameters> | <s:parameters>
   Suggest types in available packages as types of parameters.
# In context of xmlns:*="|"
   Suggest "urn:java:" with available packages.

  was:
For example
{code}
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://java.sun.com/xml/ns/javaee"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:s="urn:java:ee" 
       xmlns:r="urn:java:org.example.reports">

 	<r:Report>  
 		<s:modifies/>
 		<r:filename>sales.jrxml<r:filename>
 		<r:datasource>
 			<r:SalesQualifier/>
 		</r:datasource>
  	</r:Report>
  	
 	<r:Report filename="billing.jrxml">
 		<s:replaces/>
 		<r:datasource>
 			<s:Inject/>
 			<s:Exact>org.example.reports.BillingDatasource</s:Exact>
 		</r:datasource>
  	</r:Report>  	
</beans>
{code}
<r:| - here we can propose a list of all the classes available in org.example.reports package.

See http://docs.jboss.org/seam/3/config/latest/reference/en-US/html/index.html

The full list of all types of such a code completion is TBD.

1) In context of <beans> ... </beans>
   Suggest all classes and annotation types in available packages.
2) In context of tag header <r:Report | >
   Suggest all fields available if Report is class;
   Suggest all methods available if Report is annotation type.
3) In context of tag content <r:Report> | </r:Report>
   Suggest <s:replaces/> and <s:modifies/> if Report is class;
   Suggest <s:parameters> if Report is class;
   Suggest all fields and methods available if Report is class;
   Suggest all methods available if Report is annotation type;
   Suggest all annotation types in available packages.
4) In context of <r:Report> <r:address> | </r:address> </r:Report>
   Suggest <s:value> if 'address' is class field or annotation type method;
   Suggest <s:entry> if 'address' is class field or annotation type method (maybe we should check that it is map);
   Suggest <s:parameters> if 'address' is class method;
   Suggest all annotation types in available packages.
5) In context of <s:entry> | </s:entry>
   Suggest <s:value> and <s:key>
6) In context of <s:value> | </s:value> or <s:key> | </s:key>
   Suggest all classes in available packages since value may be set as an inline bean.
7) In context of <s:parameters> | <s:parameters>
   Suggest types in available packages as types of parameters.
8) In context of xmlns:*="|"
   Suggest "urn:java:" with available packages.



> Code completion for tag names of Seam config xml
> ------------------------------------------------
>
>                 Key: JBIDE-8842
>                 URL: https://issues.jboss.org/browse/JBIDE-8842
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: cdi (jsr-299)
>            Reporter: Alexey Kazakov
>            Assignee: Viacheslav Kabanovich
>              Labels: new_and_noteworthy
>             Fix For: 3.3.0.M2
>
>
> For example
> {code}
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://java.sun.com/xml/ns/javaee"
>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>        xmlns:s="urn:java:ee" 
>        xmlns:r="urn:java:org.example.reports">
>  	<r:Report>  
>  		<s:modifies/>
>  		<r:filename>sales.jrxml<r:filename>
>  		<r:datasource>
>  			<r:SalesQualifier/>
>  		</r:datasource>
>   	</r:Report>
>   	
>  	<r:Report filename="billing.jrxml">
>  		<s:replaces/>
>  		<r:datasource>
>  			<s:Inject/>
>  			<s:Exact>org.example.reports.BillingDatasource</s:Exact>
>  		</r:datasource>
>   	</r:Report>  	
> </beans>
> {code}
> <r:| - here we can propose a list of all the classes available in org.example.reports package.
> See http://docs.jboss.org/seam/3/config/latest/reference/en-US/html/index.html
> The full list of all types of such a code completion is TBD.
> # In context of <beans> ... </beans>
>    Suggest all classes and annotation types in available packages.
> # In context of tag header <r:Report | >
>    Suggest all fields available if Report is class;
>    Suggest all methods available if Report is annotation type.
> # In context of tag content <r:Report> | </r:Report>
>    Suggest <s:replaces/> and <s:modifies/> if Report is class;
>    Suggest <s:parameters> if Report is class;
>    Suggest all fields and methods available if Report is class;
>    Suggest all methods available if Report is annotation type;
>    Suggest all annotation types in available packages.
> # In context of <r:Report> <r:address> | </r:address> </r:Report>
>    Suggest <s:value> if 'address' is class field or annotation type method;
>    Suggest <s:entry> if 'address' is class field or annotation type method (maybe we should check that it is map);
>    Suggest <s:parameters> if 'address' is class method;
>    Suggest all annotation types in available packages.
> # In context of <s:entry> | </s:entry>
>    Suggest <s:value> and <s:key>
> # In context of <s:value> | </s:value> or <s:key> | </s:key>
>    Suggest all classes in available packages since value may be set as an inline bean.
> # In context of <s:parameters> | <s:parameters>
>    Suggest types in available packages as types of parameters.
> # In context of xmlns:*="|"
>    Suggest "urn:java:" with available packages.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list