Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Subclassing Widgets..


Good catch Ivan.  I almost posted in horror when I read 0%.



"Ivan Markov" <ivan.markov@xxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx

11/23/2004 10:14 AM

Please respond to
platform-swt-dev

To
<platform-swt-dev@xxxxxxxxxxx>
cc
Subject
Re: [platform-swt-dev] Subclassing Widgets..





 
In reality, most of the methods in org.eclipse.swt.widgets.* are package private, and SWT devs continue to use package private methods for their current development.
Where they have public methods with internal sematics, these are usually prefixed by "internal_" or "win32_" or "motif_", so your risk of accidentaly overriding/using these is very low.
 
So your risk of breaking their code in a future release is 0%, because subclassing their widgets does not give you more API - all the additional APIs except few cases are package private => invisible to you.
 
 
I should have thought a little before posting. Shame on me.
 
If they add a public method, and they do it all the time as SWT is a moving target, and you happen to have the same method in your code, you are of course screwed.
 
Sorry for the confusion.
 
-Ivan
 

Back to the top