Bug 277303 - [clean up] Add ISV doc for the clean up extension point
Summary: [clean up] Add ISV doc for the clean up extension point
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5   Edit
Hardware: All All
: P3 trivial (vote)
Target Milestone: 3.5.1   Edit
Assignee: Raksha Vasisht CLA
QA Contact:
URL:
Whiteboard:
Keywords: Documentation
Depends on:
Blocks:
 
Reported: 2009-05-21 05:20 EDT by Dani Megert CLA
Modified: 2009-08-28 02:21 EDT (History)
1 user (show)

See Also:


Attachments
Patch (13.53 KB, patch)
2009-08-10 04:02 EDT, Raksha Vasisht CLA
daniel_megert: review-
Details | Diff
Minor changes + UI code (22.02 KB, patch)
2009-08-12 07:42 EDT, Raksha Vasisht CLA
daniel_megert: review-
Details | Diff
Patch with review changes. (18.20 KB, patch)
2009-08-17 03:46 EDT, Raksha Vasisht CLA
daniel_megert: iplog+
daniel_megert: review+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2009-05-21 05:20:44 EDT
I20090520-2000.

We need to write ISV doc on how to contribute a simple Clean Up and a Save Action.
Comment 1 Raksha Vasisht CLA 2009-08-10 04:02:51 EDT
Created attachment 143868 [details]
Patch
Comment 2 Dani Megert CLA 2009-08-11 11:47:11 EDT
Please review the doc again regarding the used terms (e.g. you use "Writing a clean up options provider" but that's not a well known term) and spelling (e.g. upper vs. lowercase - there are several bugs in that area). In addition, please don't use code style in headings (most of the time you use the id just below, so there's no need to write/use it in the heading).

When describing things say what needs to be done and why it needs to be done instead of writing "should ..." or "can...", e.g.:
"The CleanUpRequirements can be obtained using the getRequirements() " is wrong. It should describe that and why this needs to be implemented.


"with the example of a CopyrightsUpdate clean up which updates the copyrights for a file on save: "
This is too complicated. Just write: 
"with the example of a clean up which updates the copyrights for a file on save: "


Put the big junk of code for the preference UI into its own file and link to it.
Comment 3 Raksha Vasisht CLA 2009-08-12 07:42:35 EDT
Created attachment 144205 [details]
Minor changes + UI code

(In reply to comment #2)
> Please review the doc again regarding the used terms (e.g. you use "Writing a
> clean up options provider" but that's not a well known term) and spelling (e.g.
> upper vs. lowercase - there are several bugs in that area). In addition, please
> don't use code style in headings (most of the time you use the id just below,
> so there's no need to write/use it in the heading).
> 
 I have changed it to "Contributing a clean up ..." . Does that qualify?

> When describing things say what needs to be done and why it needs to be done
> instead of writing "should ..." or "can...", e.g.:
> "The CleanUpRequirements can be obtained using the getRequirements() " is
> wrong. It should describe that and why this needs to be implemented.

Done. 

> "with the example of a CopyrightsUpdate clean up which updates the copyrights
> for a file on save: "
> This is too complicated. Just write: 
> "with the example of a clean up which updates the copyrights for a file on
> save: "

Done. 
> 
> Put the big junk of code for the preference UI into its own file and link to
> it.
> 

Attached the CopyrightTabPage code.
Comment 4 Dani Megert CLA 2009-08-14 07:48:12 EDT
> I have changed it to "Contributing a clean up ..." . Does that qualify?
Yes.

Better but not ready yet ;-)
Please
- add copyright notice to the CopyrightTabPage source file
- keep the source file at the same location (it does not belong under 'reference')
- as said before, there is too much code for CopyrightTabPage. It's now in its
  own file but most of it is duplicated in the main document. Please refer to the
  source file at the beginning of the "Contributing a clean up options 
  initializer" paragraph and then only mention and explain the methods without
  posting any implementations.
- remove fully qualified name from title
Comment 5 Raksha Vasisht CLA 2009-08-17 03:46:07 EDT
Created attachment 144647 [details]
Patch with review changes.
Comment 6 Dani Megert CLA 2009-08-19 06:59:00 EDT
Committed to HEAD and R3_5_maintenance with some minor tweaks.
Comment 7 Markus Keller CLA 2009-08-27 12:15:10 EDT
Verified in M20090826-1100.

In HEAD, I fixed the following problems (Raksha, please take a look):

- This document is addressed to *implementers* that contribute to the extension points and implement the interfaces. Therefore it should also be written from a client perspective and explain what the implementer has to do, and not what the framework does with the implementation.

- Fixed doctype and HTML errors due to bad tag nesting
- Removed unused span tags and class attributes
- Removed wrong whitespace (e.g. before a comma) and added colons
Comment 8 Raksha Vasisht CLA 2009-08-28 02:21:20 EDT
(In reply to comment #7)
> Verified in M20090826-1100.
> 
> In HEAD, I fixed the following problems (Raksha, please take a look):
> 
> - This document is addressed to *implementers* that contribute to the extension
> points and implement the interfaces. Therefore it should also be written from a
> client perspective and explain what the implementer has to do, and not what the
> framework does with the implementation.
> 
> - Fixed doctype and HTML errors due to bad tag nesting
> - Removed unused span tags and class attributes
> - Removed wrong whitespace (e.g. before a comma) and added colons
> 

Yep, I agree. Thanks for doing the changes Markus!