if (filter == Filter.EXCLUDE) {
// no selection provided; so lets do everything
filter = Filter.INCLUDE;
}
DefaultQuery query = new DefaultQuery(layer.getSchema().getTypeName(), filter);
Data data2 = new Data(resource, query);
data2.setChecked(layer.isVisible());
data.add(data2);
}
} else if (object instanceof IMap) {
List<ILayer> mapLayers = ((IMap) object).getMapLayers();
for( ILayer l : mapLayers ) {