Search in sources :

Example 1 with ListChangedHandler

use of org.rstudio.studio.client.workbench.events.ListChangedHandler in project rstudio by rstudio.

the class AddinsMRUList method onSessionInit.

@Override
public void onSessionInit(SessionInitEvent sie) {
    RAddins addins = session_.getSessionInfo().getAddins();
    update(addins);
    mruList_ = pListManager_.get().getAddinsMruList();
    mruList_.addListChangedHandler(new ListChangedHandler() {

        @Override
        public void onListChanged(ListChangedEvent event) {
            mruEntries_ = event.getList();
            update(addinRegistry_);
        }
    });
}
Also used : ListChangedEvent(org.rstudio.studio.client.workbench.events.ListChangedEvent) RAddins(org.rstudio.studio.client.workbench.addins.Addins.RAddins) ListChangedHandler(org.rstudio.studio.client.workbench.events.ListChangedHandler)

Aggregations

RAddins (org.rstudio.studio.client.workbench.addins.Addins.RAddins)1 ListChangedEvent (org.rstudio.studio.client.workbench.events.ListChangedEvent)1 ListChangedHandler (org.rstudio.studio.client.workbench.events.ListChangedHandler)1