Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » casting an IResource object to IContainer???
casting an IResource object to IContainer??? [message #88101] Thu, 03 July 2003 07:41 Go to next message
Eclipse UserFriend
Originally posted by: shilpagu.noida.hcltech.com

I am casting an IResource kind of object to IContainer, cause i want to
access the members of IResource object.
But an exception is being thrown.
Is such casting not allowed?
Is there any other way, I can access the members of an object of kind
IResource?
Re: casting an IResource object to IContainer??? [message #88116 is a reply to message #88101] Thu, 03 July 2003 07:56 Go to previous message
Eclipse UserFriend
Originally posted by: adam_kiezun.ch.ibm.spam.protection.com

check if it _is_ an IContainer before and cast only if it is

a.
Previous Topic:NPE in equals of IResource
Next Topic:debugger name ?
Goto Forum:
  


Current Time: Thu May 01 21:02:38 EDT 2025

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

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

Back to the top