See my comments below,
Jesse Eichar a écrit :
Hi,
We need to rename the packages from internal to something less frightening. When it comes to net.refractions.udig.project the internal packages can be used but NOT the internal.impl packages. The idea was to make people reluctant to use the internal classes because most of the things should be done with Commands not direct. Commands allow roll-back. Problem was that for setting up maps and so on it is annoying to do it through commands.
Yes, I recognized here EMF behavior :-)
As for filtering features I would recommend trying to make use of the view work.
In my case, I need to perform this programmatically.
It has a couple bugs but in general works. The way to do it is to put a Filter on the styleblackboard with the key: net.refractions.udig.project.ProjectBlackboardConstants.ProjectBlackboardConstants.LAYER__DATA_QUERY
You will probably think I am fastidious but I would prefer a solution where filtering is done at a upper level : I mean instead of retrieving all the datas from the database and then filtering them in the map editor, I would like to filter things when requesting datas from the database. As I said before, the database may contains lots of records and thus it would be more judicious to limit records that are sent back by the server. I am pretty sure solution is near (from what I read from
http://docs.codehaus.org/display/GEOTDOC/02+Filter) but I would really need a little more help. :-)