[
http://jira.jboss.com/jira/browse/JBIDE-509?page=comments#action_12398923 ]
Victor Rubezhny commented on JBIDE-509:
---------------------------------------
Case: Link from the Seam Variable Name in the @Factory annotation value attribute to its
declaration (for example, @Factory("mess|ageList"), where "|" is the
current cursor position):
1.a. User moves the mouse cursor over the Seam Variable Name in the value of the @Factory
annotation within the component while Ctrl key is pressed. The variable is highlighted and
underlined in the editor. User clicks left mouse button while Ctrl-key still is pressed.
- or -
1.b. User sets the cursor into or selects the Seam Variable Name in the value of the
@Factory annotation within the component and then presses F3 key.
2. The following steps will be performed:
2.a. If return type of the selected factory method is void we have to search for the
declaration (@Out/@DataBinder) in the same component. If it is found it will be revealed
and selected in the editor
(if it is contained in super-class, the appropriate class will be openned in the editor).
2.b Else if return type of the selected factory method is not void then the factory itself
decrares the Seam variable - the factory itself to be selected.
intelligent navigation support for seam variable names
------------------------------------------------------
Key: JBIDE-509
URL:
http://jira.jboss.com/jira/browse/JBIDE-509
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: Seam
Reporter: Max Andersen
Assigned To: Victor Rubezhny
Fix For: 2.1
@DataModel
private List<Message> messageList;
@Factory("messageList")
public void findMessages()
{
messageList = em.createQuery("from Message msg order by msg.datetime
desc").getResultList();
}
- link from messageList to its @Factory method, and link from "messageList" to
the property.
- ctrl+G shows related locations in .java, .xhtml, components.xml, etc.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira