@Override public void addNotify() { super.addNotify(); updateMenuActions(); // Add updater for menus myActionManager.addTimerListener(1000, new WeakTimerListener(myActionManager, myTimerListener)); UISettingsListener UISettingsListener = new UISettingsListener() { public void uiSettingsChanged(final UISettings source) { updateMnemonicsVisibility(); myPresentationFactory.reset(); } }; UISettings.getInstance().addUISettingsListener(UISettingsListener, myDisposable); Disposer.register(ApplicationManager.getApplication(), myDisposable); IdeEventQueue.getInstance().addDispatcher(this, myDisposable); }
@Override public void addNotify() { super.addNotify(); updateMenuActions(); // Add updater for menus myActionManager.addTimerListener(1000, new WeakTimerListener(myActionManager, myTimerListener)); UISettingsListener UISettingsListener = new UISettingsListener() { public void uiSettingsChanged(final UISettings source) { updateMnemonicsVisibility(); myPresentationFactory.reset(); } }; UISettings.getInstance().addUISettingsListener(UISettingsListener, myDisposable); Disposer.register(ApplicationManager.getApplication(), myDisposable); }
@Override public void addNotify() { super.addNotify(); updateMenuActions(); // Add updater for menus myActionManager.addTimerListener(1000, new WeakTimerListener(myActionManager, myTimerListener)); UISettingsListener UISettingsListener = new UISettingsListener() { @Override public void uiSettingsChanged(final UISettings source) { updateMnemonicsVisibility(); myPresentationFactory.reset(); } }; UISettings.getInstance().addUISettingsListener(UISettingsListener, myDisposable); Disposer.register(ApplicationManager.getApplication(), myDisposable); IdeEventQueue.getInstance().addDispatcher(this, myDisposable); }