|Getting started questions from the mailing list [message #3530]
||Mon, 05 February 2007 17:22
Originally posted by: cdamus.ca.ibm.com|
While the newsgroups were down, some "getting started" questions were posted
to the dev mailing list. Find, below, my replies and the original
questions. They may be of help to others.
--- reply to mailing list questions ---
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
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
(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
(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
--- original message from Zhang Xiaorui ---
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
I am looking forward to your reply.
Thank you in advance!
Powered by FUDForum
. Page generated in 0.04046 seconds