Actually i resolved the problem goin thru some eclipse forum where they mentioned to include the org.eclipse.core.resources library in the dependencies of the plugin instead of the Project -> Properties -> Build Path.