[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: Extending Folder resource

Rahul,

It's not intended to be subclassed so don't even bother trying. You should use persistent properties or some other type of mechanism to augment the existing implementation.


Rahul Kamdar wrote:
Hi,

I want to extend the org.eclipse.core.internal.resources.Folder to create my own type of a Folder and add to the behavior and some of my own manipulations. When I try to directly extend it, the constructor returns a ClassCastException. Even if I try to cast a folder object to my own custom folder, I get the same ClassCastException.

We cannot extend classes defined under org.eclipse.core.internal.resources, is it? Would you suggest on how to try to the same! :-)

Thanks.