Creates a deprecation warning event handler
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");
});