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)");
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)");
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)" )