Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Is it possible to use EMF in RAP?
Is it possible to use EMF in RAP? [message #506520] Thu, 07 January 2010 20:04 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30628
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.
Re: Is it possible to use EMF in RAP? [message #506549 is a reply to message #506520] Thu, 07 January 2010 23:09 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6511
Registered: July 2009
Senior Member
Am 07.01.10 21:04, schrieb Fatih Ulusoy:
> 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.

Why do you need to use them? There's nothing easier than useing
EMF-Databinding + JFace-Databinding in RAP and then you don't have the
dependencies on EMF-UI stuff which is not working yet in RAP as you
found out.

Naturally it would be best to make EMF-UI run in RAP but the above is
the only solution if you are not able to fix EMF-UI stuff.

Tom
Previous Topic:Re: teneo, databinding, model and a treeview
Next Topic:[CDO] Temporality + fine grained access control
Goto Forum:
  


Current Time: Wed Nov 13 21:16:20 GMT 2019

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

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

Back to the top