Eclipse is not that good with static imports but it is possible to make the content assist suggest and automatically add static imports. Go to Preferences -> Java -> Editor -> Content Assist -> Favorites and add the types
javax.swing.GroupLayout.*
, javax.swing.GroupLayout.Alignment.*
and javax.swing.LayoutStyle.ComponentPlacement.*
:
It is now possible to use the Content Assist (Ctrl + Space) to get help when writing the GroupLayout properties:

No comments:
Post a Comment