Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 277341

Summary: [API] SWT.getVersion() is missing
Product: [RT] RAP Reporter: Markus Wolf <markus>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 1.2   
Target Milestone: 1.3 M7   
Hardware: All   
OS: All   
Whiteboard:

Description Markus Wolf CLA 2009-05-21 11:55:08 EDT
The method SWT.getVersion() is missing from the API. It would be nice to return the RWT version from this method.
Comment 1 Ralf Sternberg CLA 2009-05-22 06:23:32 EDT
The suggested change could mislead existing SWT code that switches logic based on the SWT version. I doubt that we can implement this method reasonably.
Comment 2 Markus Wolf CLA 2009-05-28 02:40:37 EDT
Maybe this method should then return the implemented api version on which RWT is based?
Comment 3 Ralf Sternberg CLA 2010-04-20 08:06:48 EDT
In a discussion with RĂ¼diger, we decided that returning the SWT version is also misleading, since we do not support 100% of the SWT 3.6 API.

The method now returns the RWT version, which is useful in combination SWT#getPlatform().
Changes are in CVS HEAD.