Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » why can't parse OCL Document?
why can't parse OCL Document? [message #632488] Wed, 13 October 2010 07:25 Go to next message
hutzu  is currently offline hutzu
Messages: 15
Registered: September 2010
Junior Member
Hi all!
I follow the document showing bellow:
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .ocl.doc/references/overview/parsingDocuments.html

and using his example.
Still got error
org.eclipse.ocl.SemanticException: Unable to find package: ( extlibrary)
at org.eclipse.ocl.util.OCLUtil.checkForErrors(OCLUtil.java:309 )
at org.eclipse.ocl.OCL.parse(OCL.java:274)
at ocl.OCLparser.<init>(OCLparser.java:45)
at main.main.main(main.java:19)

what's the problem?
List<Constraint> constraints = ocl.parse(document);

I waste a lot of time on it.
Please help me...
best regards
hutzu
Re: why can't parse OCL Document? [message #1049034 is a reply to message #632488] Thu, 25 April 2013 09:01 Go to previous messageGo to next message
Xiang Qiu is currently offline Xiang Qiu
Messages: 4
Registered: April 2013
Junior Member
Hi, hutzu. I also met the same problem. Do you have a solution now? Thank you.

Cheers

Xiang Qiu
Re: why can't parse OCL Document? [message #1050789 is a reply to message #1049034] Sat, 27 April 2013 19:18 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 4046
Registered: July 2009
Senior Member
Hi

IIRC there was a bug in the example which I corrected for Indigo. The
intended text is now maintained and tested in

GIT\org.eclipse.ocl\tests\org.eclipse.ocl.ecore.tests\src\org\eclipse\ocl\ecore\tests\DocumentationExamples.java

Regards

Ed Willink

On 25/04/2013 10:01, Xiang Qiu wrote:
> Hi, hutzu. I also met the same problem. Do you have a solution now?
> Thank you.
>
> Cheers
> Xiang Qiu
Previous Topic:Step for use the eclipse ocl as a standalone
Next Topic:Condition in name figure
Goto Forum:
  


Current Time: Sun Sep 21 06:26:09 GMT 2014

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

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