Ejemplo n.º 1
0
 def run(self):
     from org.python.pydev.editor.codecompletion.shell import AbstractShell #@UnresolvedImport
     error_msg = AbstractShell.restartAllShells()
     if error_msg:
         editor.showInformationDialog("Error killing the shells", error_msg);
     else:
         editor.showInformationDialog("Ok", "Ok, killed all the running shells.\n(They will be recreated on request)");
Ejemplo n.º 2
0
 def run(self):
     editor = self.editor
     from org.python.pydev.editor.codecompletion.shell import AbstractShell #@UnresolvedImport
     error_msg = AbstractShell.restartAllShells()
     if error_msg:
         editor.showInformationDialog("Error killing the shells", error_msg);
     else:
         editor.showInformationDialog("Ok", "Ok, killed all the running shells.\n(They will be recreated on request)");
Ejemplo n.º 3
0
 def run(self):
     error_msg = AbstractShell.restartAllShells()
     if error_msg:
         MessageDialog.openInformation(editor.getSite().getShell(),
                                       "Error killing the shells",
                                       error_msg)
     else:
         MessageDialog.openInformation(
             editor.getSite().getShell(), "Ok",
             "Ok, killed all the running shells.\n(They will be recreated on request)"
         )