| Summary: | Facets should provide a preference scope for storing related information | ||
|---|---|---|---|
| Product: | [WebTools] WTP Common Tools | Reporter: | Cameron Bateman <cameron.bateman> |
| Component: | Faceted Project Framework | Assignee: | Konstantin Komissarchik <konstantin> |
| Status: | RESOLVED FIXED | QA Contact: | Konstantin Komissarchik <konstantin> |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | konstantin, thatnitind |
| Version: | 3.0 | Keywords: | plan |
| Target Milestone: | 3.1 M3 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Cameron Bateman
1. Providing a facet-level preference scope to make it easier for facets to store project-level configuration information idea definitely has merit. 2. I am very reluctant to go down the UI path, because I don't want to be creating a new framework that would compete with the existing project properties facility. We already have a property tester facility that let's you check for facets. This property tester can be used when registering a project properties page in order to show the page only if the facet is installed. 3. To validate your facet's state after creation, you can either implement a validator using WTP's validation framework or you can use the mini validation framework that's part of the faceted project framework (take a look at org.eclipse.wst.common.project.facet.core.validators extension point). Added two new API methods to support storing facet-related preferences: project-scoped: IFacetedProject.getPreferences( IProjectFacet facet ) workspace-scoped: FacetedProjectFramework.getPreferences( IProjectFacet facet ) The methods are javadoced and there is even some new content regarding this feature in the framework docs. |