Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-debug-dev] Subclassing CDT classes in plugins


Øyvind Harboe wrote:
I've subclassed org.eclipse.cdt.launch.ui.CDebuggerTab to remove some
options that does not make sense for embedded development. Less choice
is better. :-)

In particular I've overriden createDebuggerCombo() + inlined it into the
subclass to make some tweaks. This forced me to modify fDCombo a
protected, rather than private member.

Yuk!

This is obviously not the way things where intended to be done.

a) How do I know what in CDT that it is approperiate to subclass?
Class that are not in internal packages and not final.

b) How do I handle the case when there is a 95% complete class as in
org.eclipse.cdt.launch.ui.CDebuggerTab case?
How about contributing that 5%...



Back to the top