Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » generating RCP application
generating RCP application [message #388615] Thu, 14 October 2004 18:35 Go to next message
anupama is currently offline anupamaFriend
Messages: 37
Registered: July 2009
Member
Hi,
I read the tutorial EMF goes RCP and tried.it out.
I have EMF 2.0 version with eclipse 3.0 and I could set the option
rcp=true in the genmodel file properties but the code generated did not
reflect the changes mentioned in the tutorial. (Changes in the plgin.xml
in editor package)
Here is the plugin.xml from library.editor pacahage
<!--
/**
* <copyright>
* </copyright>
*
* $Id$
*/
-->

<plugin
name = "%pluginName"
id = "library rcp.editor"
version = "1.0.0"
provider-name = "%providerName"
class =
" com.example.library.presentation.LibraryEditorPlugin$Impleme ntation ">

<requires>
<import plugin="org.eclipse.core.runtime" />
<import plugin="library rcp.edit" export="true"/>
<import plugin="org.eclipse.emf.ecore.xmi" export="true"/>
<import plugin="org.eclipse.emf.edit.ui" export="true"/>
</requires>

<runtime>
<library name="runtime/">
<export name="*"/>
</library>
</runtime>

<extension point = "org.eclipse.ui.editors">
<editor
id = "com.example.library.presentation.LibraryEditorID"
name = "%_UI_LibraryEditor_label"
icon = "icons/full/obj16/LibraryModelFile.gif"
extensions = "library"
class = "com.example.library.presentation.LibraryEditor"

contributorClass=" com.example.library.presentation.LibraryActionBarContributor "
>
</editor>
</extension>
</plugin>

I am using following build for EMF
Eclipse Modeling Framework (EMF)
Version: 2.0.0
Build id: 200405200923

Am i not doing smething correctly or do I need a diffrent build?
Thanks
-ANupama
Re: generating RCP application [message #388617 is a reply to message #388615] Thu, 14 October 2004 18:45 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------010309070802040500060801
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Anupama,

Unfortunately we are not able to regenerate the plugin.xml, so once it
exists, it won't ever be modified by the generator. Deleting it will
allow you to regenerate it from scratch.


anupama wrote:

>Hi,
> I read the tutorial EMF goes RCP and tried.it out.
>I have EMF 2.0 version with eclipse 3.0 and I could set the option
>rcp=true in the genmodel file properties but the code generated did not
>reflect the changes mentioned in the tutorial. (Changes in the plgin.xml
>in editor package)
>Here is the plugin.xml from library.editor pacahage
><!--
>/**
> * <copyright>
> * </copyright>
> *
> * $Id$
> */
>-->
>
><plugin
> name = "%pluginName"
> id = "library rcp.editor"
> version = "1.0.0"
> provider-name = "%providerName"
> class =
>" com.example.library.presentation.LibraryEditorPlugin$Impleme ntation ">
>
> <requires>
> <import plugin="org.eclipse.core.runtime" />
> <import plugin="library rcp.edit" export="true"/>
> <import plugin="org.eclipse.emf.ecore.xmi" export="true"/>
> <import plugin="org.eclipse.emf.edit.ui" export="true"/>
> </requires>
>
> <runtime>
> <library name="runtime/">
> <export name="*"/>
> </library>
> </runtime>
>
> <extension point = "org.eclipse.ui.editors">
> <editor
> id = "com.example.library.presentation.LibraryEditorID"
> name = "%_UI_LibraryEditor_label"
> icon = "icons/full/obj16/LibraryModelFile.gif"
> extensions = "library"
> class = "com.example.library.presentation.LibraryEditor"
>
>contributorClass=" com.example.library.presentation.LibraryActionBarContributor "
>
>
> </editor>
> </extension>
></plugin>
>
>I am using following build for EMF
>Eclipse Modeling Framework (EMF)
>Version: 2.0.0
>Build id: 200405200923
>
>Am i not doing smething correctly or do I need a diffrent build?
>Thanks
>-ANupama
>
>
>


--------------010309070802040500060801
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Anupama,<br>
<br>
Unfortunately we are not able to regenerate the plugin.xml, so once it
exists, it won't ever be modified by the generator.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: generating RCP application [message #388623 is a reply to message #388617] Thu, 14 October 2004 23:34 Go to previous messageGo to next message
anupama is currently offline anupamaFriend
Messages: 37
Registered: July 2009
Member
I dont think I understood u correctly. Do you mean that if the generated
EMF project and its plugins already exists, you can regenarate the
plugin.xml in that project again. Am I getting it correctly or you are
talking in terms of the fulkl workspace?
I created a new EMF project from the library.xsd and when the genmodel
file was created then selected RCP=true and then did generate ALL.
WHat am I missing here?Or do I needa latest build of EMF than what I have.?
Thanks
-Anupama

Ed Merks wrote:

> Anupama,

> Unfortunately we are not able to regenerate the plugin.xml, so once it
> exists, it won't ever be modified by the generator. Deleting it will
> allow you to regenerate it from scratch.


> anupama wrote:

> >Hi,
> > I read the tutorial EMF goes RCP and tried.it out.
> >I have EMF 2.0 version with eclipse 3.0 and I could set the option
> >rcp=true in the genmodel file properties but the code generated did not
> >reflect the changes mentioned in the tutorial. (Changes in the plgin.xml
> >in editor package)
> >Here is the plugin.xml from library.editor pacahage
> ><!--
> >/**
> > * <copyright>
> > * </copyright>
> > *
> > * $Id$
> > */
> >-->
> >
> ><plugin
> > name = "%pluginName"
> > id = "library rcp.editor"
> > version = "1.0.0"
> > provider-name = "%providerName"
> > class =
> >" com.example.library.presentation.LibraryEditorPlugin$Impleme ntation ">
> >
> > <requires>
> > <import plugin="org.eclipse.core.runtime" />
> > <import plugin="library rcp.edit" export="true"/>
> > <import plugin="org.eclipse.emf.ecore.xmi" export="true"/>
> > <import plugin="org.eclipse.emf.edit.ui" export="true"/>
> > </requires>
> >
> > <runtime>
> > <library name="runtime/">
> > <export name="*"/>
> > </library>
> > </runtime>
> >
> > <extension point = "org.eclipse.ui.editors">
> > <editor
> > id = "com.example.library.presentation.LibraryEditorID"
> > name = "%_UI_LibraryEditor_label"
> > icon = "icons/full/obj16/LibraryModelFile.gif"
> > extensions = "library"
> > class = "com.example.library.presentation.LibraryEditor"
> >
>
>contributorClass=" com.example.library.presentation.LibraryActionBarContributor "
> >
> >
> > </editor>
> > </extension>
> ></plugin>
> >
> >I am using following build for EMF
> >Eclipse Modeling Framework (EMF)
> >Version: 2.0.0
> >Build id: 200405200923
> >
> >Am i not doing smething correctly or do I need a diffrent build?
> >Thanks
> >-ANupama
> >
> >
> >
Re: generating RCP application [message #388626 is a reply to message #388623] Fri, 15 October 2004 11:13 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030604090601080905050407
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Anupama,

Since you talked about *changes *in the plugin.xml, I assumed you were
*re*generating it from a previous version and were expecting it to
change. Once the file plugin.xml exists, the generator will not change
it. (And I'm only talking about this one file, not about anything more
general.)

Trying with a new project as you say you have done, I see stuff like
this in the .editor's plugin.xml:

<extension
point="org.eclipse.core.runtime.applications"
id="LibraryEditorAdvisorApplication">
<application>
<run

class=" com.example.library.presentation.LibraryEditorAdvisor$Applic ation ">
</run>
</application>
</extension>

So I don't really know what you are doing wrong. Perhaps you haven't
deleted the old projects and aren't really creating fresh new projects.
Try removing the plugin.xml and generating again...


anupama wrote:

>I dont think I understood u correctly. Do you mean that if the generated
>EMF project and its plugins already exists, you can regenarate the
>plugin.xml in that project again. Am I getting it correctly or you are
>talking in terms of the fulkl workspace?
> I created a new EMF project from the library.xsd and when the genmodel
>file was created then selected RCP=true and then did generate ALL.
>WHat am I missing here?Or do I needa latest build of EMF than what I have.?
>Thanks
>-Anupama
>
>Ed Merks wrote:
>
>
>
>>Anupama,
>>
>>
>
>
>
>>Unfortunately we are not able to regenerate the plugin.xml, so once it
>>exists, it won't ever be modified by the generator. Deleting it will
>>allow you to regenerate it from scratch.
>>
>>
>
>
>
>
>>anupama wrote:
>>
>>
>
>
>
>>>Hi,
>>>I read the tutorial EMF goes RCP and tried.it out.
>>>I have EMF 2.0 version with eclipse 3.0 and I could set the option
>>>rcp=true in the genmodel file properties but the code generated did not
>>>reflect the changes mentioned in the tutorial. (Changes in the plgin.xml
>>>in editor package)
>>>Here is the plugin.xml from library.editor pacahage
>>><!--
>>>/**
>>>* <copyright>
>>>* </copyright>
>>>*
>>>* $Id$
>>>*/
>>>-->
>>>
>>><plugin
>>> name = "%pluginName"
>>> id = "library rcp.editor"
>>> version = "1.0.0"
>>> provider-name = "%providerName"
>>> class =
>>>" com.example.library.presentation.LibraryEditorPlugin$Impleme ntation ">
>>>
>>> <requires>
>>> <import plugin="org.eclipse.core.runtime" />
>>> <import plugin="library rcp.edit" export="true"/>
>>> <import plugin="org.eclipse.emf.ecore.xmi" export="true"/>
>>> <import plugin="org.eclipse.emf.edit.ui" export="true"/>
>>> </requires>
>>>
>>> <runtime>
>>> <library name="runtime/">
>>> <export name="*"/>
>>> </library>
>>> </runtime>
>>>
>>> <extension point = "org.eclipse.ui.editors">
>>> <editor
>>> id = "com.example.library.presentation.LibraryEditorID"
>>> name = "%_UI_LibraryEditor_label"
>>> icon = "icons/full/obj16/LibraryModelFile.gif"
>>> extensions = "library"
>>> class = "com.example.library.presentation.LibraryEditor"
>>>
>>>
>>>
>>contributorClass=" com.example.library.presentation.LibraryActionBarContributor "
>>
>>
>>>
>>>
>>> </editor>
>>> </extension>
>>></plugin>
>>>
>>>I am using following build for EMF
>>>Eclipse Modeling Framework (EMF)
>>>Version: 2.0.0
>>>Build id: 200405200923
>>>
>>>Am i not doing smething correctly or do I need a diffrent build?
>>>Thanks
>>>-ANupama
>>>
>>>
>>>
>>>
>>>
>
>
>
>


--------------030604090601080905050407
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Anupama,<br>
<br>
Since you talked about <b>changes </b>in the plugin.xml, I assumed
you were <b>re</b>generating it from a previous version and were
expecting it to change.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[Newbie] Is EMF only for structured data model like tree-structure or table-structure?
Next Topic:Switching from Rose model definition to Java model definition
Goto Forum:
  


Current Time: Fri Mar 29 10:17:44 GMT 2024

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

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

Back to the top