Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Checking whether two objects have the same type
Checking whether two objects have the same type [message #479398] Mon, 10 August 2009 20:59 Go to next message
Eclipse UserFriend
Originally posted by: nyoescape.gmail.com

Hi everyone,

I needed today to check whether two objects in my model had the same
type, and I didn't find anything in the documentation. However, there's
such an operation in o.e.e.eol.execute.operations.simple.TypeOperation,
which returns the type name as a String. Seems to work just fine for any
type.

Should I prepare a patch for the table of operations of the Any type in
the Epsilon book and report a bug for this?

Regards,
Antonio
Re: Checking whether two objects have the same type [message #479403 is a reply to message #479398] Mon, 10 August 2009 21:23 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hey Antonio,

Thanks for reporting the problem. I think that type() was introduced
while the book was being written. Apologies for the omission!

I had a couple of minutes this evening, and a copy of the Epsilon book
on my hard disk, so I've made the changes and committed to SVN. This bug
report covers the issue:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=286181

Thanks for offering to prepare a patch. The full source for the book is
available in SVN, so feel free to suggest and/or submit any further
patches. Cheers!

Best,
Louis.

Antonio García Domínguez wrote:
> Hi everyone,
>
> I needed today to check whether two objects in my model had the same
> type, and I didn't find anything in the documentation. However, there's
> such an operation in o.e.e.eol.execute.operations.simple.TypeOperation,
> which returns the type name as a String. Seems to work just fine for any
> type.
>
> Should I prepare a patch for the table of operations of the Any type in
> the Epsilon book and report a bug for this?
>
> Regards,
> Antonio
Re: Checking whether two objects have the same type [message #573565 is a reply to message #479398] Mon, 10 August 2009 21:23 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hey Antonio,

Thanks for reporting the problem. I think that type() was introduced
while the book was being written. Apologies for the omission!

I had a couple of minutes this evening, and a copy of the Epsilon book
on my hard disk, so I've made the changes and committed to SVN. This bug
report covers the issue:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=286181

Thanks for offering to prepare a patch. The full source for the book is
available in SVN, so feel free to suggest and/or submit any further
patches. Cheers!

Best,
Louis.

Antonio García Domínguez wrote:
> Hi everyone,
>
> I needed today to check whether two objects in my model had the same
> type, and I didn't find anything in the documentation. However, there's
> such an operation in o.e.e.eol.execute.operations.simple.TypeOperation,
> which returns the type name as a String. Seems to work just fine for any
> type.
>
> Should I prepare a patch for the table of operations of the Any type in
> the Epsilon book and report a bug for this?
>
> Regards,
> Antonio
Previous Topic:Checking whether two objects have the same type
Next Topic:Preconditions and postconditions for operations and ErlParserRules.g
Goto Forum:
  


Current Time: Thu Apr 25 09:47:17 GMT 2024

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

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

Back to the top