uk.ac.kcl.cch.jb.pliny.containmentView.model
Class IncludedTypeManager

java.lang.Object
  extended byuk.ac.kcl.cch.rdb2java.dynData.PropertyChangeObject
      extended byuk.ac.kcl.cch.jb.pliny.containmentView.model.IncludedTypeManager
All Implemented Interfaces:
EventListener, IPropertyChangeObject, PropertyChangeListener

public class IncludedTypeManager
extends PropertyChangeObject
implements PropertyChangeListener

an object from this class manages information about which links of which LOType should be included or excluded from the Containment View.

This object interacts with an Eclipse preference set so that user setting of what's in and what's out can be preserved between Pliny sessions.

Author:
John Bradley

Field Summary
static String CHANGE_TYPE_PROPERTY
           
 
Constructor Summary
IncludedTypeManager()
          creates an instance of this manager.
IncludedTypeManager(org.eclipse.core.runtime.Preferences prefs)
          creates an instance of this manager.
 
Method Summary
 void dispose()
           
 void excludeType(LOType theType)
          instructs this manager to mark that the given Type is to be marked as 'to be excluded' by this manager.
 void includeType(LOType theType)
          instructs this manager to mark that the given Type is to be marked as 'to be included' by this manager.
 boolean isIncluded(LOType theType)
          is the given Type marked as 'to be included' by this manager?
 void propertyChange(PropertyChangeEvent arg0)
          This class tracks the deletion of LOTypes from the Pliny system, so that any information it holds about the deleted item can be removed from its store.
 
Methods inherited from class uk.ac.kcl.cch.rdb2java.dynData.PropertyChangeObject
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHANGE_TYPE_PROPERTY

public static final String CHANGE_TYPE_PROPERTY
See Also:
Constant Field Values
Constructor Detail

IncludedTypeManager

public IncludedTypeManager()
creates an instance of this manager. A beginning list of LOTypes (by their ALID) that should be excluded is fetched from PlinyPlugin's preference set, and used to create an initial list of what's in and what's out. Subsequent changes will then be stored back to this preference set as well.


IncludedTypeManager

public IncludedTypeManager(org.eclipse.core.runtime.Preferences prefs)
creates an instance of this manager. A beginning list of LOTypes (by their ALID) that should be excluded is fetched from the given preference set, and used to create an initial list of what's in and what's out. Subsequent changes will then be stored back to this preference set as well.

Parameters:
prefs - Preferences the set of preferences in which information about what's in and what's out shold be stored
Method Detail

dispose

public void dispose()

isIncluded

public boolean isIncluded(LOType theType)
is the given Type marked as 'to be included' by this manager?

Parameters:
theType -
Returns:
boolean if true, include data from this type.

includeType

public void includeType(LOType theType)
instructs this manager to mark that the given Type is to be marked as 'to be included' by this manager.

Parameters:
theType - LOType type that should be included.

excludeType

public void excludeType(LOType theType)
instructs this manager to mark that the given Type is to be marked as 'to be excluded' by this manager.

Parameters:
theType - LOType type that should be excluded.

propertyChange

public void propertyChange(PropertyChangeEvent arg0)
This class tracks the deletion of LOTypes from the Pliny system, so that any information it holds about the deleted item can be removed from its store.

Specified by:
propertyChange in interface PropertyChangeListener