Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Open form view with data
Open form view with data [message #460626] Fri, 22 December 2006 23:11 Go to next message
Eclipse UserFriend
Originally posted by: jelgolfnut.gmail.com

This may be one of those so obvious that you miss it, but here goes.....
I've starting coverting my swing app to rcp. I've implemented the tree
navigator and want to be able to dbl-click on a name and have the detail
information appear in a form suitable for updating the information....Is
there a good example that shows this? My main questions are passing the
key info from the navigator view to the form, and where is the best place
to make database accesses for the detail data (in the createPartControl or
some other method)? Thanks
Re: Open form view with data [message #460632 is a reply to message #460626] Sat, 23 December 2006 18:56 Go to previous message
Eclipse UserFriend
JimL wrote:
> This may be one of those so obvious that you miss it, but here goes.....
> I've starting coverting my swing app to rcp. I've implemented the tree
> navigator and want to be able to dbl-click on a name and have the detail
> information appear in a form suitable for updating the information....Is
> there a good example that shows this? My main questions are passing the
> key info from the navigator view to the form, and where is the best
> place to make database accesses for the detail data (in the
> createPartControl or some other method)? Thanks
>
If you really want to open the form on a double-click, you're probably
looking at an editor.

http://wiki.eclipse.org/index.php/The_Official_Eclipse_FAQs# Generic_Editors

Alternatively, you might consider having the information edited in a
separate view. Perhaps, the view could display/edit information about
the currently selected object (sort of like what the properties view
does). Just a thought.

In terms of database access, your best bet is to keep this separate from
the view. I tend to create different plug-ins for each layer of my
application: model, view, data, etc. Your "data" plug-in could contain a
class that's the entry point for data loading. In the end, it depends on
how you access data. If you're using EMF, you'd access data through the
EMF plug-in; if you're using Hibernate, you'd access data through the
Hibernate plug-in. etc.

HTH,

Wayne
Previous Topic:how to implement option similar as "New editor" in my application and then synchronize scr
Next Topic:Problems launching RCP client with Java 6
Goto Forum:
  


Current Time: Tue Apr 15 02:55:59 EDT 2025

Powered by FUDForum. Page generated in 0.07186 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top