pscn.addListener(dataSourceListener);
}
if (dataSource instanceof ValueChangeNotifier) {
getLogger().finest(
"Attaching ValueChangeListener to graph datasource");
ValueChangeNotifier vcn = (ValueChangeNotifier) dataSource;
// Ensure we not already are listening to the events
vcn.removeListener(dataSourceListener);
// Add listener
vcn.addListener(dataSourceListener);
}
}
if (markers instanceof ItemSetChangeNotifier) {
getLogger().finest(
"Attaching ItemSetChangeListener to marker datasource");
ItemSetChangeNotifier isn = (ItemSetChangeNotifier) markers;
// Ensure we not already are listening to the events
isn.removeListener(markerEventListener);
// Add listener
isn.addListener(markerEventListener);
}
if (markers instanceof PropertySetChangeNotifier) {
getLogger().finest(
"Attaching PropertySetChangeListener to marker datasource");
PropertySetChangeNotifier pscn = (PropertySetChangeNotifier) markers;
// Ensure we not already are listening to the events
pscn.removeListener(markerEventListener);
// Add listener
pscn.addListener(markerEventListener);
}
if (markers instanceof ValueChangeNotifier) {
getLogger().finest(
"Attaching ValueChangeListener to marker datasource");
ValueChangeNotifier vcn = (ValueChangeNotifier) markers;
// Ensure we not already are listening to the events
vcn.removeListener(markerEventListener);
// Add listener
vcn.addListener(markerEventListener);
}
if (events instanceof ItemSetChangeNotifier) {
getLogger().finest(
"Attaching ValueChangeListener to marker datasource");
ItemSetChangeNotifier isn = (ItemSetChangeNotifier) events;
// Ensure we not already are listening to the events
isn.removeListener(markerEventListener);
// Add listener
isn.addListener(markerEventListener);
}
if (events instanceof PropertySetChangeNotifier) {
getLogger().finest(
"Attaching ValueChangeListener to marker datasource");
PropertySetChangeNotifier pscn = (PropertySetChangeNotifier) events;
// Ensure we not already are listening to the events
pscn.removeListener(markerEventListener);
// Add listener
pscn.addListener(markerEventListener);
}
if (events instanceof ValueChangeNotifier) {
getLogger().finest(
"Attaching ValueChangeListener to marker datasource");
ValueChangeNotifier vcn = (ValueChangeNotifier) events;
// Ensure we not already are listening to the events
vcn.removeListener(markerEventListener);
// Add listener
vcn.addListener(markerEventListener);
}
}