-->
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.  [ 4 posts ] 
Author Message
 Post subject: Navigating from the config view to the associated files
PostPosted: Wed Jan 18, 2006 3:21 pm 
Newbie

Joined: Fri Sep 12, 2003 4:01 pm
Posts: 19
There's a JIRA entry asking for an easy means to get from a configuration node (in the Hibernate Configuration view in the Console) to the associated properties, mapping, and configuration files. I see two straightforward ways to do this: via a menu item, as suggested in the JIRA entry, or via nested subnodes in parallel with the existing one for Session Factory, Database, etc.

Regarding menu items, this could be a popup menu, or via entries in the existing top-level Navigate menu, or both.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 18, 2006 3:29 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
yes?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 18, 2006 3:50 pm 
Newbie

Joined: Fri Sep 12, 2003 4:01 pm
Posts: 19
There's some implicit questions there -- which method is prefererable from a UI design standpoint.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 18, 2006 4:06 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
I would probably prefer having a context menu that works on any kind of node below a Console Configuration node that would get me there.

Something like a submenu with dynamically generated content depending on the node.

So e.g. on a "Console Configuration" node (or children) with both hibernate.properties and hibernate.cfg.xml i would have:

Code:
Quick navigate >
  hibernate.properties
  hibernate.cfg.xml


with only a hibernate.cfg.xml:

Code:
 
Quick navigate >
  hibernate.cfg.xml   


and the "advanced" next step is to have the following on a entity node:
Code:
 
Quick navigate >
  Find entity mapping
  hibernate.cfg.xml   


Where "Find entity mapping" will locate it based on heuristics (since we actually don't know where it is coming from at the moment - we should add that in the future).
The heuristics will be to assume that the file is in the source path under the <package.name>.<fullclassname>.hbm.xml

/max

_________________
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.  [ 4 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.