Modules (179)

PanelManager

deprecated
This module provided for backwards compatibility. Use WorkspaceManager instead.

Description

Dependencies

Functions

Private

_deprecateEvent

Creates a deprecation warning event handler

the non-nullable string
event being deprecated
the non-nullable string
new event to use
    function _deprecateEvent(oldEventName, newEventName) {
        DeprecationWarning.deprecateEvent(exports,
                                          WorkspaceManager,
                                          oldEventName,
                                          newEventName,
                                          "PanelManager." + oldEventName,
                                          "MainViewManager." + newEventName);
    }
    
    // Define public API
    exports.createBottomPanel   = function (id, $panel, minSize) {
        DeprecationWarning.deprecationWarning("Use WorkspaceManager.createBottomPanel() instead of PanelManager.createBottomPanel().", true);
        return WorkspaceManager.createBottomPanel(id, $panel, minSize);
    };
    
    // Deprecated PanelManager events
    EventDispatcher.makeEventDispatcher(exports);
    _deprecateEvent("editorAreaResize", "workspaceUpdateLayout");
});