Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Amalgam » Xpand file error?
Xpand file error? [message #525159] Thu, 04 June 2009 22:51 Go to next message
Bill HingeFriend
Messages: 156
Registered: July 2009
Senior Member
Hi

I'm using Amalgam at the moment.

I've created a DSL project, generated model and diagram code etc.

I've also used the GMF-XPand wizard to create an xpand file in templates

If I use ctrl-space I can correctly see a list of selectable dsl's for
me to import. If I pick them I get something like <<IMPORT contract>>,
<<IMPORT uml>> etc which is what I expect. (I also have Xpand Nature
turned on by the way.) The "URI" import doesn't seem to be supported
here.

I can then build up my template as expected by using ctrl-space etc.
But when I save I get a red error flag against each import statement
despite them appearing to be working. In my dependencies I have the
following


Require-Bundle: org.eclipse.core.runtime,
org.eclipse.emf.ecore;visibility:=reexport,
org.eclipse.emf.ecore.xmi;visibility:=reexport,
org.eclipse.uml2.uml;visibility:=reexport,
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.emf.mwe.core;bundle-version="0.7.0"
Bundle-ActivationPolicy: lazy

Any ideas please? is this a symptom of some other error?
(DSL toolkit Build id: 20081128-0606)

Also the workflow wizard just seems to create an empty text file
with no context editing support, is this really all I should get?

regards
Steve
Re: Xpand file error? [message #525160 is a reply to message #525159] Fri, 05 June 2009 00:27 Go to previous messageGo to next message
Richard Gronback is currently offline Richard GronbackFriend
Messages: 605
Registered: July 2009
Senior Member
I'm afraid the errors are "normal" for this build, using the original Xpand
(which doesn't support URI-based imports, btw). The GMF-based Xpand has
much improved the situation in the current release train.

The workflow file wizard provides no default content. As both the newer
GMF-based Xpand and QVT both support Ant invocation, there is little need
for these files when using the current release train.

Sorry for the bad news.

Best,
Rich


On 6/4/09 6:51 PM, in article h09j5b$vgt$1@build.eclipse.org, "Bill Hinge"
<steve.orobec@btopenworld.com> wrote:

> Hi
>
> I'm using Amalgam at the moment.
>
> I've created a DSL project, generated model and diagram code etc.
>
> I've also used the GMF-XPand wizard to create an xpand file in templates
>
> If I use ctrl-space I can correctly see a list of selectable dsl's for
> me to import. If I pick them I get something like <<IMPORT contract>>,
> <<IMPORT uml>> etc which is what I expect. (I also have Xpand Nature
> turned on by the way.) The "URI" import doesn't seem to be supported
> here.
>
> I can then build up my template as expected by using ctrl-space etc.
> But when I save I get a red error flag against each import statement
> despite them appearing to be working. In my dependencies I have the
> following
>
>
> Require-Bundle: org.eclipse.core.runtime,
> org.eclipse.emf.ecore;visibility:=reexport,
> org.eclipse.emf.ecore.xmi;visibility:=reexport,
> org.eclipse.uml2.uml;visibility:=reexport,
> 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.emf.mwe.core;bundle-version="0.7.0"
> Bundle-ActivationPolicy: lazy
>
> Any ideas please? is this a symptom of some other error?
> (DSL toolkit Build id: 20081128-0606)
>
> Also the workflow wizard just seems to create an empty text file
> with no context editing support, is this really all I should get?
>
> regards
> Steve

--
Thanks,
Rich
Re: Xpand file error? [message #525161 is a reply to message #525160] Fri, 05 June 2009 09:28 Go to previous messageGo to next message
Bill HingeFriend
Messages: 156
Registered: July 2009
Senior Member
Rich

Not a problem, just glad to know I'm not doing anything wrong.
I'm flitting between Amalgam and Galileo to see which gives me the most
useful features, hence I'm not tied to a specific release but I like
the lightweight simplicity of Amalgam.

So I guess I should use a newer release

steve

Richard Gronback wrote:
> I'm afraid the errors are "normal" for this build, using the original Xpand
> (which doesn't support URI-based imports, btw). The GMF-based Xpand has
> much improved the situation in the current release train.
>
> The workflow file wizard provides no default content. As both the newer
> GMF-based Xpand and QVT both support Ant invocation, there is little need
> for these files when using the current release train.
>
> Sorry for the bad news.
>
> Best,
> Rich
>
>
> On 6/4/09 6:51 PM, in article h09j5b$vgt$1@build.eclipse.org, "Bill Hinge"
> <steve.orobec@btopenworld.com> wrote:
>
>> Hi
>>
>> I'm using Amalgam at the moment.
>>
>> I've created a DSL project, generated model and diagram code etc.
>>
>> I've also used the GMF-XPand wizard to create an xpand file in templates
>>
>> If I use ctrl-space I can correctly see a list of selectable dsl's for
>> me to import. If I pick them I get something like <<IMPORT contract>>,
>> <<IMPORT uml>> etc which is what I expect. (I also have Xpand Nature
>> turned on by the way.) The "URI" import doesn't seem to be supported
>> here.
>>
>> I can then build up my template as expected by using ctrl-space etc.
>> But when I save I get a red error flag against each import statement
>> despite them appearing to be working. In my dependencies I have the
>> following
>>
>>
>> Require-Bundle: org.eclipse.core.runtime,
>> org.eclipse.emf.ecore;visibility:=reexport,
>> org.eclipse.emf.ecore.xmi;visibility:=reexport,
>> org.eclipse.uml2.uml;visibility:=reexport,
>> 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.emf.mwe.core;bundle-version="0.7.0"
>> Bundle-ActivationPolicy: lazy
>>
>> Any ideas please? is this a symptom of some other error?
>> (DSL toolkit Build id: 20081128-0606)
>>
>> Also the workflow wizard just seems to create an empty text file
>> with no context editing support, is this really all I should get?
>>
>> regards
>> Steve
>
Re: Xpand file error? [message #525162 is a reply to message #525160] Fri, 05 June 2009 10:55 Go to previous messageGo to next message
Bill HingeFriend
Messages: 156
Registered: July 2009
Senior Member
Hi Rich

Just tried 1.0M7

I noticed when I imported my projects from 20081128-0606 that the
chevrons had changed to ' and a weird degree character (I'm on OS X).
This is the same if I open the file in textedit, but I can cut and paste
chevrons OK from the older dsltk.

The URL works but the older format doesn't. Also the xpand nature is no
longer there, I downloaded the examples from the welcome screen for good
measure. On both my templates and the examples, ctrl-space doesn't seem
to work. Am I missing something?

If I wish to use xpand code generation (for demo purposes - just looking
for something basic an easy at the moment that I can run from a plugin
or rcp) - what would you recommend as a build/plugin set?


regards
Steve



Richard Gronback wrote:
> I'm afraid the errors are "normal" for this build, using the original Xpand
> (which doesn't support URI-based imports, btw). The GMF-based Xpand has
> much improved the situation in the current release train.
>
> The workflow file wizard provides no default content. As both the newer
> GMF-based Xpand and QVT both support Ant invocation, there is little need
> for these files when using the current release train.
>
> Sorry for the bad news.
>
> Best,
> Rich
>
>
> On 6/4/09 6:51 PM, in article h09j5b$vgt$1@build.eclipse.org, "Bill Hinge"
> <steve.orobec@btopenworld.com> wrote:
>
>> Hi
>>
>> I'm using Amalgam at the moment.
>>
>> I've created a DSL project, generated model and diagram code etc.
>>
>> I've also used the GMF-XPand wizard to create an xpand file in templates
>>
>> If I use ctrl-space I can correctly see a list of selectable dsl's for
>> me to import. If I pick them I get something like <<IMPORT contract>>,
>> <<IMPORT uml>> etc which is what I expect. (I also have Xpand Nature
>> turned on by the way.) The "URI" import doesn't seem to be supported
>> here.
>>
>> I can then build up my template as expected by using ctrl-space etc.
>> But when I save I get a red error flag against each import statement
>> despite them appearing to be working. In my dependencies I have the
>> following
>>
>>
>> Require-Bundle: org.eclipse.core.runtime,
>> org.eclipse.emf.ecore;visibility:=reexport,
>> org.eclipse.emf.ecore.xmi;visibility:=reexport,
>> org.eclipse.uml2.uml;visibility:=reexport,
>> 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.emf.mwe.core;bundle-version="0.7.0"
>> Bundle-ActivationPolicy: lazy
>>
>> Any ideas please? is this a symptom of some other error?
>> (DSL toolkit Build id: 20081128-0606)
>>
>> Also the workflow wizard just seems to create an empty text file
>> with no context editing support, is this really all I should get?
>>
>> regards
>> Steve
>
Re: Xpand file error? [message #525163 is a reply to message #525162] Fri, 05 June 2009 11:04 Go to previous messageGo to next message
Richard Gronback is currently offline Richard GronbackFriend
Messages: 605
Registered: July 2009
Senior Member
Posting here, in addition to direct email:

Try changing the encoding on the files to ISO-8859-1.

Also, you¹ll need to make sure the new builder is used. You should add this
in your .project file (remove any other xpand builder):

<buildCommand>
<name>org.eclipse.gmf.xpand.xpandBuilder</name>
<arguments>
</arguments>
</buildCommand>

Finally, the newer Xpand uses an .xpand-root file in the project directory
to point at template locations. It¹s a simple file that should only contain
a single entry for most projects, e.g. Œtemplates¹ (if there is a directory
named Œtemplates¹ in your project where you keep your xpt files).

HTH,
Rich


On 6/5/09 6:55 AM, in article 4A28F9B5.1070207@btopenworld.com, "Bill Hinge"
<steve.orobec@btopenworld.com> wrote:

> Hi Rich
>
> Just tried 1.0M7
>
> I noticed when I imported my projects from 20081128-0606 that the
> chevrons had changed to ' and a weird degree character (I'm on OS X).
> This is the same if I open the file in textedit, but I can cut and paste
> chevrons OK from the older dsltk.
>
> The URL works but the older format doesn't. Also the xpand nature is no
> longer there, I downloaded the examples from the welcome screen for good
> measure. On both my templates and the examples, ctrl-space doesn't seem
> to work. Am I missing something?
>
> If I wish to use xpand code generation (for demo purposes - just looking
> for something basic an easy at the moment that I can run from a plugin
> or rcp) - what would you recommend as a build/plugin set?
>
>
> regards
> Steve
>
>
>
> Richard Gronback wrote:
>> I'm afraid the errors are "normal" for this build, using the original Xpand
>> (which doesn't support URI-based imports, btw). The GMF-based Xpand has
>> much improved the situation in the current release train.
>>
>> The workflow file wizard provides no default content. As both the newer
>> GMF-based Xpand and QVT both support Ant invocation, there is little need
>> for these files when using the current release train.
>>
>> Sorry for the bad news.
>>
>> Best,
>> Rich
>>
>>
>> On 6/4/09 6:51 PM, in article h09j5b$vgt$1@build.eclipse.org, "Bill Hinge"
>> <steve.orobec@btopenworld.com> wrote:
>>
>>> Hi
>>>
>>> I'm using Amalgam at the moment.
>>>
>>> I've created a DSL project, generated model and diagram code etc.
>>>
>>> I've also used the GMF-XPand wizard to create an xpand file in templates
>>>
>>> If I use ctrl-space I can correctly see a list of selectable dsl's for
>>> me to import. If I pick them I get something like <<IMPORT contract>>,
>>> <<IMPORT uml>> etc which is what I expect. (I also have Xpand Nature
>>> turned on by the way.) The "URI" import doesn't seem to be supported
>>> here.
>>>
>>> I can then build up my template as expected by using ctrl-space etc.
>>> But when I save I get a red error flag against each import statement
>>> despite them appearing to be working. In my dependencies I have the
>>> following
>>>
>>>
>>> Require-Bundle: org.eclipse.core.runtime,
>>> org.eclipse.emf.ecore;visibility:=reexport,
>>> org.eclipse.emf.ecore.xmi;visibility:=reexport,
>>> org.eclipse.uml2.uml;visibility:=reexport,
>>> 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.emf.mwe.core;bundle-version="0.7.0"
>>> Bundle-ActivationPolicy: lazy
>>>
>>> Any ideas please? is this a symptom of some other error?
>>> (DSL toolkit Build id: 20081128-0606)
>>>
>>> Also the workflow wizard just seems to create an empty text file
>>> with no context editing support, is this really all I should get?
>>>
>>> regards
>>> Steve
>>

--
Thanks,
Rich
Re: Xpand file error? [message #525164 is a reply to message #525162] Fri, 05 June 2009 11:08 Go to previous messageGo to next message
Bill HingeFriend
Messages: 156
Registered: July 2009
Senior Member
Just found the answer to one issue ;-)

I had put org.eclipse.gmf.xpand into my dependencies already.

I typed xpand into Help to see what it said, help pointed to new xpand
wizard so I ran it to create a new template and it seemed to kick start
the context help!

regards
Steve




Bill Hinge wrote:
> Hi Rich
>
> Just tried 1.0M7
>
> I noticed when I imported my projects from 20081128-0606 that the
> chevrons had changed to ' and a weird degree character (I'm on OS X).
> This is the same if I open the file in textedit, but I can cut and paste
> chevrons OK from the older dsltk.
>
> The URL works but the older format doesn't. Also the xpand nature is no
> longer there, I downloaded the examples from the welcome screen for good
> measure. On both my templates and the examples, ctrl-space doesn't seem
> to work. Am I missing something?
>
> If I wish to use xpand code generation (for demo purposes - just looking
> for something basic an easy at the moment that I can run from a plugin
> or rcp) - what would you recommend as a build/plugin set?
>
>
> regards
> Steve
>
>
>
> Richard Gronback wrote:
>> I'm afraid the errors are "normal" for this build, using the original
>> Xpand
>> (which doesn't support URI-based imports, btw). The GMF-based Xpand has
>> much improved the situation in the current release train.
>>
>> The workflow file wizard provides no default content. As both the newer
>> GMF-based Xpand and QVT both support Ant invocation, there is little need
>> for these files when using the current release train.
>>
>> Sorry for the bad news.
>>
>> Best,
>> Rich
>>
>>
>> On 6/4/09 6:51 PM, in article h09j5b$vgt$1@build.eclipse.org, "Bill
>> Hinge"
>> <steve.orobec@btopenworld.com> wrote:
>>
>>> Hi
>>>
>>> I'm using Amalgam at the moment.
>>>
>>> I've created a DSL project, generated model and diagram code etc.
>>>
>>> I've also used the GMF-XPand wizard to create an xpand file in templates
>>>
>>> If I use ctrl-space I can correctly see a list of selectable dsl's for
>>> me to import. If I pick them I get something like <<IMPORT contract>>,
>>> <<IMPORT uml>> etc which is what I expect. (I also have Xpand Nature
>>> turned on by the way.) The "URI" import doesn't seem to be supported
>>> here.
>>>
>>> I can then build up my template as expected by using ctrl-space etc.
>>> But when I save I get a red error flag against each import statement
>>> despite them appearing to be working. In my dependencies I have the
>>> following
>>>
>>>
>>> Require-Bundle: org.eclipse.core.runtime,
>>> org.eclipse.emf.ecore;visibility:=reexport,
>>> org.eclipse.emf.ecore.xmi;visibility:=reexport,
>>> org.eclipse.uml2.uml;visibility:=reexport,
>>> 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.emf.mwe.core;bundle-version="0.7.0"
>>> Bundle-ActivationPolicy: lazy
>>>
>>> Any ideas please? is this a symptom of some other error?
>>> (DSL toolkit Build id: 20081128-0606)
>>>
>>> Also the workflow wizard just seems to create an empty text file
>>> with no context editing support, is this really all I should get?
>>>
>>> regards
>>> Steve
>>
Re: Xpand file error? [message #525165 is a reply to message #525163] Fri, 05 June 2009 11:16 Go to previous message
Richard Gronback is currently offline Richard GronbackFriend
Messages: 605
Registered: July 2009
Senior Member
Another thing to point out is that the newer Xpand uses OCL/QVTO as the
expression/query language. So, you will need to correct errors you may now
see in your templates where the legacy expression language and Xtend
language was used.

- Rich


On 6/5/09 7:04 AM, in article C64E740B.22368%richard.gronback@borland.com,
"Richard Gronback" <richard.gronback@borland.com> wrote:

> Posting here, in addition to direct email:
>
> Try changing the encoding on the files to ISO-8859-1.
>
> Also, you¹ll need to make sure the new builder is used. You should add this
> in your .project file (remove any other xpand builder):
>
> <buildCommand>
> <name>org.eclipse.gmf.xpand.xpandBuilder</name>
> <arguments>
> </arguments>
> </buildCommand>
>
> Finally, the newer Xpand uses an .xpand-root file in the project directory
> to point at template locations. It¹s a simple file that should only contain
> a single entry for most projects, e.g. Œtemplates¹ (if there is a directory
> named Œtemplates¹ in your project where you keep your xpt files).
>
> HTH,
> Rich
>
>
> On 6/5/09 6:55 AM, in article 4A28F9B5.1070207@btopenworld.com, "Bill Hinge"
> <steve.orobec@btopenworld.com> wrote:
>
>> Hi Rich
>>
>> Just tried 1.0M7
>>
>> I noticed when I imported my projects from 20081128-0606 that the
>> chevrons had changed to ' and a weird degree character (I'm on OS X).
>> This is the same if I open the file in textedit, but I can cut and paste
>> chevrons OK from the older dsltk.
>>
>> The URL works but the older format doesn't. Also the xpand nature is no
>> longer there, I downloaded the examples from the welcome screen for good
>> measure. On both my templates and the examples, ctrl-space doesn't seem
>> to work. Am I missing something?
>>
>> If I wish to use xpand code generation (for demo purposes - just looking
>> for something basic an easy at the moment that I can run from a plugin
>> or rcp) - what would you recommend as a build/plugin set?
>>
>>
>> regards
>> Steve
>>
>>
>>
>> Richard Gronback wrote:
>>> I'm afraid the errors are "normal" for this build, using the original Xpand
>>> (which doesn't support URI-based imports, btw). The GMF-based Xpand has
>>> much improved the situation in the current release train.
>>>
>>> The workflow file wizard provides no default content. As both the newer
>>> GMF-based Xpand and QVT both support Ant invocation, there is little need
>>> for these files when using the current release train.
>>>
>>> Sorry for the bad news.
>>>
>>> Best,
>>> Rich
>>>
>>>
>>> On 6/4/09 6:51 PM, in article h09j5b$vgt$1@build.eclipse.org, "Bill Hinge"
>>> <steve.orobec@btopenworld.com> wrote:
>>>
>>>> Hi
>>>>
>>>> I'm using Amalgam at the moment.
>>>>
>>>> I've created a DSL project, generated model and diagram code etc.
>>>>
>>>> I've also used the GMF-XPand wizard to create an xpand file in templates
>>>>
>>>> If I use ctrl-space I can correctly see a list of selectable dsl's for
>>>> me to import. If I pick them I get something like <<IMPORT contract>>,
>>>> <<IMPORT uml>> etc which is what I expect. (I also have Xpand Nature
>>>> turned on by the way.) The "URI" import doesn't seem to be supported
>>>> here.
>>>>
>>>> I can then build up my template as expected by using ctrl-space etc.
>>>> But when I save I get a red error flag against each import statement
>>>> despite them appearing to be working. In my dependencies I have the
>>>> following
>>>>
>>>>
>>>> Require-Bundle: org.eclipse.core.runtime,
>>>> org.eclipse.emf.ecore;visibility:=reexport,
>>>> org.eclipse.emf.ecore.xmi;visibility:=reexport,
>>>> org.eclipse.uml2.uml;visibility:=reexport,
>>>> 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.emf.mwe.core;bundle-version="0.7.0"
>>>> Bundle-ActivationPolicy: lazy
>>>>
>>>> Any ideas please? is this a symptom of some other error?
>>>> (DSL toolkit Build id: 20081128-0606)
>>>>
>>>> Also the workflow wizard just seems to create an empty text file
>>>> with no context editing support, is this really all I should get?
>>>>
>>>> regards
>>>> Steve
>>>

--
Thanks,
Rich
Re: Xpand file error? [message #574429 is a reply to message #525159] Fri, 05 June 2009 00:27 Go to previous message
Richard Gronback is currently offline Richard GronbackFriend
Messages: 605
Registered: July 2009
Senior Member
I'm afraid the errors are "normal" for this build, using the original Xpand
(which doesn't support URI-based imports, btw). The GMF-based Xpand has
much improved the situation in the current release train.

The workflow file wizard provides no default content. As both the newer
GMF-based Xpand and QVT both support Ant invocation, there is little need
for these files when using the current release train.

Sorry for the bad news.

Best,
Rich


On 6/4/09 6:51 PM, in article h09j5b$vgt$1@build.eclipse.org, "Bill Hinge"
<steve.orobec@btopenworld.com> wrote:

> Hi
>
> I'm using Amalgam at the moment.
>
> I've created a DSL project, generated model and diagram code etc.
>
> I've also used the GMF-XPand wizard to create an xpand file in templates
>
> If I use ctrl-space I can correctly see a list of selectable dsl's for
> me to import. If I pick them I get something like <<IMPORT contract>>,
> <<IMPORT uml>> etc which is what I expect. (I also have Xpand Nature
> turned on by the way.) The "URI" import doesn't seem to be supported
> here.
>
> I can then build up my template as expected by using ctrl-space etc.
> But when I save I get a red error flag against each import statement
> despite them appearing to be working. In my dependencies I have the
> following
>
>
> Require-Bundle: org.eclipse.core.runtime,
> org.eclipse.emf.ecore;visibility:=reexport,
> org.eclipse.emf.ecore.xmi;visibility:=reexport,
> org.eclipse.uml2.uml;visibility:=reexport,
> 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.emf.mwe.core;bundle-version="0.7.0"
> Bundle-ActivationPolicy: lazy
>
> Any ideas please? is this a symptom of some other error?
> (DSL toolkit Build id: 20081128-0606)
>
> Also the workflow wizard just seems to create an empty text file
> with no context editing support, is this really all I should get?
>
> regards
> Steve

--
Thanks,
Rich
Re: Xpand file error? [message #574450 is a reply to message #525160] Fri, 05 June 2009 09:28 Go to previous message
Bill HingeFriend
Messages: 156
Registered: July 2009
Senior Member
Rich

Not a problem, just glad to know I'm not doing anything wrong.
I'm flitting between Amalgam and Galileo to see which gives me the most
useful features, hence I'm not tied to a specific release but I like
the lightweight simplicity of Amalgam.

So I guess I should use a newer release

steve

Richard Gronback wrote:
> I'm afraid the errors are "normal" for this build, using the original Xpand
> (which doesn't support URI-based imports, btw). The GMF-based Xpand has
> much improved the situation in the current release train.
>
> The workflow file wizard provides no default content. As both the newer
> GMF-based Xpand and QVT both support Ant invocation, there is little need
> for these files when using the current release train.
>
> Sorry for the bad news.
>
> Best,
> Rich
>
>
> On 6/4/09 6:51 PM, in article h09j5b$vgt$1@build.eclipse.org, "Bill Hinge"
> <steve.orobec@btopenworld.com> wrote:
>
>> Hi
>>
>> I'm using Amalgam at the moment.
>>
>> I've created a DSL project, generated model and diagram code etc.
>>
>> I've also used the GMF-XPand wizard to create an xpand file in templates
>>
>> If I use ctrl-space I can correctly see a list of selectable dsl's for
>> me to import. If I pick them I get something like <<IMPORT contract>>,
>> <<IMPORT uml>> etc which is what I expect. (I also have Xpand Nature
>> turned on by the way.) The "URI" import doesn't seem to be supported
>> here.
>>
>> I can then build up my template as expected by using ctrl-space etc.
>> But when I save I get a red error flag against each import statement
>> despite them appearing to be working. In my dependencies I have the
>> following
>>
>>
>> Require-Bundle: org.eclipse.core.runtime,
>> org.eclipse.emf.ecore;visibility:=reexport,
>> org.eclipse.emf.ecore.xmi;visibility:=reexport,
>> org.eclipse.uml2.uml;visibility:=reexport,
>> 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.emf.mwe.core;bundle-version="0.7.0"
>> Bundle-ActivationPolicy: lazy
>>
>> Any ideas please? is this a symptom of some other error?
>> (DSL toolkit Build id: 20081128-0606)
>>
>> Also the workflow wizard just seems to create an empty text file
>> with no context editing support, is this really all I should get?
>>
>> regards
>> Steve
>
Re: Xpand file error? [message #574476 is a reply to message #525160] Fri, 05 June 2009 10:55 Go to previous message
Bill HingeFriend
Messages: 156
Registered: July 2009
Senior Member
Hi Rich

Just tried 1.0M7

I noticed when I imported my projects from 20081128-0606 that the
chevrons had changed to ' and a weird degree character (I'm on OS X).
This is the same if I open the file in textedit, but I can cut and paste
chevrons OK from the older dsltk.

The URL works but the older format doesn't. Also the xpand nature is no
longer there, I downloaded the examples from the welcome screen for good
measure. On both my templates and the examples, ctrl-space doesn't seem
to work. Am I missing something?

If I wish to use xpand code generation (for demo purposes - just looking
for something basic an easy at the moment that I can run from a plugin
or rcp) - what would you recommend as a build/plugin set?


regards
Steve



Richard Gronback wrote:
> I'm afraid the errors are "normal" for this build, using the original Xpand
> (which doesn't support URI-based imports, btw). The GMF-based Xpand has
> much improved the situation in the current release train.
>
> The workflow file wizard provides no default content. As both the newer
> GMF-based Xpand and QVT both support Ant invocation, there is little need
> for these files when using the current release train.
>
> Sorry for the bad news.
>
> Best,
> Rich
>
>
> On 6/4/09 6:51 PM, in article h09j5b$vgt$1@build.eclipse.org, "Bill Hinge"
> <steve.orobec@btopenworld.com> wrote:
>
>> Hi
>>
>> I'm using Amalgam at the moment.
>>
>> I've created a DSL project, generated model and diagram code etc.
>>
>> I've also used the GMF-XPand wizard to create an xpand file in templates
>>
>> If I use ctrl-space I can correctly see a list of selectable dsl's for
>> me to import. If I pick them I get something like <<IMPORT contract>>,
>> <<IMPORT uml>> etc which is what I expect. (I also have Xpand Nature
>> turned on by the way.) The "URI" import doesn't seem to be supported
>> here.
>>
>> I can then build up my template as expected by using ctrl-space etc.
>> But when I save I get a red error flag against each import statement
>> despite them appearing to be working. In my dependencies I have the
>> following
>>
>>
>> Require-Bundle: org.eclipse.core.runtime,
>> org.eclipse.emf.ecore;visibility:=reexport,
>> org.eclipse.emf.ecore.xmi;visibility:=reexport,
>> org.eclipse.uml2.uml;visibility:=reexport,
>> 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.emf.mwe.core;bundle-version="0.7.0"
>> Bundle-ActivationPolicy: lazy
>>
>> Any ideas please? is this a symptom of some other error?
>> (DSL toolkit Build id: 20081128-0606)
>>
>> Also the workflow wizard just seems to create an empty text file
>> with no context editing support, is this really all I should get?
>>
>> regards
>> Steve
>
Re: Xpand file error? [message #574507 is a reply to message #525162] Fri, 05 June 2009 11:04 Go to previous message
Richard Gronback is currently offline Richard GronbackFriend
Messages: 605
Registered: July 2009
Senior Member
Posting here, in addition to direct email:

Try changing the encoding on the files to ISO-8859-1.

Also, you¹ll need to make sure the new builder is used. You should add this
in your .project file (remove any other xpand builder):

<buildCommand>
<name>org.eclipse.gmf.xpand.xpandBuilder</name>
<arguments>
</arguments>
</buildCommand>

Finally, the newer Xpand uses an .xpand-root file in the project directory
to point at template locations. It¹s a simple file that should only contain
a single entry for most projects, e.g. Œtemplates¹ (if there is a directory
named Œtemplates¹ in your project where you keep your xpt files).

HTH,
Rich


On 6/5/09 6:55 AM, in article 4A28F9B5.1070207@btopenworld.com, "Bill Hinge"
<steve.orobec@btopenworld.com> wrote:

> Hi Rich
>
> Just tried 1.0M7
>
> I noticed when I imported my projects from 20081128-0606 that the
> chevrons had changed to ' and a weird degree character (I'm on OS X).
> This is the same if I open the file in textedit, but I can cut and paste
> chevrons OK from the older dsltk.
>
> The URL works but the older format doesn't. Also the xpand nature is no
> longer there, I downloaded the examples from the welcome screen for good
> measure. On both my templates and the examples, ctrl-space doesn't seem
> to work. Am I missing something?
>
> If I wish to use xpand code generation (for demo purposes - just looking
> for something basic an easy at the moment that I can run from a plugin
> or rcp) - what would you recommend as a build/plugin set?
>
>
> regards
> Steve
>
>
>
> Richard Gronback wrote:
>> I'm afraid the errors are "normal" for this build, using the original Xpand
>> (which doesn't support URI-based imports, btw). The GMF-based Xpand has
>> much improved the situation in the current release train.
>>
>> The workflow file wizard provides no default content. As both the newer
>> GMF-based Xpand and QVT both support Ant invocation, there is little need
>> for these files when using the current release train.
>>
>> Sorry for the bad news.
>>
>> Best,
>> Rich
>>
>>
>> On 6/4/09 6:51 PM, in article h09j5b$vgt$1@build.eclipse.org, "Bill Hinge"
>> <steve.orobec@btopenworld.com> wrote:
>>
>>> Hi
>>>
>>> I'm using Amalgam at the moment.
>>>
>>> I've created a DSL project, generated model and diagram code etc.
>>>
>>> I've also used the GMF-XPand wizard to create an xpand file in templates
>>>
>>> If I use ctrl-space I can correctly see a list of selectable dsl's for
>>> me to import. If I pick them I get something like <<IMPORT contract>>,
>>> <<IMPORT uml>> etc which is what I expect. (I also have Xpand Nature
>>> turned on by the way.) The "URI" import doesn't seem to be supported
>>> here.
>>>
>>> I can then build up my template as expected by using ctrl-space etc.
>>> But when I save I get a red error flag against each import statement
>>> despite them appearing to be working. In my dependencies I have the
>>> following
>>>
>>>
>>> Require-Bundle: org.eclipse.core.runtime,
>>> org.eclipse.emf.ecore;visibility:=reexport,
>>> org.eclipse.emf.ecore.xmi;visibility:=reexport,
>>> org.eclipse.uml2.uml;visibility:=reexport,
>>> 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.emf.mwe.core;bundle-version="0.7.0"
>>> Bundle-ActivationPolicy: lazy
>>>
>>> Any ideas please? is this a symptom of some other error?
>>> (DSL toolkit Build id: 20081128-0606)
>>>
>>> Also the workflow wizard just seems to create an empty text file
>>> with no context editing support, is this really all I should get?
>>>
>>> regards
>>> Steve
>>

--
Thanks,
Rich
Re: Xpand file error? [message #574529 is a reply to message #525162] Fri, 05 June 2009 11:08 Go to previous message
Bill HingeFriend
Messages: 156
Registered: July 2009
Senior Member
Just found the answer to one issue ;-)

I had put org.eclipse.gmf.xpand into my dependencies already.

I typed xpand into Help to see what it said, help pointed to new xpand
wizard so I ran it to create a new template and it seemed to kick start
the context help!

regards
Steve




Bill Hinge wrote:
> Hi Rich
>
> Just tried 1.0M7
>
> I noticed when I imported my projects from 20081128-0606 that the
> chevrons had changed to ' and a weird degree character (I'm on OS X).
> This is the same if I open the file in textedit, but I can cut and paste
> chevrons OK from the older dsltk.
>
> The URL works but the older format doesn't. Also the xpand nature is no
> longer there, I downloaded the examples from the welcome screen for good
> measure. On both my templates and the examples, ctrl-space doesn't seem
> to work. Am I missing something?
>
> If I wish to use xpand code generation (for demo purposes - just looking
> for something basic an easy at the moment that I can run from a plugin
> or rcp) - what would you recommend as a build/plugin set?
>
>
> regards
> Steve
>
>
>
> Richard Gronback wrote:
>> I'm afraid the errors are "normal" for this build, using the original
>> Xpand
>> (which doesn't support URI-based imports, btw). The GMF-based Xpand has
>> much improved the situation in the current release train.
>>
>> The workflow file wizard provides no default content. As both the newer
>> GMF-based Xpand and QVT both support Ant invocation, there is little need
>> for these files when using the current release train.
>>
>> Sorry for the bad news.
>>
>> Best,
>> Rich
>>
>>
>> On 6/4/09 6:51 PM, in article h09j5b$vgt$1@build.eclipse.org, "Bill
>> Hinge"
>> <steve.orobec@btopenworld.com> wrote:
>>
>>> Hi
>>>
>>> I'm using Amalgam at the moment.
>>>
>>> I've created a DSL project, generated model and diagram code etc.
>>>
>>> I've also used the GMF-XPand wizard to create an xpand file in templates
>>>
>>> If I use ctrl-space I can correctly see a list of selectable dsl's for
>>> me to import. If I pick them I get something like <<IMPORT contract>>,
>>> <<IMPORT uml>> etc which is what I expect. (I also have Xpand Nature
>>> turned on by the way.) The "URI" import doesn't seem to be supported
>>> here.
>>>
>>> I can then build up my template as expected by using ctrl-space etc.
>>> But when I save I get a red error flag against each import statement
>>> despite them appearing to be working. In my dependencies I have the
>>> following
>>>
>>>
>>> Require-Bundle: org.eclipse.core.runtime,
>>> org.eclipse.emf.ecore;visibility:=reexport,
>>> org.eclipse.emf.ecore.xmi;visibility:=reexport,
>>> org.eclipse.uml2.uml;visibility:=reexport,
>>> 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.emf.mwe.core;bundle-version="0.7.0"
>>> Bundle-ActivationPolicy: lazy
>>>
>>> Any ideas please? is this a symptom of some other error?
>>> (DSL toolkit Build id: 20081128-0606)
>>>
>>> Also the workflow wizard just seems to create an empty text file
>>> with no context editing support, is this really all I should get?
>>>
>>> regards
>>> Steve
>>
Re: Xpand file error? [message #574548 is a reply to message #525163] Fri, 05 June 2009 11:16 Go to previous message
Richard Gronback is currently offline Richard GronbackFriend
Messages: 605
Registered: July 2009
Senior Member
Another thing to point out is that the newer Xpand uses OCL/QVTO as the
expression/query language. So, you will need to correct errors you may now
see in your templates where the legacy expression language and Xtend
language was used.

- Rich


On 6/5/09 7:04 AM, in article C64E740B.22368%richard.gronback@borland.com,
"Richard Gronback" <richard.gronback@borland.com> wrote:

> Posting here, in addition to direct email:
>
> Try changing the encoding on the files to ISO-8859-1.
>
> Also, you¹ll need to make sure the new builder is used. You should add this
> in your .project file (remove any other xpand builder):
>
> <buildCommand>
> <name>org.eclipse.gmf.xpand.xpandBuilder</name>
> <arguments>
> </arguments>
> </buildCommand>
>
> Finally, the newer Xpand uses an .xpand-root file in the project directory
> to point at template locations. It¹s a simple file that should only contain
> a single entry for most projects, e.g. Œtemplates¹ (if there is a directory
> named Œtemplates¹ in your project where you keep your xpt files).
>
> HTH,
> Rich
>
>
> On 6/5/09 6:55 AM, in article 4A28F9B5.1070207@btopenworld.com, "Bill Hinge"
> <steve.orobec@btopenworld.com> wrote:
>
>> Hi Rich
>>
>> Just tried 1.0M7
>>
>> I noticed when I imported my projects from 20081128-0606 that the
>> chevrons had changed to ' and a weird degree character (I'm on OS X).
>> This is the same if I open the file in textedit, but I can cut and paste
>> chevrons OK from the older dsltk.
>>
>> The URL works but the older format doesn't. Also the xpand nature is no
>> longer there, I downloaded the examples from the welcome screen for good
>> measure. On both my templates and the examples, ctrl-space doesn't seem
>> to work. Am I missing something?
>>
>> If I wish to use xpand code generation (for demo purposes - just looking
>> for something basic an easy at the moment that I can run from a plugin
>> or rcp) - what would you recommend as a build/plugin set?
>>
>>
>> regards
>> Steve
>>
>>
>>
>> Richard Gronback wrote:
>>> I'm afraid the errors are "normal" for this build, using the original Xpand
>>> (which doesn't support URI-based imports, btw). The GMF-based Xpand has
>>> much improved the situation in the current release train.
>>>
>>> The workflow file wizard provides no default content. As both the newer
>>> GMF-based Xpand and QVT both support Ant invocation, there is little need
>>> for these files when using the current release train.
>>>
>>> Sorry for the bad news.
>>>
>>> Best,
>>> Rich
>>>
>>>
>>> On 6/4/09 6:51 PM, in article h09j5b$vgt$1@build.eclipse.org, "Bill Hinge"
>>> <steve.orobec@btopenworld.com> wrote:
>>>
>>>> Hi
>>>>
>>>> I'm using Amalgam at the moment.
>>>>
>>>> I've created a DSL project, generated model and diagram code etc.
>>>>
>>>> I've also used the GMF-XPand wizard to create an xpand file in templates
>>>>
>>>> If I use ctrl-space I can correctly see a list of selectable dsl's for
>>>> me to import. If I pick them I get something like <<IMPORT contract>>,
>>>> <<IMPORT uml>> etc which is what I expect. (I also have Xpand Nature
>>>> turned on by the way.) The "URI" import doesn't seem to be supported
>>>> here.
>>>>
>>>> I can then build up my template as expected by using ctrl-space etc.
>>>> But when I save I get a red error flag against each import statement
>>>> despite them appearing to be working. In my dependencies I have the
>>>> following
>>>>
>>>>
>>>> Require-Bundle: org.eclipse.core.runtime,
>>>> org.eclipse.emf.ecore;visibility:=reexport,
>>>> org.eclipse.emf.ecore.xmi;visibility:=reexport,
>>>> org.eclipse.uml2.uml;visibility:=reexport,
>>>> 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.emf.mwe.core;bundle-version="0.7.0"
>>>> Bundle-ActivationPolicy: lazy
>>>>
>>>> Any ideas please? is this a symptom of some other error?
>>>> (DSL toolkit Build id: 20081128-0606)
>>>>
>>>> Also the workflow wizard just seems to create an empty text file
>>>> with no context editing support, is this really all I should get?
>>>>
>>>> regards
>>>> Steve
>>>

--
Thanks,
Rich
Previous Topic:Xpand file error?
Next Topic:Invoking xpand template options in 1.0M7
Goto Forum:
  


Current Time: Fri Apr 19 22:19:35 GMT 2024

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

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

Back to the top