Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Problems Validatin with OCL an atribute of EDataType
Problems Validatin with OCL an atribute of EDataType [message #196112] Tue, 08 July 2008 17:43 Go to next message
Eclipse UserFriend
Originally posted by: yo.davidm.gmail.com

Hi, i have a EdataType programmed for my in a class apart.
The class is called "Tupla", it has :

public boolean derivado;
public String procede;

I modify the two methods: convertToString and convertFromString and it
works perfectly in my Diagram.
I have an Eclass(Servicio) that has an EAttribute "tupla" of
EDataType:Tupla.This attribute has multivalued (lower bound 0, upper bound
-1; then i have an Elist of Tupla) and it words perfectly, my problem is
in validation.....

OCL gives mistakes.If i put:

-Domain Element target: Servicio
-Constraint:self.tupla->notEmpty() it gives this mistake:
Invalid expresion body 'self.tupla->notEmpty()'Cause:null

I dont know if OCL not support this EDataType or I am doing it badly

If I cannot use OCL; someone can say me where to look for information to
do it in Java?


Thanks
PD: My english is very bad, im sorry
Re: Problems Validatin with OCL an atribute of EDataType [message #196141 is a reply to message #196112] Tue, 08 July 2008 23:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cdamus.zeligsoft.com

--=-cFSoTGKXzUGMf7rckAp5
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi, David,

The "Cause:null" suggests that an exception occurred in parsing the OCL,
probably a NullPointerException (which commonly doesn't have a message).

Can you provide a stack trace, perhaps from the workspace log?

Cheers,

Christian


On Tue, 2008-07-08 at 17:43 +0000, David Mari wrote:

> Hi, i have a EdataType programmed for my in a class apart.
> The class is called "Tupla", it has :
>
> public boolean derivado;
> public String procede;
>
> I modify the two methods: convertToString and convertFromString and it
> works perfectly in my Diagram.
> I have an Eclass(Servicio) that has an EAttribute "tupla" of
> EDataType:Tupla.This attribute has multivalued (lower bound 0, upper bound
> -1; then i have an Elist of Tupla) and it words perfectly, my problem is
> in validation.....
>
> OCL gives mistakes.If i put:
>
> -Domain Element target: Servicio
> -Constraint:self.tupla->notEmpty() it gives this mistake:
> Invalid expresion body 'self.tupla->notEmpty()'Cause:null
>
> I dont know if OCL not support this EDataType or I am doing it badly
>
> If I cannot use OCL; someone can say me where to look for information to
> do it in Java?
>
>
> Thanks
> PD: My english is very bad, im sorry
>

--=-cFSoTGKXzUGMf7rckAp5
Content-Type: text/html; charset=utf-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.16.0">
</HEAD>
<BODY>
Hi, David,<BR>
<BR>
The &quot;Cause:null&quot; suggests that an exception occurred in parsing the OCL, probably a NullPointerException (which commonly doesn't have a message).<BR>
<BR>
Can you provide a stack trace, perhaps from the workspace log?<BR>
<BR>
Cheers,<BR>
<BR>
Christian<BR>
<BR>
<BR>
On Tue, 2008-07-08 at 17:43 +0000, David Mari wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Hi, i have a EdataType programmed for my in a class apart.</FONT>
<FONT COLOR="#000000">The class is called &quot;Tupla&quot;, it has :</FONT>

<FONT COLOR="#000000">public boolean derivado;</FONT>
<FONT COLOR="#000000">public String procede;</FONT>

<FONT COLOR="#000000">I modify the two methods: convertToString and convertFromString and it </FONT>
<FONT COLOR="#000000">works perfectly in my Diagram.</FONT>
<FONT COLOR="#000000">I have an Eclass(Servicio) that has an EAttribute &quot;tupla&quot; of </FONT>
<FONT COLOR="#000000">EDataType:Tupla.This attribute has multivalued (lower bound 0, upper bound </FONT>
<FONT COLOR="#000000">-1; then i have an Elist of Tupla) and it words perfectly, my problem is </FONT>
<FONT COLOR="#000000">in validation.....</FONT>

<FONT COLOR="#000000">OCL gives mistakes.If i put:</FONT>

<FONT COLOR="#000000">-Domain Element target: Servicio</FONT>
<FONT COLOR="#000000">-Constraint:self.tupla-&gt;notEmpty() it gives this mistake:</FONT>
<FONT COLOR="#000000">Invalid expresion body 'self.tupla-&gt;notEmpty()'Cause:null</FONT>

<FONT COLOR="#000000">I dont know if OCL not support this EDataType or I am doing it badly</FONT>

<FONT COLOR="#000000">If I cannot use OCL; someone can say me where to look for information to </FONT>
<FONT COLOR="#000000">do it in Java?</FONT>


<FONT COLOR="#000000">Thanks </FONT>
<FONT COLOR="#000000">PD: My english is very bad, im sorry</FONT>

</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>

--=-cFSoTGKXzUGMf7rckAp5--
Re: Problems Validatin with OCL an atribute of EDataType [message #196243 is a reply to message #196141] Wed, 09 July 2008 09:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: yo.davidm.gmail.com

I look at mi error log in : worskpace/.metadata and its empty.

Look at this , maybe find the error:

Package CasosUsoExt <CasosUsoExt>

Class Servicio
Attribute tupla : Tupla<<0..*>>
Attribute nombre : EString<<0..*>>

Class Diagrama
Reference servicios : Servicio<<1..*>>

DataType Tupla <CasosUsoExt.Tupla>

-------------------
This is the class Tupla:
-------------------

package CasosUsoExt;
import org.eclipse.emf.common.util.EList;
public class Tupla {
public boolean derivado;
public String procede;

public Tupla(String s)
{
String cadena;
cadena=s.substring(0,5);
if (cadena.equalsIgnoreCase("false")){
derivado=false;
procede=s.substring(7, s.length()-1);
}
else
{
derivado=true;
procede=s.substring(5, s.length()-1);
}
}
public String toString()
{
return (this.derivado+","+this.procede);
}
}
-------------------------
createFromString method
-------------------------

public Tupla createTuplaFromString(EDataType eDataType, String
initialValue) { Tupla tupla1=new Tupla(initialValue);
return tupla1;
}
-------------------------
convertFromString method
-------------------------

public String convertTuplaToString(EDataType eDataType, Object
instanceValue) {
return instanceValue.toString();
}

Maybe the error is in createTuplaFromString? This works perfectly when I
execute the GMF Diagram.

I can validate Attribute nombre : EString<<0..*>>, but I cant validate
Attribute tupla : Tupla<<0..*>> This is very strange, the two are lists of
elements .

Thank you very much for the help Christian
Regards
Re: Problems Validatin with OCL an atribute of EDataType [message #196251 is a reply to message #196243] Wed, 09 July 2008 09:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: yo.davidm.gmail.com

Sorry for the tabulations, has not extracted them well.
Re: Problems Validatin with OCL an atribute of EDataType [message #196319 is a reply to message #196243] Wed, 09 July 2008 12:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cdamus.zeligsoft.com

--=-n0WRumhQEncyS4MOTLF9
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi, David,

The OCL parser wouldn't have to actually create any Tupla instances in
order to parse, so the create-from-string implementation wouldn't be
relevant.

It is unfortunate that the log is empty.

Let's try something different. Install the OCL Interactive Console
example from the MDT OCL component:


http://www.eclipse.org/downloads/download.php?file=/modeling /mdt/ocl/downloads/drops/1.2.0/R200806091714/mdt-ocl-example s-1.2.0.zip

Then, follow these steps:


1. In the Ecore editor for your CasosUsoExt model, use the "Open
OCL Console" menu action to start the OCL console.
2. In the console, select the "M1" option in the "Modeling Level"
drop-down list in the action bar (the default selection is
"M2").
3. In the editor, select the Servicio EClass.
4. In the console, then enter your constraint in the bottom pane
and press Enter: self.tupla->notEmpty()


If the OCL parses successfully, then you will see a blue message to that
effect. Otherwise, if some exception happens, you should see it in the
log.

If the OCL parses, then the problem is somewhere in GMF or in the way
you declared the constraint in your GMF model. In any case, you may
find this OCL console handy for developing and testing OCL constraint
expressions.

HTH,

Christian

On Wed, 2008-07-09 at 09:40 +0000, David Mari wrote:

> I look at mi error log in : worskpace/.metadata and its empty.


-----8<-----


> Maybe the error is in createTuplaFromString? This works perfectly when I
> execute the GMF Diagram.
>
> I can validate Attribute nombre : EString<<0..*>>, but I cant validate
> Attribute tupla : Tupla<<0..*>> This is very strange, the two are lists of
> elements .
>
> Thank you very much for the help Christian
> Regards
>
>

--=-n0WRumhQEncyS4MOTLF9
Content-Type: text/html; charset=utf-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.16.0">
</HEAD>
<BODY>
Hi, David,<BR>
<BR>
The OCL parser wouldn't have to actually create any Tupla instances in order to parse, so the create-from-string implementation wouldn't be relevant.<BR>
<BR>
It is unfortunate that the log is empty.<BR>
<BR>
Let's try something different.&nbsp; Install the OCL Interactive Console example from the MDT OCL component:<BR>
<BR>
&nbsp; <A HREF=" http://www.eclipse.org/downloads/download.php?file=/modeling /mdt/ocl/downloads/drops/1.2.0/R200806091714/mdt-ocl-example s-1.2.0.zip"> http://www.eclipse.org/downloads/download.php?file=/modeling /mdt/ocl/downloads/drops/1.2.0/R200806091714/mdt-ocl-example s-1.2.0.zip</A><BR>
<BR>
Then, follow these steps:<BR>
<BR>
<OL TYPE=1>
<LI TYPE=1 VALUE=1>In the Ecore editor for your CasosUsoExt model, use the &quot;Open OCL Console&quot; menu action to start the OCL console.
<LI TYPE=1 VALUE=2>In the console, select the &quot;M1&quot; option in the &quot;Modeling Level&quot; drop-down list in the action bar (the default selection is &quot;M2&quot;).
<LI TYPE=1 VALUE=3>In the editor, select the Servicio EClass.
<LI TYPE=1 VALUE=4>In the console, then enter your constraint in the bottom pane and press Enter:<TT> </TT><TT>self.tupla-&gt;notEmpty()</TT>
</OL>
<BR>
If the OCL parses successfully, then you will see a blue message to that effect.&nbsp; Otherwise, if some exception happens, you should see it in the log.<BR>
<BR>
If the OCL parses, then the problem is somewhere in GMF or in the way you declared the constraint in your GMF model.&nbsp; In any case, you may find this OCL console handy for developing and testing OCL constraint expressions.<BR>
<BR>
HTH,<BR>
<BR>
Christian<BR>
<BR>
On Wed, 2008-07-09 at 09:40 +0000, David Mari wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">I look at mi error log in : worskpace/.metadata and its empty.</FONT>
</PRE>
</BLOCKQUOTE>
<BR>
-----8&lt;-----<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Maybe the error is in createTuplaFromString? This works perfectly when I </FONT>
<FONT COLOR="#000000">execute the GMF Diagram.</FONT>

<FONT COLOR="#000000">I can validate Attribute nombre : EString&lt;&lt;0..*&gt;&gt;, but I cant validate </FONT>
<FONT COLOR="#000000">Attribute tupla : Tupla&lt;&lt;0..*&gt;&gt; This is very strange, the two are lists of </FONT>
<FONT COLOR="#000000">elements .</FONT>

<FONT COLOR="#000000">Thank you very much for the help Christian</FONT>
<FONT COLOR="#000000">Regards</FONT>


</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>

--=-n0WRumhQEncyS4MOTLF9--
Re: Problems Validatin with OCL an atribute of EDataType [message #196341 is a reply to message #196319] Wed, 09 July 2008 16:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: yo.davidm.gmail.com

Thanks; I probe the console and it does not work . With "nombre" it go,
but with tupla dont show nothing(Neither a mistake
Then I look the error log.....:(


!ENTRY org.eclipse.ui 4 0 2008-07-09 17:58:41.355
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
at
org.eclipse.emf.ocl.examples.interpreter.console.OCLConsoleP age.append(OCLConsolePage.java:546)
at
org.eclipse.emf.ocl.examples.interpreter.console.OCLConsoleP age.error(OCLConsolePage.java:523)
at
org.eclipse.emf.ocl.examples.interpreter.console.OCLConsoleP age.evaluate(OCLConsolePage.java:433)
at
org.eclipse.emf.ocl.examples.interpreter.console.OCLConsoleP age$InputKeyListener.keyPressed(OCLConsolePage.java:591)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:154)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:947)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:975)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:971)
at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1285)
at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3772)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3672 )
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:291)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4351 )
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:22 65)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3291)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)


