Remove envelope filter when the layer have selection in order to retrieve the correct rowid
Link selection between MapContext with TableEditor
Fix NPE and layer removal bug
Merge pull request #686 from nicolas-f/fix/selection

Fix selection renderer and link with TableEditor

When a selection is done in the current rendered layer. The query does not filter with view envelope in order to keep RowId information of the query. This workaround works but it prevent filtering rows on database side.
MapContext layer selection and TableEditor selection is now linked.
Merge remote-tracking branch 'irstv/master' into feature/data_manager_trigger

Conflicts:
	orbisgis-view/src/main/java/org/orbisgis/view/table/TableEditor.java