| Summary: | [ds tooling] Service Component wizard improvements | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] PDE | Reporter: | Simon Archer <sja.eclipse> | ||||||
| Component: | UI | Assignee: | Chris Aniszczyk <caniszczyk> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | caniszczyk | ||||||
| Version: | 3.5 | ||||||||
| Target Milestone: | 3.5 M4 | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Simon Archer
Created attachment 117134 [details]
DSFileWizardPage and DSNewWizard updates
Dialog has a title now.
He have a hyperlink to create new java implementation class.
Rafael, can you reapply a new patch? This one doesn't apply cleanly against HEAD. Created attachment 117506 [details]
Wizard patch updates
Thanks Rafael! Having tried out the patch, this looks like a step in the right direction. Issues 1, 5 (suggest component filename) and 6 seem to have been addressed.
Problems with the patch:
- To be consistent with other wizards, change the dialog title from
"Service Component" to "New Service Component.
- When using the Bundle-SymbolicName as the component name, it is
important to strip off any header parameters, such as ";singleton:=true".
Issues yet to be addressed:
- 2, 3, 4, 5 (persist component filename), 7, 8, 9, 10. Maybe extracting
issues to separate bug report might be the answer.
New Suggestions:
- It might be helpful to have the following checkbox below the Class field:
[x] Generate lifecycle methods.
If this checkbox is checked, and it should be checked by default, the
component class will have the following methods added, if they do not
already exist:
protected void activate(ComponentContext context) {
}
protected void deactivate(ComponentContext context) {
}
The state of the checkbox should probably also be persisted. The context
parameter is of type org.osgi.service.component.ComponentContext.
I made the fixes Simon suggested for the wizard title and stripping attributes. I will leave it up to SImon to open bugs for the other issues as this bug is getting too large for everythig IMHO. Thanks guys! Thanks Chris. Here's the new bug reports for the remaining open issues: Issue 2: Ignore for now. Issue 3: See bug 254969. [ds tooling] Service Component wizard: Support Folder Creation Issue 4: Ignore for now. Issue 5: See bug 254970. [ds tooling] Service Component wizard: Persist "File name" field Issue 7: See bug 254971. [ds tooling] Service Component wizard: "Browse..." button should only allow visible types to be chosen Issue 8: See bug 254972. [ds tooling] Service Component wizard: Improve field validation Issue 9: See bug 254973. [ds tooling] Service Component wizard: Improve the handling of the Service-Component header Issue 10: See bug 254975. [ds tooling] Service Component wizard: Add missing ALT accelerators And the suggestion to add a "Generate lifecycle methods" checkbox has been moved to bug 254976. [ds tooling] Service Component wizard: Add checkbox for generating lifecycle methods |