|Where is the RCP source when using EMF? [message #513714]
||Wed, 10 February 2010 22:33
| Herb Miller
Registered: January 2010
I have taken a model and used EMF to generate interfaces, impls, edit and editor code (plus a few others - standard EMF output). Then I used this code as the basis of an RCP project, which I used to make a stand-alone product. Everything actually worked, which really amazed me.|
Now I would like to modify the display. I want to add some forms instead of just the vanilla (although useful) GUI that is generated when exporting a product.
I tried exporting the source code, but it only gave me the code that I already had from the EMF project. I could not find the RCP code.
Any idea how I can find the code added by the RCP translation?
Or, any idea how I can accomplish what I want to do?
|Re: Where is the RCP source when using EMF? [message #513960 is a reply to message #513934]
||Thu, 11 February 2010 18:59
| Ed Merks
Registered: July 2009
Herb Miller wrote:
> I wanted to modify the GUI with some forms for data entry instead of
> the default property sheet, so I needed to override/change some of the
> GUI code produced by RCP.
The EEF project has nice forms. I'm not sure it works with RCP. I
imagine it should work fine there...
> Plus, I am going to need to know how to hook up the model data to the
> forms so the model can be updated correctly.
EEF would take care of that...
> I think I found the GUI hooks. The RCP translation builds a new file
> called MyAppEditorAdvisor. There seems to be a lot of GUI stuff in
> that file (Perspective, createInitialLayout, WorkbenchAdvisor,
> WindowAdvisor, etc.). I will have to figure out how to use these
> properly in order to change the GUI, correct?
Yes, to change the overall layout of the perspective.
> How hard will it be to hook up any new forms I create for the GUI to
> the model data?
If EEF isn't your thing, the data binding integration with EMF should be
useful. Tom Schindl has some very nice blogs about how to use that.
Powered by FUDForum
. Page generated in 0.02439 seconds