Skip to main content



      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 02:45 Go to next message
Eclipse UserFriend
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 04:06] by Moderator

Re: How to get IFolder instance of eclipse project root [message #643002 is a reply to message #642389] Fri, 03 December 2010 10: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: Wed Jul 02 03:30:09 EDT 2025

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

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

Back to the top