Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » How to get IFolder instance of project's root(project.getFolder(".") ???)
icon5.gif  How to get IFolder instance of project's root [message #642389] Wed, 01 December 2010 07:45 Go to next message
Mark Anderson is currently offline Mark AndersonFriend
Messages: 8
Registered: October 2010
Junior Member
Hi all,

I've made a project named 'sample' and I have a button in another view.
I would like to get an IFolder instance of project 'sample''s root folder when button clicked.
I've tried "project.getFolder(".")" but throws an Exception.
Is there any suggestions about it?


Thanks and have a nice day~

[Updated on: Wed, 01 December 2010 09:06]

Report message to a moderator

Re: How to get IFolder instance of eclipse project root [message #643002 is a reply to message #642389] Fri, 03 December 2010 15:24 Go to previous message
Eclipse UserFriend
Originally posted by: agranov.allmail.net

IProject is IContainer

Why do you need IFolder and can not simply use IContainer methods on
IProject directly?

Thanks,
Gennady

On 12/1/2010 2:45 AM, Mark Anderson wrote:
> Hi all,
>
> I've made a project named 'sample' and I have a button in another view.
> I would like to get an IFolder instance of project 'sample''s root
> folder when button clicked.
> I've tried "project.getFolder(".")" but throws an Exception.
> Is there any suggestions about it?
>
>
> Thanks and have a nice day~
Previous Topic:Why JDT does not see plugin classes? Thanks!
Next Topic:How to create xml viewer by using eclipse xml syntax coloring?
Goto Forum:
  


Current Time: Tue Apr 16 06:49:01 GMT 2024

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

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

Back to the top