Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] No interfaces in SWT?

Hi all-

I have a question about the design of the SWT API: There does not appear to be any set of standard interfaces that SWT classes are required to implement. For example, the org.eclipse.swt.widgets.Button class does not implement any interface that dictates what methods a Button should have - it just extends Control. How does an SWT developer, either working on an SWT application or porting the SWT to a new platform, know which classes and methods should be available to applications on all platforms and which are implementation-specific? An API guide would be helpful, but is not as reliable as ensuring that a class implements an interface. What is the design rationale for not using interfaces? Am I missing something?

If there is an API guide, could someone please point me to it? Thanks!

Greg



Back to the top