526527528529530531532533534535536
if (ihc == null) { return; } HookCommandModel hcm = (HookCommandModel) ihc; if (listen) { hcm.addListener(listenerHookCommand); } else { hcm.removeListener(listenerHookCommand); } }
541542543544545546547548549550551
*/ private void enableListening(IHookCommand ihc, boolean listen) { if(ihc == null) {return;} HookCommandModel hcm = (HookCommandModel) ihc; if(listen) { hcm.addListener(listenerHookCommand); } else { hcm.removeListener(listenerHookCommand); } }