As soon as you use Open With, the choice of editor for that specific file becomes permanent regardless of its content. The second class that you created does not reference any known GUI classes yet, so it will continue to use the Java Editor by default.
mwaschkowski wrote:Not ideal in this particular case
Designer adds the additional ability of detecting GUI files and using the Designer Editor with them by default. WIthout that, you would need to use Open With on every file that you create by hand.
mwaschkowski wrote:OK, but why not then have the designer editor smarter by not only detecting classes that extend Composite, but any class that has Composite as a parent in the class hierarchy?
the editor pre-processor...has to decide very quickly based on the raw contents of the text stream (for example, does it contain the text "com.google.gwt.user.client.ui").
but would gently disagree that this is the ideal. Reasonable (given the circumstances you have stated) yes, but ideal no. The ideal would be to have the editor pre-processor open a given java file with a designer tab if it was appropriate, not just when a class extends from Composite. But, I can now see that this is out of your hands......works as I would expect
Users browsing this forum: No registered users and 3 guests