Custom Folder Type [message #496198] |
Mon, 09 November 2009 05:44  |
Eclipse User |
|
|
|
I'm trying to create a custom folder type that is associated with my custom project. As an analogy, in a Java project, you can right-click, select New and choose Source Folder. I want this feature, but with my own project and folder type.
I imagine that adding the context menu won't be too difficult, but I'm unsure where to begin with defining the folder type, and my googling turns up nothing (though I imagine it's because I don't know exactly what I'm looking for).
Any help is much appreciated, especially if there's a Help page on this.
Thanks,
James
|
|
|
Re: Custom Folder Type [message #496250 is a reply to message #496198] |
Mon, 09 November 2009 08:37  |
Eclipse User |
|
|
|
James Williams wrote:
> I'm trying to create a custom folder type that is associated with my
> custom project. As an analogy, in a Java project, you can right-click,
> select New and choose Source Folder. I want this feature, but with my
> own project and folder type.
You can't make your own folder type as it is not allowed to subclass
IFolder. A source folder is not a custom folder type but a Java element
in the Java model that's backed by an IFolder.
Dani
>
> I imagine that adding the context menu won't be too difficult, but I'm
> unsure where to begin with defining the folder type, and my googling
> turns up nothing (though I imagine it's because I don't know exactly
> what I'm looking for).
>
> Any help is much appreciated, especially if there's a Help page on this.
>
> Thanks,
> James
|
|
|
Powered by
FUDForum. Page generated in 0.04004 seconds