Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » Integer to String Conversion
Integer to String Conversion [message #54610] Wed, 30 April 2008 17:30 Go to next message
Lazar Codrut-Lucian is currently offline Lazar Codrut-LucianFriend
Messages: 91
Registered: July 2009
Member
Hello,

I want to use the operation Integer.toString() defined here:
http://wiki.eclipse.org/OCLSnippets#Integer_to_String_Conver sion

Where should I put it or how should I use it in order to make it work in
the Interactive OCL console?

The initial form of this (
http://dev.eclipse.org/newslists/news.eclipse.modeling.mdt.o cl/msg01114.html
) works fine, but I'd rather not write this much for every query.

Then, I want to use it to perform initializations in my GMF project.
Where should I put it so that I can use it to write initializations in
my .gmfgraph file at design time?

Thank you,
Lucian
Re: Integer to String Conversion [message #54778 is a reply to message #54610] Sun, 04 May 2008 01:53 Go to previous message
Eclipse UserFriend
Originally posted by: give.a.damus.gmail.com

Hi, Lucian,

The interactive console example does not currently support OCL
definitions. You are welcome to contribute an enhancement to it :-)

As far as GMF's support for OCL constraints is concerned, you'd best
ask on the GMF newsgroup to find out what your options are. MDT OCL
provides an API for parsing definitions, but it is up to GMF to use it
in some appropriate way.

Cheers,

Christian


On Wednesday 04-30-2008 (01:30), Lazar Codrut Lucian wrote:
> Hello,

> I want to use the operation Integer.toString() defined here:
> http://wiki.eclipse.org/OCLSnippets#Integer_to_String_Conver sion

> Where should I put it or how should I use it in order to make it
> work inthe Interactive OCL console?

> The initial form of this (

> http://dev.eclipse.org/newslists/news.eclipse.modeling.mdt.o cl/msg0111
> 4.html) works fine, but I'd rather not write this much for every
> query.

> Then, I want to use it to perform initializations in my GMF project.
> Where should I put it so that I can use it to write initializations
> inmy .gmfgraph file at design time?

> Thank you,
> Lucian


--

I'm trying a new usenet client for Mac, Nemo OS X.
You can download it at http://www.malcom-mac.com/nemo
Previous Topic:OCL Console in EMF RCP editor
Next Topic:Resolving Collection Types....
Goto Forum:
  


Current Time: Thu Apr 25 20:02:55 GMT 2024

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

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

Back to the top