Is it possible to use EMF in RAP? [message #506520] |
Thu, 07 January 2010 20:04 |
Eclipse User |
|
|
|
Originally posted by: fxulusoy.yahoo.com
Hi,
I have written the same question two different eclipse newsgroups. I got
only one useful reply which says that I should do some hack to be able
to emf ui plugins in RAP plugin. Lastly, I would like to ask same
question here too. Maybe somebody has an idea.
We have a RCP project which uses EMF framework and we have different
types of model elements on EMF eobjects. We want to develop lightweight
web user-interface with RAP. We don't want to use model editors. We only
would like to see some of our model elements on table or tree view in
our RAP application.
I setup my target platform which includes RAP runtime SDK, EMF plugins
and also Eclipse core plugins.
I try to use AdapterFactoryLabelProvider and
AdapterFactoryContentProvider classes. But, they don't work.
Before that, I made similar thing for some of our model elements with
using ITreeContentProvider interface and LabelProvider class. It worked
in spite of some bundle exceptions.But, I need to use emf label and
content providers.
I saw some bug reports and experimantal works to be able to use EMF
plugins in RAP projects. There are not many detailed explanations about
this issue. This is the bug report which I have already known:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=213988
How can I use EMF plugins in RAP plugin?
Thanks in advance.
Best regards.
|
|
|
Re: Is it possible to use EMF in RAP? [message #506523 is a reply to message #506520] |
Thu, 07 January 2010 20:44 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Faith,
I was hoping someone would help you on the RAP newsgroup. More comments
below.
Fatih Ulusoy wrote:
> Hi,
>
> I have written the same question two different eclipse newsgroups. I
> got only one useful reply which says that I should do some hack to be
> able to emf ui plugins in RAP plugin. Lastly, I would like to ask same
> question here too. Maybe somebody has an idea.
>
> We have a RCP project which uses EMF framework and we have different
> types of model elements on EMF eobjects. We want to develop
> lightweight web user-interface with RAP. We don't want to use model
> editors. We only would like to see some of our model elements on table
> or tree view in our RAP application.
>
> I setup my target platform which includes RAP runtime SDK, EMF plugins
> and also Eclipse core plugins.
>
> I try to use AdapterFactoryLabelProvider and
> AdapterFactoryContentProvider classes. But, they don't work.
The org.eclipse.emf.common/edit.ui plugins have dependencies that aren't
satisfied by RAP. That's why I had to create RAPified versions of them
in https://bugs.eclipse.org/bugs/show_bug.cgi?id=213988 Since that
time, things like cell editors are supported so I think less things need
to be stripped from these plugins for them to work.
>
> Before that, I made similar thing for some of our model elements with
> using ITreeContentProvider interface and LabelProvider class. It
> worked in spite of some bundle exceptions.But, I need to use emf label
> and content providers.
You might be best off to copy the source for those to develop RAPified
versions. You can look at what was changed in from the patches in the
bugzilla.
>
> I saw some bug reports and experimantal works to be able to use EMF
> plugins in RAP projects. There are not many detailed explanations
> about this issue. This is the bug report which I have already known:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=213988
>
> How can I use EMF plugins in RAP plugin?
EMF's core runtime will just work, and even the EMF Edit framework, but
you need RAPified version of the integration of the platform neutral
edit framework with the Eclipse UI. The best that's available is the
deltas you can see in the patches. You don't need all the stuff from
those plugins; just the label and content providers and their
dependencies...
>
> Thanks in advance.
>
> Best regards.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Powered by
FUDForum. Page generated in 0.02965 seconds