Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mdt-ocl.dev] Re: [emft-dev] Questions about the emft ocl plugin.


Hi, Zhang Xiaorui,

While the newsgroups are out of commission, I can answer your questions on the dev mailing list.  When they return, I'll post this thread to the newsgroup which, as Ed indicates, is the appropriate forum for such questions.

Concerning (1)  The OCL plug-ins have no user interface components; they only provide API and documentation in the on-line help.  Up to and including OCL 1.1 M4, it will work with EMF 2.2 and Eclipse 3.2.  M5 and later will only work with EMF 2.3 and Eclipse 3.3.

I don't know of any tutorial that defines an EConstraint type.  Do you perhaps mean the Eclipse Corner article "Implementing Model Integrity in EMF with EMFT OCL"?  This is only an article illustrating how the OCL component could be leveraged in an EMF-based application; the code generation that it illustrates is not provided out-of-the-box by the OCL component.

(2)  The Interactive OCL Console can load OCL expressions from XMI, although support for serialization before M5 is very weak, and is much improved in the latest M5 integration build.  The principal purpose of the console is to accept OCL query expressions in the bottom panel (just type them in) and show the results in the top panel.  See the example guide in the OCL on-line help.

(3)  This is the purpose of the Eclipse Corner article, the Interactive OCL Console example shipped with the OCL SDK, and the tutorial in the on-line help.  If that isn't enough to get you started, then I and others will be happy to answer your specific questions on the newsgroup.  Regarding accessing the JAR files, you did that when you installed the OCL plug-ins.  To access the API from your plug-in, just be sure to import the packages that you need via Import-Package or Require-Bundle headers in your bundle manifest.

HTH,

Christian



Christian W. Damus
Component Lead, Eclipse
OCL and EMFT-QTV
IBM Rational Software



Ed Merks/Toronto/IBM@IBMCA
Sent by: emft-dev-bounces@xxxxxxxxxxx

02/05/07 08:45 AM

Please respond to
EMFT Developer Mailing List <emft-dev@xxxxxxxxxxx>

To
EMFT Developer Mailing List <emft-dev@xxxxxxxxxxx>
cc
Subject
Re: [emft-dev] Questions about the emft ocl plugin.






OCL is now part of the MDT project which has its own mailing list, mdt-ocl.dev@xxxxxxxxxxx, but it's best if you direct your user questions to the OCL newsgroup:  news://news.eclipse.org/eclipse.modeling.mdt.uml2.ocl  


Note that all the Eclipse newsgroups appear to have been down since yesterday...



Ed Merks/Toronto/IBM@IBMCA
mailto: merks@xxxxxxxxxx
905-413-3265  (t/l 969)



"Xiaorui Zhang" <zxrvillain@xxxxxxxxx>
Sent by: emft-dev-bounces@xxxxxxxxxxx

02/05/2007 08:30 AM

Please respond to
EMFT Developer Mailing List <emft-dev@xxxxxxxxxxx>

To
emft-dev@xxxxxxxxxxx
cc
Subject
[emft-dev] Questions about the emft ocl plugin.







Hi, all
I have been trying to use the emft ocl plugin in a metamodelling project, but encountered some problems:
 
1. Install: I installed the ocl plugin into my eclipse 3.3 ( with EMF 2.3). But after that, I can't find anything about ocl in any menu and right-click pop-up menu. Then I checked the configuration management, and found that " object constraint language 2.0" installed without any problems. So how should it look like after   installing the ocl plugin? And when I tried to edit the ecore model, and right clicked one of the Eclass, there was no "Econstraint" as it is showed in the tutorial. So have I installed it properly? And can the plugin work on eclipse 3.2?
 

2. About the examples: I downloaded the ocl examples and imported it in the eclipse, then ran it with another instance of Eclipse. After creating the model in the other Eclipse, I found the "ocl interpreter" while right clicking the object in the model. But the "interactive ocl" needs to load an "xmi" file of ocl _expression_. So I am confused by this step, can you give me any instructions?
 
3. About the project I am working with: The project is trying to make a SDL+ plugin for Eclipse. In the package I am working with, there are an ecore model, *. sdl_plus model and an ocl file. And I am trying to make use of ocl plugin to check if the two models corresponding to the ocl file. Would you please give me some suggestions about how to use ocl plugin in my project? Can you provide any methods to get access to the Jar files of ocl plugin?
 
I am looking forward to your reply.
 
Thank you in advance!
 
Regards!
Sincerely yours,
Zhang Xiaorui
_______________________________________________
emft-dev mailing list
emft-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/emft-dev

_______________________________________________
emft-dev mailing list
emft-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/emft-dev


Back to the top