void () { setTabDraggingEnabled(true); addListener(new TabsListener() { @Override public void tabsMoved() { moveTabToNewIndex(getDragHelper().getDragSource()); } }); getDockManager().register(new TabsDockContainer(), myParentDisposable); }