-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 11 posts ] 
Author Message
 Post subject: Mapping Editor not showing up
PostPosted: Thu Mar 29, 2007 6:18 pm 
Newbie

Joined: Mon Mar 19, 2007 7:47 pm
Posts: 6
I can't seem to get to the Mapping Editor for my *.hbm.xml files.

tried setting file associations in Editor Prefs, but Mapping Editor does not show up there either... (note. Rev Eng editor does appear)

using 3.2b9... any ideas? thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 30, 2007 1:29 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
no editor at all shows up ?

what editor is opened ? It should just be the standard WTP xml editor with hbm.xml hibernate tools specific code completion.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 30, 2007 11:06 am 
Newbie

Joined: Mon Mar 19, 2007 7:47 pm
Posts: 6
thanks. got it now.


Top
 Profile  
 
 Post subject: i don't see mapping editor in file associations
PostPosted: Fri Mar 30, 2007 5:24 pm 
Newbie

Joined: Fri Mar 30, 2007 5:00 pm
Posts: 4
i'm not seeing the hibernate mapping editor in the list of editors that i can associate with a file extension. do i need to install the wtp plugin? if so, which version. i tried the 1.5.3 version but i get an error "Hibernate Tools(3.2.0.beta9) requires plugin org.eclipse.wst.common.project.facet.com (1.1.0) or later version." when i select Web Tools Platform from their update site using eclipse udate.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 31, 2007 5:16 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
b9 download included the needed dependencies and its about 6 versions ago that we had a specific HBM.XML editor; it now uses the default WTP one and just extend it at runtime.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 31, 2007 10:38 am 
Newbie

Joined: Fri Mar 30, 2007 5:00 pm
Posts: 4
thanks max. just to confirm, i don't have to associate the *.hbm.xml extension with any editor. the reason i'm asking is because i'm not seeing code completion for the DB columns so i'm assuming that the editor that i have associated to the *.xml extension is being used for hbm.xml files, xml buddy. am i off track? :>}


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 31, 2007 11:24 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
db columns completion only works if you have a console configuration associated to the project.

Ways to confirm you have the right editor:

1) the outline view says (Hibernate Tools) as the first node
2) there is code completion for classes, types and packages
3) db column completion works when you have a console configuraiton

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 02, 2007 10:51 am 
Newbie

Joined: Fri Mar 30, 2007 5:00 pm
Posts: 4
Thanks again for the help Max. The correct editor is not getting invoked. My default XML editor, XML Buddy, is being invoked for *.hbm.xml files. I tried renaming a file from hbm.xml to .hbm and the default Eclipse text editor was invoked. The icon next to a *.hbm.xml file is an XML doc overlayed with a Hibernate icon if that helps. Anything else I might be able to look at to determine why the WTP editor is not being invoked? This is NOT a critical issue. I would just like to get it working correctly. :>}


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 02, 2007 3:00 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
it's not working because XML buddy is "overriding" the default WTP XML Editor and hence doesn't enable the hibernate tools "xml editor extensions".

Don't you have a plain "XML Editor" option in "Open with..." ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 02, 2007 4:36 pm 
Newbie

Joined: Fri Mar 30, 2007 5:00 pm
Posts: 4
I did an "open with' XML Editor and got an NPE. The NPE ended up being a problem with an XMLBuddy and default XML Editor conflict. I uninstalled XMLBuddy and I now I get the correct editor when I open an hbm.xml file. Thanks for your patience and help Max.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 02, 2007 4:59 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
ah yes - XML Buddy have a bad influence on WTP....I thought later releases of XML Buddy (or WTP) had that fixed. I guess not.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 11 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.