def run(self):
     s = unicode(self.combo.currentText())
     if s.startswith("SEXTANTE algorithm: "):
         algName = s[len("SEXTANTE algorithm: "):]
         alg = Sextante.getAlgorithmFromFullName(algName)
         if alg is not None:
             self.close()
             self.runAlgorithm(alg)                
     elif s.startswith("Command: "):
         command = s[len("Command: "):]            
         try:
             self.runCommand(command)
             self.close()
         except Exception, e:
             self.label.setVisible(True)                
             self.label.setText("Error:" +  unicode(e) )                
 def run(self):
     s = unicode(self.combo.currentText())
     if s.startswith("SEXTANTE algorithm: "):
         algName = s[len("SEXTANTE algorithm: "):]
         alg = Sextante.getAlgorithmFromFullName(algName)
         if alg is not None:
             self.close()
             self.runAlgorithm(alg)
     elif s.startswith("Command: "):
         command = s[len("Command: "):]
         try:
             self.runCommand(command)
             self.close()
         except Exception, e:
             self.label.setVisible(True)
             self.label.setText("Error:" +  unicode(e) )