def getCurrentVersion():
    builderWindow = getBuilderWindow()
    if builderWindow!=None:
        current_view = builderWindow.viewManager.currentWidget()
        if current_view!=None:
            return current_view.controller.current_version
    return -1
getCurrentVersion() -> int
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/gui/utils.py/getCurrentVersion