[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: No common IList interface for List and Combo

amonteith wrote:
duh! List and Combo classes don't allow subclassing, so I guess I'll just wrap 'em. BTW, this brings me to another question: why are there all these classes in the eclipse swt that say "IMPORTANT: This class is <em>not</em> intended to be subclassed" but the class itself is not declared final?


You can subclass SWT widgets (most of them) but they really discourage you from doing so. You need to override Widget.checkSubclass() [and DON'T call super.checkSubclass()], but I've subclassed List before to add behavior as you're doing.


Hope this helps,
	Eric