Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Custom Folder Type(How to create a project-specific custom folder type)
Custom Folder Type [message #496198] Mon, 09 November 2009 10:44 Go to next message
James Williams is currently offline James Williams
Messages: 27
Registered: July 2009
Junior Member
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 13:37 Go to previous message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
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
Previous Topic:Eclipse Development on Windows 7
Next Topic:Common Navigator and lightweight decorators not refreshing
Goto Forum:
  


Current Time: Sun Sep 21 12:15:52 GMT 2014

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

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