org.mockcentral.editor.preferences
Class PreferenceChangeListener

java.lang.Object
  extended by org.mockcentral.editor.preferences.PreferenceChangeListener
All Implemented Interfaces:
java.util.EventListener, org.eclipse.jface.util.IPropertyChangeListener

public class PreferenceChangeListener
extends java.lang.Object
implements org.eclipse.jface.util.IPropertyChangeListener

An IPropertyChangeListener that listens for changes in the preferences for the application. Specifically, this class updates the outline view and current node view (if necessary) when the user changes a preference for the severity level to display for the categories of NodeProblem.

Author:
David Hutchinson

Constructor Summary
PreferenceChangeListener(IMockCentralPluginEditor editor)
          Creates a new instance.
 
Method Summary
 void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
           
static void setDoNotify(boolean doNotify)
          Sets the value for whether notification should occur.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreferenceChangeListener

public PreferenceChangeListener(IMockCentralPluginEditor editor)
Creates a new instance.

Parameters:
editor - the current IMockCentralPluginEditor.
Method Detail

setDoNotify

public static void setDoNotify(boolean doNotify)
Sets the value for whether notification should occur.

Parameters:
doNotify - the value for whether notification should occur.

propertyChange

public void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
Specified by:
propertyChange in interface org.eclipse.jface.util.IPropertyChangeListener