-
Notifications
You must be signed in to change notification settings - Fork 441
Closed
Labels
Milestone
Description
The current Help
implementation does not make it easy for applications to provide a custom Layout
implementation.
There is a public method Help.createDefaultLayout()
, but this is not used.
The method that is actually used internally: Help.createLayout(int)
is private and cannot be overridden by Help subclasses.
One way to fix this is to change the implementation of Help.createDefaultLayout()
to call createLayout
with the result of calcLongOptionColumnWidth()
instead of with the constant value Help.defaultOptionsColumnWidth
. All places that currently call createLayout(calcLongOptionColumnWidth())
can then be replaced with calls to createDefaultLayout()
.