Chris Bolton
Chris Bolton

Reputation: 2314

How to get IProject Properties

In Eclipse, when you right click a project and go to Properties, you can see all the Properties for that project. I want to be able to retrieve these properties with my IProject. Is there a good way to do this? I have looked into IResource and have been trying to figure out if I can use it to retrieve the properties. The IResource API can be found here

Upvotes: 2

Views: 59

Answers (1)

greg-449
greg-449

Reputation: 111142

Each property page in the properties is provided by a property page class. This class can use any method that suits it to get the properties. So there is no general way to get all the properties.

You can study the source of an individual property page to see how it is getting the properties. However the API used may be an internal API which you should not use.

Use Eclipse Plugin Spy to find out which class is displaying a particular property page: Example Plugin Spy

Upvotes: 2

Related Questions