Yes that is what "perspectives" are designed to do.

If you follow the "Custom App" tutorial in the developers guide you will see how to make a perspective. The general concept with a perspective is to arrange the views (ie show/open/hide) in order to facilitate a specific activity.

As a programmer you can switch between perspectives automatically as needed. You may of noticed Eclipse switching into the Debug Perspective when you go to into "Debug Mode".

Following your example you would want to:
- make a "paddocks perspective" and switch to that arrangement when they are working with the paddocks layer - make a "dams perspective" and switch to that arrangement when they are working with the paddocks layer

I also note you could simply listen to the workbench selection (see the "Workbench Selection" tutorial in the developers guide) you can notice when the correct layer is selected; and simply show/hide the views yourself.

The difference between an "View" and "Editor" is central here; I am working with the assumption that only the "Maps" are in an editor; and the rest of what you are talking about are views?

Jody

[EMAIL PROTECTED] wrote:

Is there a way to programatically hide or close certain editors and show/open in a IFolderLayout folder of editors based on the layer currently selected in the layers view?

For example I am developing a mapping tool for farmers. The screen is divided into two views on the left showing the layers view (top left) and all the editors added into the IFolderLayout (bottom left) and the Map itself shows on the right.

On a map with a layer for paddocks, buildings, dams, pipelines etc... I want to be able to only show the relevant editors for each layer when that layer is selected. If they select the paddocks layer it shows the paddock and paddock usage history editors. Then if they select dams it shows the dam editor. Rather than having all the editors showing at the same time, creating a mess of tabs which can't be read because they're so squashed up.
------------------------------------------------------------------------

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to