java.lang.Object
com.inductiveautomation.factorypmi.application.script.builtin.NavUtilitiesDispatcher
All Implemented Interfaces:
INavUtilities

public class NavUtilitiesDispatcher extends Object implements INavUtilities

This is the class mounted at system.nav, but the real implementation is in NavUtilities.

This class exists in order to automatically detect what desktop the call is coming in from and to dispatch the invocation to the correct NavUtilities instance, based upon the thread local in VisionDesktop.CURRENT_DESKTOP.

This class also contains one special method which is not part of INavUtilities - the desktop(String) method. This method returns the NavUtilities for a named desktop instance. In this way, scripts may alter the nav of desktops other than their own, like so:

     system.nav.desktop("OtherDesktop").openWindow("...")