Пример #1
0
 @Override
 public void dispose() {
   // Unregister the listener
   if (null != resourceListChangedListener) {
     UiListenerHandler.getInstance()
         .removeResourceListChangedUIListener(resourceListChangedListener);
     resourceManager.resourceSelectionChanged(null);
   }
   if (null != resourcePropertiesChangedListener) {
     UiListenerHandler.getInstance()
         .removeResourcePropertiesChangedUIListener(resourcePropertiesChangedListener);
   }
   super.dispose();
 }
Пример #2
0
 public void addManagerListeners() {
   UiListenerHandler.getInstance().addResourceListChangedUIListener(resourceListChangedListener);
   UiListenerHandler.getInstance()
       .addResourcePropertiesChangedUIListener(resourcePropertiesChangedListener);
 }