* Adds a post selection listener that listens to the workbench's selection for maps, layers or MapEditor.
*/
private void addWorkbenchSelectionListener() {
// page.addPostSelectionListener(workbenchSelectionListener);
ISelectionService selectionService = getSite().getWorkbenchWindow().getSelectionService();
selectionService.addPostSelectionListener(workbenchSelectionListener);
}
/**
* Adds a listener to {@link #page} that deactivates the view when part is hidden and reactivates it when it is made
* visible. This is to prevent a bunch of featurestore accesses when view is not visible.