Example #1
0
 public void unregister() {
   if (listener == null) return;
   CIDECorePlugin.getDefault().removeColorChangeListener(listener);
   ResourcesPlugin.getWorkspace().removeResourceChangeListener(listener);
 }
Example #2
0
 public void register() {
   CIDECorePlugin.getDefault().addColorChangeListener(listener);
   ResourcesPlugin.getWorkspace().addResourceChangeListener(listener);
 }