You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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().
The text was updated successfully, but these errors were encountered:
The current
Help
implementation does not make it easy for applications to provide a customLayout
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 callcreateLayout
with the result ofcalcLongOptionColumnWidth()
instead of with the constant valueHelp.defaultOptionsColumnWidth
. All places that currently callcreateLayout(calcLongOptionColumnWidth())
can then be replaced with calls tocreateDefaultLayout()
.The text was updated successfully, but these errors were encountered: