Reputation: 2613
Is there a way how to search in Eclipse E4XMI editor, preferably by elementId?
Example: Searching for com.example.e4.rcp.todo.popupmenu.table, from Lars Vogel's sample Todo application. I am looking for any tool that would take me quickly from here:
to here:
Even for a small sample application it is laborious process, especially for anyone in process of mastering PDE.
The form tab does not provide any visible search field. The list tabs provides two filter controls but none of them seems to find my sample element ID.
The XMI tab, the raw XML, has a search bar, but it's buggy. After some struggle I was able to locate the element there, hooray, but there is no link back to form, for more comfortable editing.
Upvotes: 0
Views: 407
Reputation: 2613
Surprisingly, there is a search box in Form tab. It is just not turn on by default. To make it appear go to Window -> Preferences -> Model Editor -> check "Searchable tree on form tab"
Credits to Lars Vogel for notifying me, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=516167#c2
Unfortunately it has bugs and limitations. It makes XMI tab read only, I can live with that. One cannot copy to it, only type to it; that is worse. And worst of all, it frequently does not find everything it should :(
Upvotes: 1
Reputation: 111142
On the 'List' tab of the e4xmi editor you can click on the 'elementId' column header to get the elements sorted by id which should make it easy to find the element you want.
Clicking on the first column (labelled 'Go') will take you to the element in the 'Form' tab.
Upvotes: 1