|
Re: [neon] AbstractOutlineViewButton behaving differently from Mars [message #1751526 is a reply to message #1751350] |
Wed, 11 January 2017 07:40 |
|
I think you should override execInitAction() instead of initConfig(). In AbstractOutlineViewButton.execInitAction(), setVisible[Granted]() is called with the corresponding outline's values, so this method overrides your previously set values.
public abstract class AbstractOutlineViewButton extends AbstractViewButton implements IOutlineViewButton {
...
@Override
protected void execInitAction() {
setVisibleGranted(m_outline.isVisibleGranted());
setVisible(m_outline.isVisible());
setEnabled(m_outline.isEnabled());
...
It should be sufficient for your case to set the "visible granted" property. The "visible" property is intended for business logic, while the "visible granted" is intended for permissions. An object is only available if all flags are true. (But be aware, that an object with "visible granted = false" can never be visible again, as the object is not sent to the UI at all.)
Regards,
Beat
|
|
|
|
Powered by
FUDForum. Page generated in 0.02638 seconds