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