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