[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[cdt-dev] The role of org.eclipse.cdt.debug.mi.core.command.CommandFactory
|
Hello MI debugging
folks,
while implementing a
new CLICommand / MIInfo pair (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=119370 for
details) I came across the fact that all the existing commands are created from
methods of the above mentioned CommandFactory class. This is a scheme I found
difficult to extend (without modifying the classes' code ...).
On the other hand I
found that the methods themselves were not doing anything more than calling new
for the individual Command (o.k., and holding the MI
version).
So I just created my
CLICommand using new directly, without using the factory. But I feel a little
uneasy about leaving the factory aside. Did I overlook anything? Will the
factory become more important in the future? In this case it should be
extensible so that additional commands can be contributed from other
plug-ins.
How is
that?
Thanks,
Norbert