camunda-modeler-plugin/main/bpmndt/PluginTabState.js
/**
   * Disables the plugin of the active tab, if there is one.
   * This function is also called when the active tab is changed to a DMN or CMMN diagram.
   */
Disables the plugin of the active tab, if there is one.
This function is also called when the active tab is changed to a DMN or CMMN diagram.
Disables the plugin of the active tab if there is one . This function is also called when the active tab is changed to a DMN or CMMN diagram .
disablePlugin() {
    const { activeTabId, tabs } = this;
    if (tabs[activeTabId] !== undefined) {
      const tab = tabs[activeTabId];
      tab.shown = tab.plugin.shown;
      if (tab.plugin.shown) {
        tab.plugin.hide();
      }
      this.activeTabId = null;
    }
  }
disablePlugin ( ) { const { activeTabId , tabs } = this ; if ( tabs [ activeTabId ] !== undefined ) { const tab = tabs [ activeTabId ] ; tab . shown = tab . plugin . shown ; if ( tab . plugin . shown ) { tab . plugin . hide ( ) ; } this . activeTabId = null ; } }
Disables the plugin of the active tab, if there is one.
Disables the plugin of the active tab if there is one .
// remember plugin state