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

Bug 342031

Summary: Coding conventions: set the number of import needed for .* to 99
Product: [RT] RAP Reporter: Rüdiger Herrmann <ruediger.herrmann>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 1.4   
Target Milestone: 1.5 M2   
Hardware: All   
OS: All   
Whiteboard:

Description Rüdiger Herrmann CLA 2011-04-06 10:30:15 EDT
As we recently changed some of our coding conventions I would like to take the opportunity and suggest another change:
Set the number of imports needed for .* (e.g. org.eclipse.rwt.widgets.*) to 99 (currently 3)
With this change, it would be easier to deal with classes that have the same simple name but reside in different packages.
Though this leads to larger import statements, the extra amount of lines is not noticable as this section is usually collapsed.

For example:
Using 3 or more classes from the org.eclipse.swt.widgets package leads to this import statement:
  org.eclipse.swt.widgets.*
Using class List from java.util becomes difficult as it is mistaken for class List from the widgets package.
Comment 1 Ralf Sternberg CLA 2011-04-17 15:17:12 EDT
+1
Comment 2 Rüdiger Herrmann CLA 2011-04-18 03:33:53 EDT
In my opinion it makes sense to schedule this for one of the RC's
Comment 3 Ivan Furnadjiev CLA 2012-03-29 07:13:27 EDT
This has been fixed for org.eclipse.rap.rwt bundle in 1.5M2.