Bug 173693 - Add comment to javadoc in advanced graphics methods of SWTGraphics
Summary: Add comment to javadoc in advanced graphics methods of SWTGraphics
Status: RESOLVED FIXED
Alias: None
Product: GEF
Classification: Tools
Component: GEF-Legacy GEF (MVC) (show other bugs)
Version: 3.2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3.0 (Europa) M6   Edit
Assignee: Anthony Hunter CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2007-02-09 15:48 EST by Cherie Revells CLA
Modified: 2008-09-18 13:29 EDT (History)
0 users

See Also:


Attachments
Adds to existing javadoc. (52.76 KB, patch)
2007-02-09 15:50 EST, Cherie Revells CLA
no flags Details | Diff
Removed added whitespace from patch (4.48 KB, patch)
2007-02-15 14:05 EST, Cherie Revells CLA
ahunter.eclipse: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Cherie Revells CLA 2007-02-09 15:48:55 EST
If clients use some of the methods in SWTGraphics that require the advanced graphics library and the user does not have an advanced graphics library in their environment the results could be ugly (diagram may not open or be unusable and log fills up with errors).  Clients should check if advanced graphics is supported, by calling GC.getAdvanced(), before calling a method on SWTGraphics that requires advanced graphics.

I suggest we at least add a comment to the javadoc in advanced graphics methods of SWTGraphics to make clients aware of this.

I am attaching a patch.
Comment 1 Cherie Revells CLA 2007-02-09 15:50:06 EST
Created attachment 58698 [details]
Adds to existing javadoc.
Comment 2 Anthony Hunter CLA 2007-02-15 13:50:03 EST
Cherie, can you redo the patch so that it does not change the method indentation. Open the patch and you will see what I mean.
Comment 3 Cherie Revells CLA 2007-02-15 14:05:50 EST
Created attachment 59082 [details]
Removed added whitespace from patch
Comment 4 Anthony Hunter CLA 2007-03-22 08:54:46 EDT
Committed to HEAD
Comment 5 Anthony Hunter CLA 2007-03-29 15:04:56 EDT
I cannot change the Assigned To: field without reopening the bug.
Comment 6 Anthony Hunter CLA 2007-03-29 15:05:44 EDT
Patch committed to GEF 3.3 M6