Where is the RCP source when using EMF? [message #513714] |
Wed, 10 February 2010 17:33  |
Eclipse User |
|
|
|
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?
Thanks.
|
|
|
|
|
Re: Where is the RCP source when using EMF? [message #513960 is a reply to message #513934] |
Thu, 11 February 2010 13:59   |
Eclipse User |
|
|
|
Herb,
Comments below.
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.
>
> Thanks.
>
>
|
|
|
|
|
Re: Where is the RCP source when using EMF? [message #514175 is a reply to message #514164] |
Fri, 12 February 2010 12:17  |
Eclipse User |
|
|
|
Yes, I would say they have been pretty responsive. But I make so many mistakes myself, I usually spend a lot of time re-doing the steps of the tutorial trying to find where I did something wrong. I hate to ask a dumb question.
I am still tracking down the EEF tutorial problem I am having in the EMFT forum. I think the 1st part of my problem "refreshing the edit project" was not in the tutorial. I was using this tutorial:
http://wiki.eclipse.org/EEF_tutorial_:_First_generation#EEF_ generation_with_EMF_treeview_editor
I was sent a link to another one with a video. I don't think the refresh step is there either, but I don't hear any audio. It could be in the audio. Anyway, I am still working that one.
Thanks for the link to the databinding info. I can be multiplexing databinding and EEF in order not to be spinning my wheels.
Thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.46271 seconds