[
http://jira.jboss.com/jira/browse/JBIDE-509?page=comments#action_12398924 ]
Victor Rubezhny commented on JBIDE-509:
---------------------------------------
Case: Link from Seam Variable name used in Seam EL expression (XHTML/XML/Java Strings in
JavaEditor) to it's declaration/factory (for example, #{mess|ageList.size}, where
"|" is the current cursor position):
1.a. User moves the mouse cursor over the Seam Variable Name in the Seam EL expression
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 Seam EL expression
and then presses F3 key.
2. The following steps will be performed:
2.a. The @Name or @Role annotations with the same name will be found in the Seam model of
the project. If there will be at least one @Name or @Role annotation found the source file
with that annotation will be opened in the editor (or brought to front if the editor is
already openned), and the annotation found will be revealed and selected in the editor.
2.b. If not, The @Factory annotation with the same name will be found in the Seam model of
the project. If there will be at least one @Factory annotation found the source file with
that annotation will be opened in the editor (or brought to front if the editor is already
openned), and the annotation found will be revealed and selected in the editor.
2.c. If not, The @Out/@DataBinder annotation with the same name will be found in the Seam
model of the project. If there will be at least one @Out/@DataBinder annotation found the
source file with that annotation will be opened in the editor (or brought to front if the
editor is already openned), and the annotation found will be revealed and selected in the
editor.
2.d. If not, no linkage will be performed. Error message will appear in the editor's
status line
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