| Summary: | Expose convert to faceted form action from configure menu | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP Common Tools | Reporter: | Paul Webster <pwebster> | ||||
| Component: | Faceted Project Framework | Assignee: | Konstantin Komissarchik <konstantin> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Konstantin Komissarchik <konstantin> | ||||
| Severity: | enhancement | ||||||
| Priority: | P3 | CC: | darryl, remy.suen | ||||
| Version: | unspecified | Keywords: | plan | ||||
| Target Milestone: | 3.2 M5 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Paul Webster
To help whomever implements this. The test to make it _INVISIBLE_ is to check the .project configure file has _BOTH_ of the following set:
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments><!-- no need to test the existance or contents of this element is empty -->
</arguments>
</buildCommand>
</buildSpec>
AND
<natures>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
</natures>
Otherwise if the .project file only has one or neither of the above two items then the action should be visible to the user for the project.
The action is a per-project action.
The action once executed successfully will instate the above two configuration settings into ".project".
The action _MUST_ never fail in its primary goal, that is to ensure "Faceted Enablement" of the project.
Some of the possible secondary goals maybe to attempt auto-detection to produce a list of "Facet Attributes" to form an initial list to be set on the project (a kind of guessed initial state). However if there is a problem or error doing this secondary goal then that must be aborted to allow to primary goal to succeed. This secondary goal failure can be manually corrected afterwards by the user (but only once the primary goal has been completed).
I'm not sure any "conversion" takes place, this action is more "Enablement" (if there is such a word). Conversion implies something is being taken away / lost (in the process) and that then implies it is an irreversible action. When it should be possible to Disable facets on a project by removing the above two .project configuration sections. The primary goal is actually reversible.
(In reply to comment #1) > > The action _MUST_ never fail in its primary goal, that is to ensure "Faceted > Enablement" of the project. Agreed. To avoid code duplication, this command does nothing except open the properties dialog on the new enable page provided by bug 295544 PW Paul, I have to admire your persistence. The patch is not what I had hoped for, but hey it's something. Since good behavior must be rewarded, I have implemented this enhancement request and released changes for Helios M5 build. Thanks for playing. ;) (In reply to comment #3) > Paul, > > I have to admire your persistence. The patch is not what I had hoped for, but In my case persistence is not necessarily a virtue. Sorry about the lack of true patch, and thank you for considering it. PW |