Sets an option if its value differs from current value and displays the command in the info view. @param option type @param value type @param opt option to be set @param val value
(final T opt, final V val)
| 540 | * @param val value |
| 541 | */ |
| 542 | public <T extends Option<V>, V> void set(final T opt, final V val) { |
| 543 | if(!context.options.get(opt).toString().equals(val.toString())) { |
| 544 | final Set cmd = new Set(opt, val); |
| 545 | cmd.run(context); |
| 546 | info.setInfo(cmd.info(), cmd, true, false); |
| 547 | } |
| 548 | } |
| 549 | |
| 550 | /** |
| 551 | * Sets the border of the content area. |