Sincerely I have not even idea of which to do , I need use "Tupla" inside
of "Servicio" and validate instances of "Servicio" with different values
of "Tupla"; and i cant use asociation.

Thank you very much, OMG this is a nightmare!!
Re: Problems Validatin with OCL an atribute of EDataType [message #196366 is a reply to message #196341] Wed, 09 July 2008 20:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cdamus.zeligsoft.com

--=-t14I7+Lw5YaDWEUEn3Dl
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi, David,

Thanks for going that extra mile to isolate the problem. It appears to
be a bug in the OCL parser, and I have raised this:

https://bugs.eclipse.org/240230

to track it.

Any additional information that you would care to add to the bug will be
welcome. In the mean-time, I can tell you that it appears to be some
kind of problem with the instance-class specified for the Tupla data
type. I don't yet know what, precisely.

Cheers,

Christian


On Wed, 2008-07-09 at 16:08 +0000, David Mari wrote:

> Thanks; I probe the console and it does not work . With "nombre" it go,
> but with tupla dont show nothing(Neither a mistake
> Then I look the error log.....:(
>
>
> !ENTRY org.eclipse.ui 4 0 2008-07-09 17:58:41.355
> !MESSAGE Unhandled event loop exception
> !STACK 0
> java.lang.NullPointerException
> at
> org.eclipse.emf.ocl.examples.interpreter.console.OCLConsoleP age.append(OCLConsolePage.java:546)
> at
> org.eclipse.emf.ocl.examples.interpreter.console.OCLConsoleP age.error(OCLConsolePage.java:523)
> at
> org.eclipse.emf.ocl.examples.interpreter.console.OCLConsoleP age.evaluate(OCLConsolePage.java:433)
> at
> org.eclipse.emf.ocl.examples.interpreter.console.OCLConsoleP age$InputKeyListener.keyPressed(OCLConsolePage.java:591)
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:154)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:947)
> at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:975)
> at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:971)
> at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1285)
> at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3772)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:3672 )
> at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:291)
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:4351 )
> at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
> at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:22 65)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3291)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
>
>
> Sincerely I have not even idea of which to do , I need use "Tupla" inside
> of "Servicio" and validate instances of "Servicio" with different values
> of "Tupla"; and i cant use asociation.
>
> Thank you very much, OMG this is a nightmare!!
>
>

