How to get IFolder instance of project's root [message #642389] |
Wed, 01 December 2010 02:45  |
Mark Anderson 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 04: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 10:24  |
|
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~
|
|
|
Powered by
FUDForum. Page generated in 0.01643 seconds