Project: SWT
Bug 391675 CLabel documentation says class is not intended to be subclassed, then recommends subclassing.
Reported: 2012-10-11 10:23:24 | Status: resolved fixed

The javadoc for the CLabel class includes this statement: "IMPORTANT: This class is not intended to be subclassed." Then the javadoc for CLabel's protected shortenText method states: "Override if you need a different strategy." Please fix the documentation to clarify if subclassing is acceptable.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CLabel.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Canvas.java