Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » Working with MARTE(Strange error with the import directive)
Working with MARTE [message #1551076] Wed, 07 January 2015 11:46 Go to next message
Yves BERNARD is currently offline Yves BERNARDFriend
Messages: 152
Registered: July 2014
Senior Member
Hello,

Working with OCL (v5.0.3.20141123-1844) and Papyrus (v1.0.1.201412190917)
I get a strange behavior with the import directive when I use it to import the Papyrus MARTE profile. Here is the scenario:

1. I create an empty OCL file (e.g. "dummy.ocl")
2. I add these two lines:
import marte: _'http://www.eclipse.org/papyrus/MARTE/1' 
import sysml: _'http://www.eclipse.org/papyrus/0.7.0/SysML'

3. I get an error mark on the first one only(import marte: ...)
4. I make a neutral change (adding a space at the end of a line, adding an empty line,...)
5. the error mark disappears
6. I save, close and reopen the file: the error mark on the first line appears again
7. I can go back to step 4 and loop as long as I want...

Note that I never get an error mark on the SysML import directive.

Do you get the same? What do you think?

Thanks,

Yves



Yves
Re: Working with MARTE [message #1553375 is a reply to message #1551076] Thu, 08 January 2015 17:11 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

If you open a *.ecore file with the Sample Ecore Editor and do Load
Resource.... then Browse Registered Packages you may see the same as me.

Many SYSML packages, no MARTE packages.

If you want to use MARTE I think an additional install is required.

Therefore the editor is correct when it shows an error on MARTE and none
on SYSML.

The occasionally missing MARTE error may be an Xtext synchronization
bug, or may be something I fixed a couple of weeks ago.

Regards

Ed Willink


On 07/01/2015 11:46, Yves BERNARD wrote:
> Hello,
>
> Working with OCL (v5.0.3.20141123-1844) and Papyrus (v1.0.1.201412190917)
> I get a strange behavior with the import directive when I use it to
> import the Papyrus MARTE profile. Here is the scenario:
>
> 1. I create an empty OCL file (e.g. "dummy.ocl")
> 2. I add these two lines:
> import marte: _'http://www.eclipse.org/papyrus/MARTE/1' import sysml:
> _'http://www.eclipse.org/papyrus/0.7.0/SysML'
>
> 3. I get an error mark on the first one only(import marte: ...)
> 4. I make a neutral change (adding a space at the end of a line, adding
> an empty line,...)
> 5. the error mark disappears
> 6. I save, close and reopen the file: the error mark on the first line
> appears again
> 7. I can go back to step 4 and loop as long as I want...
>
> Note that I never get an error mark on the SysML import directive.
>
> Do you get the same? What do you think?
>
> Thanks,
>
> Yves
>
>
Re: Working with MARTE [message #1554465 is a reply to message #1553375] Fri, 09 January 2015 07:51 Go to previous messageGo to next message
Yves BERNARD is currently offline Yves BERNARDFriend
Messages: 152
Registered: July 2014
Senior Member
Hi Ed,

Thanks.

You're right: an additional install is required for MARTE. I forgot to mention it, sorry.

The behaviour I described happen with the MARTE plugin installed and thus with the 'http://www.eclipse.org/papyrus/MARTE/1' actually listed as a registred package.

Yves


Yves
Re: Working with MARTE [message #1557464 is a reply to message #1551076] Sun, 11 January 2015 00:09 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Thanks. Definitely a (hopefully nice simple) bug.

See https://bugs.eclipse.org/bugs/show_bug.cgi?id=457203

Regards

Ed Willink

On 07/01/2015 11:46, Yves BERNARD wrote:
> Hello,
>
> Working with OCL (v5.0.3.20141123-1844) and Papyrus (v1.0.1.201412190917)
> I get a strange behavior with the import directive when I use it to
> import the Papyrus MARTE profile. Here is the scenario:
>
> 1. I create an empty OCL file (e.g. "dummy.ocl")
> 2. I add these two lines:
> import marte: _'http://www.eclipse.org/papyrus/MARTE/1' import sysml:
> _'http://www.eclipse.org/papyrus/0.7.0/SysML'
>
> 3. I get an error mark on the first one only(import marte: ...)
> 4. I make a neutral change (adding a space at the end of a line, adding
> an empty line,...)
> 5. the error mark disappears
> 6. I save, close and reopen the file: the error mark on the first line
> appears again
> 7. I can go back to step 4 and loop as long as I want...
>
> Note that I never get an error mark on the SysML import directive.
>
> Do you get the same? What do you think?
>
> Thanks,
>
> Yves
>
>
Re: Working with MARTE [message #1559726 is a reply to message #1557464] Mon, 12 January 2015 06:55 Go to previous message
Yves BERNARD is currently offline Yves BERNARDFriend
Messages: 152
Registered: July 2014
Senior Member
Ed,

You're very welcome!

Thanks for this OCL tool.

Yves


Yves
Previous Topic:New in OCL
Next Topic:Using sortedBy
Goto Forum:
  


Current Time: Tue Mar 19 07:42:28 GMT 2024

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

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

Back to the top