maxxyme
maxxyme

Reputation: 2344

How to disable Hibernate 3.0 XML Editor in Eclipse?

I had to install JBoss Tools in my work environment, and JBoss Tools includes Hibernate Tools. So now the *.hbm.xml are opened in the Hibernate 3.0 XML Editor, under its "Tree" view. And I don't like it, I prefer raw xml ("Source" view).

I had the same problem with Maven's pom.xml opening in its "Overview" view (such Maven editor through m2e-wtp I guess). To let them be opened in the "Source" view, I just had to check this option "Open XML page in the POM editor by default" in the preferences Maven > User Interface. But Hibernate doesn't have such preferences in Eclipse.

So how do I configure to get all *.hbm.xml opened in the "Source" view?

PS: Win 7 Eclipse Juno R2 JBossAS Tools 2.4.1 (+ Hibernate Tools 3.6.0)

Upvotes: 3

Views: 1110

Answers (1)

Kai
Kai

Reputation: 39651

Go to Window -> Preferences -> General -> File Associations and associate Text Editor as the default editor to *.hbm.xml files.

Upvotes: 1

Related Questions