[XPAND] Update of XPAND Content Assistant when changing Metamodel [message #900673] |
Wed, 08 August 2012 02:40  |
Eclipse User |
|
|
|
Hello guy,
I have following situation:
- 1 Eclipse Plugin with the ecore metamodel.
- 1 Eclipse Plugin with MWE workflow and XPAND script for code generation using metamodel of other plugin.
To get Code Assistand of XPAND Editor working I added the folder of the metamodel to the java build path of the generator plugin (Project properties->java build path->libraries->add class folder).
This is basicly working, but when I do changes in the metamodel, XPAND code assistant does not get updated automatically. I have to readd the metamodel folder to the build path, that code assistant get updated with metamodel changes.
Is there a better whay ?
Kind regards,
Patrick
|
|
|
|
|
|
Re: [XPAND] Update of XPAND Content Assistant when changing Metamodel [message #901046 is a reply to message #901044] |
Thu, 09 August 2012 10:13   |
Eclipse User |
|
|
|
Here is the Manifest file of my generator plugin:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: com.ksb.devicedescription.cgenerator
Bundle-SymbolicName: com.ksb.devicedescription.cgenerator; singleton:=true
Bundle-Version: 1.0.0
Require-Bundle: org.eclipse.jdt.core;bundle-version="3.5.0",
org.eclipse.xtend.profiler;resolution:=optional,
org.apache.commons.logging,
org.apache.log4j;resolution:=optional,
com.ibm.icu;bundle-version="4.0.1",
org.antlr.runtime;bundle-version="3.0.0",
org.eclipse.core.runtime;bundle-version="3.5.0",
org.eclipse.emf.mwe.utils;bundle-version="0.7.0",
org.eclipse.emf.ecore.xmi;bundle-version="2.5.0",
org.eclipse.jface.text;bundle-version="3.5.0",
org.eclipse.xpand;bundle-version="0.7.0",
org.eclipse.xtend;bundle-version="0.7.0",
org.eclipse.xtend.typesystem.emf;bundle-version="0.7.0",
org.eclipse.ui.console;bundle-version="3.5.100",
org.eclipse.jface;bundle-version="3.8.0"
devicedescription.model;bundle-version="1.0.0",
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Export-Package: com.ksb.devicedescription.cgenerator
Import-Package: devicedescription
Bundle-ClassPath: .
The ecore model is located in plugin: devicedescription.model
[Updated on: Thu, 09 August 2012 10:14] by Moderator
|
|
|
|
Re: [XPAND] Update of XPAND Content Assistant when changing Metamodel [message #901063 is a reply to message #901050] |
Thu, 09 August 2012 11:08  |
Eclipse User |
|
|
|
Found the problem:
I have the ecore model path added in the generator plugin as class folder. But the ecore model path must be added as class folder to the plugin of the model, then auto update of code assistant is working.
I did not tried javabeans metamodel, since I always created my metamodels with ecore.
In short, main advantages of javabeans metamodel?
[Updated on: Thu, 09 August 2012 11:11] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04212 seconds