Stefan Falk
Stefan Falk

Reputation: 25387

Eclipse & GWT - Associate .ui.xml with corresponding .java file

The thing is this:

enter image description here

HomeViewImpl.ui.xml gets separated from its corresponding Java file HomeViewImpl.java in the Project Explorer of Eclipse. This is getting increasingly annoying as the amount of files inside a package increases.

Is there a way to tell Eclipse to either sort the files inside the Java packages strictly by name or to associate the .ui.xml files such that they are child elements of the <file-name>.java node in the tree?


Feature request on bugs.eclipse.org

Upvotes: 4

Views: 137

Answers (2)

Youssef Lahoud
Youssef Lahoud

Reputation: 529

It seems like in Project Explorer file sorting is not an option.
But if it's not a problem to you, you can switch to the Navigator view which allows you to sort files the way you want. Window > Show View > Navigator

Once you switch to navigator you get the option to sort files by name. enter image description here

Upvotes: 1

aglassman
aglassman

Reputation: 2653

I keep composities and .ui.xml views in a package structure that seperates them by model. As long as you aren't mixing views within a package, it will stay manageable.

Example

Upvotes: 0

Related Questions