def updateView(self):
        from vistrails.gui.vistrails_window import _app
        if self.vtversion > 0:
            if self.mshpController is not None:
                try:
                    self.mshpController.versionChanged.disconnect(self.mshpVersionChanged)
                    self.mshpController.stateChanged.disconnect(self.mshpStateChanged)
                    if self.mshpController.vtController is not None:
                        self.disconnect(self.mshpController.vtController,
                                        QtCore.SIGNAL('vistrailChanged()'),
                                        self.mshpControllerVistrailChanged)
                except Exception, e:
                    debug.unexpected_exception(e)
                    debug.print_exc()
            self.controller.flush_delayed_actions()
            self.vtversion = self.controller.current_version
            self.mshpController = self.manager.createMashupController(self.controller,
                                                                 self.vtversion)
            #self.pipelineTab.set_controller(self.mshpController.vtController)
            #self.pipelineTab.set_to_current()
            self.mshpController.vtController.change_selected_version(self.vtversion)
            self.connect(self.mshpController.vtController,
                         QtCore.SIGNAL('vistrailChanged()'),
                         self.mshpControllerVistrailChanged)
            self.mshpController.versionChanged.connect(self.mshpVersionChanged)
            self.mshpController.stateChanged.connect(self.mshpStateChanged)
            self.aliasPanel.updateController(self.mshpController)
            self.clearPreviewTabs()
            _app.notify('mshpcontroller_changed', self.mshpController)
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/gui/mashups/mashup_view.py/QMashupView.updateView/original