An e4view was created for which you need to implement the functionality of the editor in support of the Save and SaveAll commands. For tutorials on the net, I understand that it is enough to implement the following code for this:

@Inject public AbstractView(MDirtyable a_dirtyable) { Objects.requireNonNull(m_dirtyable); m_dirtyable= a_dirtyable; } @Persist public void save() { // сохранение данных .... m_dirtyable.setDirty(false); } // метод вызывается после определенных действий пользователя и изменении каких-либо данных public void markDirty() { m_dirtyable.setDirty(true); } 

After implementing this, the ViewPart began to behave as follows: - after certain user actions, an asterisk appeared on the tab view (that is, it became "dirty") - but the global Save and SaveAll buttons remain inaccessible and the CTRL + S and CTRL + keys SHIFT + S do not work - when the view is closed, a window appears with a suggestion to save the changes and only when I click OK in this window, the view method marked @Persist is triggered

What am I doing wrong?

    0