Skip to main content



      Home
Home » Modeling » EMF » EMF in standalone applications
EMF in standalone applications [message #380769] Thu, 04 December 2003 11:42 Go to next message
Eclipse UserFriend
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 #380770 is a reply to message #380769] Thu, 04 December 2003 12:10 Go to previous messageGo to next message
Eclipse UserFriend
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 #380775 is a reply to message #380770] Thu, 04 December 2003 14:26 Go to previous messageGo to next message
Eclipse UserFriend
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 #380865 is a reply to message #380775] Mon, 08 December 2003 06:57 Go to previous messageGo to next message
Eclipse UserFriend
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 #380866 is a reply to message #380865] Mon, 08 December 2003 07:35 Go to previous messageGo to next message
Eclipse UserFriend
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 #380868 is a reply to message #380866] Mon, 08 December 2003 09:20 Go to previous messageGo to next message
Eclipse UserFriend
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 #381510 is a reply to message #380769] Fri, 09 January 2004 23:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lehrler.infoscience.otago.ac.nz

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
Re: EMF in standalone applications [message #381515 is a reply to message #381510] Mon, 12 January 2004 09:23 Go to previous message
Eclipse UserFriend
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
Previous Topic:splitting a model into several packages, using EclipseUML or Model editor
Next Topic:Synchronization problems in generated code?
Goto Forum:
  


Current Time: Tue Oct 28 18:37:43 EDT 2025

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

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

Back to the top