--=-t14I7+Lw5YaDWEUEn3Dl
Content-Type: text/html; charset=utf-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.16.0">
</HEAD>
<BODY>
Hi, David,<BR>
<BR>
Thanks for going that extra mile to isolate the problem.&nbsp; It appears to be a bug in the OCL parser, and I have raised this:<BR>
<BR>
<A HREF="https://bugs.eclipse.org/bugs/show_bug.cgi?id=240230">https://bugs.eclipse.org/240230</A><BR>
<BR>
to track it.<BR>
<BR>
Any additional information that you would care to add to the bug will be welcome.&nbsp; In the mean-time, I can tell you that it appears to be some kind of problem with the instance-class specified for the Tupla data type.&nbsp; I don't yet know what, precisely.<BR>
<BR>
Cheers,<BR>
<BR>
Christian<BR>
<BR>
<BR>
On Wed, 2008-07-09 at 16:08 +0000, David Mari wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Thanks; I probe the console and it does not work . With &quot;nombre&quot; it go, </FONT>
<FONT COLOR="#000000">but with tupla dont show nothing(Neither a mistake </FONT>
<FONT COLOR="#000000">Then I look the error log.....:(</FONT>


<FONT COLOR="#000000">!ENTRY org.eclipse.ui 4 0 2008-07-09 17:58:41.355</FONT>
<FONT COLOR="#000000">!MESSAGE Unhandled event loop exception</FONT>
<FONT COLOR="#000000">!STACK 0</FONT>
<FONT COLOR="#000000">java.lang.NullPointerException</FONT>
<FONT COLOR="#000000"> at </FONT>
<FONT COLOR="#000000"> org.eclipse.emf.ocl.examples.interpreter.console.OCLConsoleP age.append(OCLConsolePage.java:546) </FONT>
<FONT COLOR="#000000"> at </FONT>
<FONT COLOR="#000000"> org.eclipse.emf.ocl.examples.interpreter.console.OCLConsoleP age.error(OCLConsolePage.java:523) </FONT>
<FONT COLOR="#000000"> at </FONT>
<FONT COLOR="#000000"> org.eclipse.emf.ocl.examples.interpreter.console.OCLConsoleP age.evaluate(OCLConsolePage.java:433) </FONT>
<FONT COLOR="#000000"> at </FONT>
<FONT COLOR="#000000"> org.eclipse.emf.ocl.examples.interpreter.console.OCLConsoleP age$InputKeyListener.keyPressed(OCLConsolePage.java:591) </FONT>
<FONT COLOR="#000000"> at </FONT>
<FONT COLOR="#000000"> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:154) </FONT>
<FONT COLOR="#000000"> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66) </FONT>
<FONT COLOR="#000000"> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)</FONT >
<FONT COLOR="#000000"> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962)</FONT >
<FONT COLOR="#000000"> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:947)</FONT >
<FONT COLOR="#000000"> at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:975) </FONT>
<FONT COLOR="#000000"> at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:971) </FONT>
<FONT COLOR="#000000"> at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1285)</FONT >
<FONT COLOR="#000000"> at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3772)</FONT >
<FONT COLOR="#000000"> at org.eclipse.swt.widgets.Control.windowProc(Control.java:3672 ) </FONT>
<FONT COLOR="#000000"> at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:291)</FONT >
<FONT COLOR="#000000"> at org.eclipse.swt.widgets.Display.windowProc(Display.java:4351 ) </FONT>
<FONT COLOR="#000000"> at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)</FONT>
<FONT COLOR="#000000"> at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:22 65) </FONT>
<FONT COLOR="#000000"> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3291) </FONT>
<FONT COLOR="#000000"> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389) </FONT>
<FONT COLOR="#000000"> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353) </FONT>
<FONT COLOR="#000000"> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19) </FONT>
<FONT COLOR="#000000"> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)</FONT >
<FONT COLOR="#000000"> at </FONT>
<FONT COLOR="#000000"> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289) </FONT>
<FONT COLOR="#000000"> at </FONT>
<FONT COLOR="#000000"> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461) </FONT>
<FONT COLOR="#000000"> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149) </FONT>
<FONT COLOR="#000000"> at </FONT>
<FONT COLOR="#000000"> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106) </FONT>
<FONT COLOR="#000000"> at </FONT>
<FONT COLOR="#000000"> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169) </FONT>
<FONT COLOR="#000000"> at </FONT>
<FONT COLOR="#000000"> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106) </FONT>
<FONT COLOR="#000000"> at </FONT>
<FONT COLOR="#000000"> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76) </FONT>
<FONT COLOR="#000000"> at </FONT>
<FONT COLOR="#000000"> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363) </FONT>
<FONT COLOR="#000000"> at </FONT>
<FONT COLOR="#000000"> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176) </FONT>
<FONT COLOR="#000000"> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</FONT>
<FONT COLOR="#000000"> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)</FONT>
<FONT COLOR="#000000"> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)</FONT>
<FONT COLOR="#000000"> at java.lang.reflect.Method.invoke(Unknown Source)</FONT>
<FONT COLOR="#000000"> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508) </FONT>
<FONT COLOR="#000000"> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)</FONT >
<FONT COLOR="#000000"> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)</FONT >


<FONT COLOR="#000000">Sincerely I have not even idea of which to do , I need use &quot;Tupla&quot; inside </FONT>
<FONT COLOR="#000000">of &quot;Servicio&quot; and validate instances of &quot;Servicio&quot; with different values </FONT>
<FONT COLOR="#000000">of &quot;Tupla&quot;; and i cant use asociation.</FONT>

<FONT COLOR="#000000">Thank you very much, OMG this is a nightmare!!</FONT>


</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>

--=-t14I7+Lw5YaDWEUEn3Dl--
Re: Problems Validatin with OCL an atribute of EDataType [message #196390 is a reply to message #196366] Wed, 09 July 2008 21:15 Go to previous message
Eclipse UserFriend
Originally posted by: yo.davidm.gmail.com

Thank you very much for the inconveniences that you have taken. During
these days I will continue investigating with similar things and I will
comment to you on my advances or other examples of cases that should not
work or work.


Thank you very much.
Previous Topic:straight line without source and target
Next Topic:copy and paste
Goto Forum:
  


Current Time: Sat Jun 06 12:18:41 GMT 2020

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

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

Back to the top