• JMap.Project.isChangeDisabled

    Returns true if the project change has been disabled by startup option "disableProjectChange" (see JCoreOptions).

    Notice that as long the first project has not been loaded, this method returns false even if the parameter is true.

    It becomes true, if option "disableProjectChange" is set to true, and a project has been activated.

    Returns boolean

    Example

    // We assert that :
    // - the option "disableProjectChange" is true
    // - no project is yet activated, no map is displayed.

    // returns false
    JMap.Project.isChangeDisabled()

    // first time a project is activated
    JMap.Project.activateByName("My project")

    // returns true
    JMap.Project.isChangeDisabled()