| EMF in standalone applications [message #380769] |
Thu, 04 December 2003 11:42  |
Eclipse User |
|
|
|
The entry in the FAQ about whether EMF models can be used in standalone
applications at
http://dev.eclipse.org/viewcvs/indextools.cgi/~checkout~/emf -home/faq.html#dev_standalone
leaves several questions unanswered.
By 'EMF model' is it just talking about the generated java files in the
plugin project and not about the corresponding "edit" and "editor"
plugins projects? In particular how does the standalone application
invoke the plugin editor?Is it possible to use the generated "editor"
plugin in a standalone application? How does the main program
communicate with the editor (such as if it needs to pass the names of
files with which the editor is to start up)?
Is there some document which can give me the answers to these questions?
thanks for considering,
-rajesh
|
|
|
|
|
|
|
| Re: EMF in standalone applications [message #380868 is a reply to message #380866] |
Mon, 08 December 2003 09:20   |
Eclipse User |
|
|
|
Ed,
I'm not intimately familiar with all the dependencies of the generated
model, .edit, and .editor plugins with the forthcoming 3.0 compatible
driver. But if these don't depend on any plugins not provided by the RCP
(such as JDT plugins), then the editor should work just fine.
The developer will just have to provide a simple application plugin (or
extend the .editor plugin) to extend the extension points
org.eclipse.core.runtime.applications and org.eclipse.ui.perspectives (a
default perspetive is required) and provide a WorkbenchAdvisor
implementation. All this should be quite simple. Take a look at this
tutorial to get an idea:
http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform -ui-home/rcp-proposal/rcp_tutorial/index.html.
Maybe this is even something that could be generated by EMF?
Hopefully you'll be able to get an 3.0 M5 compatible driver out this week
:-)
--knut
"Ed Merks" <merks@ca.ibm.com> wrote in message
news:3FD4701E.F14779CA@ca.ibm.com...
> Knut,
>
> Thanks for pointing out that the EMF.Edit support does work standalone.
It's only the
> integrated editors that require Eclipse. Unfortunately, I haven't looked
at the rich client
> stuff yet, so I'm not sure if there's anything we need to do to support
it. What do you
> think will be involved? (We are up and running with JDK 1.4 and Eclipse
3.0 M5 internally
> now, so maybe that's all that's needed.)
>
>
> Knut Wannheden wrote:
>
> > I've used the .edit plugins in standalone applications. Works great!
> >
> > Do you already have plans to get the .editor part working with the
> > forthcoming Rich Client Platform of Eclipse 3.0?
> >
> > --knut
> >
> > "Ed Merks" <merks@ca.ibm.com> wrote in message
> > news:3FCF8A63.6CE6BC9D@ca.ibm.com...
> > > Rajesh,
> > >
> > > The .edit projects can be used standalone (although you'd need to put
the
> > plugin.properties and
> > > icons into a resource jar), but the .editor projects are tightly
> > integrated Eclipse components
> > > that will only function within an Eclipse environment.
> > >
> > >
> > > Rajesh Kumar wrote:
> > >
> > > > The FAQ on the website does not mention the generated "editor"
plugin
> > > > when it talks about standalone execution of the EMF model. Is there
a
> > > > clean way to use the generated editor in a standalone application?
> > > >
> > > > all comments/suggestions are greatly appreciated.
> > > >
> > > > Rajesh Kumar wrote:
> > > > > The entry in the FAQ about whether EMF models can be used in
> > standalone
> > > > > applications at
> > > > >
> >
http://dev.eclipse.org/viewcvs/indextools.cgi/~checkout~/emf -home/faq.html#dev_standalone
> > > > >
> > > > > leaves several questions unanswered.
> > > > >
> > > > > By 'EMF model' is it just talking about the generated java files
in
> > the
> > > > > plugin project and not about the corresponding "edit" and "editor"
> > > > > plugins projects? In particular how does the standalone
application
> > > > > invoke the plugin editor?Is it possible to use the generated
"editor"
> > > > > plugin in a standalone application? How does the main program
> > > > > communicate with the editor (such as if it needs to pass the names
of
> > > > > files with which the editor is to start up)?
> > > > >
> > > > > Is there some document which can give me the answers to these
> > questions?
> > > > >
> > > > > thanks for considering,
> > > > > -rajesh
> > > > >
> > >
>
|
|
|
|
| Re: EMF in standalone applications [message #381515 is a reply to message #381510] |
Mon, 12 January 2004 09:23  |
Eclipse User |
|
|
|
Lars,
Yes, you need to add to the classpath all the jars for the plugins (and their dependent plugins) that you want to use
standalone. We didn't list them explicitly in the FAQ since the list is dependent on exactly what plugins you want to use
and is available by looking at the runtime libraries in their plugin.xml files.
Frank.
Lars Ehrler wrote:
> I used the FAQ to get my application working standalone.
> I had to add the jars:
> org.eclipse.emf.common.common.jar
> org.eclipse.emf.ecore.ecore.jar
> org.eclipse.emf.ecore.xmi.ecore.xmi.jar
>
> - otherwise it would not compile. This is not mentioned in the FAQ. Did I do something wrong or is this a missing point
> in the FAQ ?
>
> (I don't want to use the edit-framework but only the generated model itself).
>
> Thanks
> Lars
|
|
|
Powered by
FUDForum. Page generated in 0.07599 seconds