Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Content assist
[ATL] Content assist [message #67918] Fri, 30 November 2007 17:26 Go to next message
William Piers is currently offline William PiersFriend
Messages: 297
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------090207070709030602050200
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hello,

I just committed a new feature for the ATL editor : a basic content
assist system. This feature will be released in the next build of ATL,
which will normally be released on 14th december.

Content assist is desactivated by default, you can use it by checking
the "Enable auto-activation" checkbox in the ATL -> content assist
preference page. Note that you must close/reopen all .atl files to apply
any changes in the preferences.

Completion purposes basic templates for rule, helper, from, to, do,
using sections.
You can also access metamodel informations by writing, at the top of the
file, two type of informations about metamodels :
- the nsURI for a given metamodel
- the path of a given metamodel
For instance, here is the top of an UML2Relational transformation :

-- @path Relational=/UML2Relational/metamodels/relational.ecore
-- @nsURI UML=http://www.eclipse.org/uml2/2.1.0/UML

module Class2Relational;
create OUT : Relational from IN : UML;

<...transformation helpers and rules>

Putting that information allows you to have content assist on :
- helpers :
* primitive types
* model elements
- rules :
* input, output model elements
* left-part of bindings

As I said, this feature is not in the builded version at this time, but
you can test it if you're working with the CVS version, and any bugs or
comments are welcome.

Note that a non-regression test has also just been released on CVS, in
order to improve the new emfvm and make it conform to the standard VM. A
page on the Atl site will soon explain that in details.

Best regards,

William

--------------090207070709030602050200
Content-Type: text/x-vcard; charset=utf-8;
name="william_piers.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="william_piers.vcf"

begin:vcard
fn:William Piers
n:Piers;William
org:Obeo
adr:2 rue Robert Schumann;;lot 24;NANTES;;44408;France
email;internet:william.piers@obeo.fr
title:MDA Consultant
tel;work:+33 (0)2 51 13 51 82
tel;cell:+33 (0)6 20 31 75 98
url:http://www.obeo.fr
version:2.1
end:vcard


--------------090207070709030602050200--
Re: [ATL] Content assist [message #69848 is a reply to message #67918] Mon, 17 December 2007 22:50 Go to previous messageGo to next message
Matthias Bohlen is currently offline Matthias BohlenFriend
Messages: 30
Registered: July 2009
Member
On 2007-11-30 18:26:52 +0100, William Piers <william.piers@obeo.fr> said:

>
> Hello,
>
> I just committed a new feature for the ATL editor : a basic content
> assist system. This feature will be released in the next build of ATL,
> which will normally be released on 14th december.

Hi William,

thank you for this feature - it works well for a first version. I
expected to get content assist after typing a dot ('.'), too, but that
is of course much harder to implement.

Today, I added two things to the code base:

* I installed an action so that ATL provides content assist when the
user types Ctrl-Space.

* I changed one line in the processing of relative metamodel path names:
- EPackage regValue = (EPackage) load(URI.createFileURI(path), resourceSet);
+ EPackage regValue = (EPackage)
load(URI.createPlatformResourceURI(path, true), resourceSet);

As you can see, I replaced the file based URI with a platform based URI
so that the syntax
"-- @path metamodelId=/projectName/metamodelDirectory/someMetamodel.ec ore "
really works.

Cheers,
Matthias

P.S.: By the way, where is the regression test code that you mentioned
in your post? I'd like to run it.
Re: [ATL] Content assist [message #69930 is a reply to message #69848] Tue, 18 December 2007 18:12 Go to previous message
William Piers is currently offline William PiersFriend
Messages: 297
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------080103020603090406020703
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hello,

Matthias Bohlen a
Previous Topic:[ATL] *Important* CVS changes
Next Topic:[ATL] Starting development of a new, faster Virtual Machine
Goto Forum:
  


Current Time: Sun Apr 11 21:19:42 GMT 2021

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

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

Back to the top