Checking whether two objects have the same type [message #479398] |
Mon, 10 August 2009 20:59 |
Eclipse User |
|
|
|
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 |
Louis Rose 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 |
Louis Rose 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
|
|
|
Powered by
FUDForum. Page generated in 0.02705 seconds