Bug 332619 - Small error in IType#codeComplete Javadoc example
Summary: Small error in IType#codeComplete Javadoc example
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.6.1   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 trivial (vote)
Target Milestone: 3.7 M5   Edit
Assignee: Ayushman Jain CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-15 07:03 EST by Karsten Thoms CLA
Modified: 2011-01-25 03:39 EST (History)
2 users (show)

See Also:


Attachments
fix (865 bytes, patch)
2010-12-17 09:10 EST, Ayushman Jain CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Karsten Thoms CLA 2010-12-15 07:03:39 EST
Change fEndTime --> endTime

current:
	 * new IProgressMonitor() {
	 *     private final static int TIMEOUT = 500; //ms
	 *     private long endTime;
	 *     public void beginTask(String name, int totalWork) {
	 *         fEndTime= System.currentTimeMillis() + TIMEOUT;
	 *     }
	 *     public boolean isCanceled() {
	 *         return endTime <= System.currentTimeMillis();
	 *     }


must be:

	 * new IProgressMonitor() {
	 *     private final static int TIMEOUT = 500; //ms
	 *     private long endTime;
	 *     public void beginTask(String name, int totalWork) {
	 *         endTime= System.currentTimeMillis() + TIMEOUT;
	 *     }
	 *     public boolean isCanceled() {
	 *         return endTime <= System.currentTimeMillis();
	 *     }
Comment 1 Ayushman Jain CLA 2010-12-15 07:11:02 EST
Thanks for reporting. I'll fix this.
Comment 2 Ayushman Jain CLA 2010-12-17 09:10:23 EST
Created attachment 185423 [details]
fix
Comment 3 Ayushman Jain CLA 2010-12-17 09:11:27 EST
Released in HEAD for 3.7M5. Verification to be done using code inspection.
Comment 4 Srikanth Sankaran CLA 2011-01-25 03:39:57 EST
Verified for 3.7M5