Home » Eclipse Projects » Sirius » Problem: Include queries written in separate acceleo mtl file
|
Re: Problem: Include queries written in separate acceleo mtl file [message #1574610 is a reply to message #1573209] |
Tue, 20 January 2015 10:17 |
|
Hello,
Did you checked that the Acceleo queries file has been added to your
build. Check into the MANIFEST.MF then the build tab, is the file
selected in the Binary Build view?
How did you build your update site? Feature+Update site project? p2? Tycho?
Regards,
Steve
Le 19/01/2015 16:57, Wilbert Alberts a écrit :
> Hi,
>
> I try to create a VSP project that uses a dedicated mtl file holding a
> number of queries that I like to use in the editor description file.
>
> The information in the help is rather terse (or my knowledge is still to
> shallow).
>
> Though it worked in my design environment, it did not work after
> deploying to an update site and having someone else try to install and
> use it (from that update site). The error log indicated that the
> queries, the editor was referring to, could not be found.
>
> What is the proper way to create an mtl file with some queries, exploit
> them in the *.odesign file and to deploy the editor?
>
> So far I did:
> - create the mtl file and put it into the package that is also holding
> the (generated) Activator.java
> - add a java extension to the viewpoint having it refer to the acceleo
> module (using the double colon syntax)
> - invoked the queries
> - tested it - ensured that org.eclipse.sirius.common.acceleo.mtl is
> present in the dependencies of the vsp projects.
> - deployed the project (including the ones having the meta model, edit,
> editor implementation etc.) to a local update site.
>
> What am I missing?
>
> Greetings,
> Wilbert.
>
>
>
--
Steve Monnier - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Re: Problem: Include queries written in separate acceleo mtl file [message #1574745 is a reply to message #1574610] |
Tue, 20 January 2015 12:05 |
Wilbert Alberts Messages: 209 Registered: June 2010 |
Senior Member |
|
|
Hi Steve,
Thanks for your suggestion.
I checked that the folder (and file) are present in the build. In stead of building an update site, now I exported the relevant plugins using the 'export deployable plugins and fragments' option. I copied the exported plugins into the dropins folder of a separate eclipse instance. I inspected the jar file containing the vsp project. I see that it contains the queries.mtl file. However execution of a popup menu action resulting in the invocation of one of the queries contained in the mtl file results in:
Compilation error for expression [self.oclAsType(NamedElement).getWalb()/] : Cannot find operation (getWalb()) for the type (NamedElement)
This is the manifest file (of the vsp project):
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: DCA.metamodel.vsp
Bundle-SymbolicName: DCA.metamodel.vsp;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: DCA.metamodel.vsp.Activator
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.core.resources,
org.eclipse.sirius,
org.eclipse.sirius.common.acceleo.mtl
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
The build.properties file
source.. = src/
output.. = bin/
bin.includes = META-INF/,\
.,\
description/,\
plugin.xml,\
icons/,\
src/
customBuildCallbacks = build.acceleo
The plugin.xml
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin>
<extension point="org.eclipse.sirius.componentization">
<component class="DCA.metamodel.vsp.Activator"
id="DCA.metamodel.vsp"
name="vsp">
</component>
</extension>
</plugin>
I have no additional build system installed so I think I simply use the provided p2 based tools?
Greetings,
Wilbert.
|
|
|
Re: Problem: Include queries written in separate acceleo mtl file [message #1575003 is a reply to message #1574745] |
Tue, 20 January 2015 15:19 |
|
Hello,
Your issue looks like this one:
https://www.eclipse.org/forums/index.php/t/800329/ . Can you check if
this solves your issue? There is also a sample in the linked post
https://www.eclipse.org/forums/index.php/mv/msg/797227/1405932/#msg_1405932
Regards,
Steve
Le 20/01/2015 13:05, Wilbert Alberts a écrit :
> Hi Steve,
>
> Thanks for your suggestion.
>
> I checked that the folder (and file) are present in the build. In stead
> of building an update site, now I exported the relevant plugins using
> the 'export deployable plugins and fragments' option. I copied the
> exported plugins into the dropins folder of a separate eclipse instance.
> I inspected the jar file containing the vsp project. I see that it
> contains the queries.mtl file. However execution of a popup menu action
> resulting in the invocation of one of the queries contained in the mtl
> file results in:
>
> Compilation error for expression
> [self.oclAsType(NamedElement).getWalb()/] : Cannot find operation
> (getWalb()) for the type (NamedElement)
>
> This is the manifest file (of the vsp project):
>
> Manifest-Version: 1.0
> Bundle-ManifestVersion: 2
> Bundle-Name: DCA.metamodel.vsp
> Bundle-SymbolicName: DCA.metamodel.vsp;singleton:=true
> Bundle-Version: 1.0.0.qualifier
> Bundle-Activator: DCA.metamodel.vsp.Activator
> Require-Bundle: org.eclipse.ui,
> org.eclipse.core.runtime,
> org.eclipse.core.resources,
> org.eclipse.sirius,
> org.eclipse.sirius.common.acceleo.mtl
> Bundle-ActivationPolicy: lazy
> Bundle-RequiredExecutionEnvironment: JavaSE-1.7
>
>
> The build.properties file
>
> source.. = src/
> output.. = bin/
> bin.includes = META-INF/,\
> .,\
> description/,\
> plugin.xml,\
> icons/,\
> src/
> customBuildCallbacks = build.acceleo
>
>
> The plugin.xml
>
> <?xml version="1.0" encoding="UTF-8"?>
> <?eclipse version="3.0"?>
> <plugin>
> <extension point="org.eclipse.sirius.componentization">
> <component class="DCA.metamodel.vsp.Activator"
> id="DCA.metamodel.vsp"
> name="vsp">
> </component>
> </extension>
> </plugin>
>
>
> I have no additional build system installed so I think I simply use the
> provided p2 based tools?
>
> Greetings,
> Wilbert.
>
--
Steve Monnier - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Goto Forum:
Current Time: Thu Apr 18 06:37:45 GMT 2024
Powered by FUDForum. Page generated in 0.03263 seconds
|