def OnDocPointerRequest(self, args): """Get a buffer that has the same file open as the requested path. @param args: [sender, path] @return: EdEditorView reference or ed_msg.NullValue """ sender, path = args for buf in self.GetTextControls(): if buf.GetFileName() == path: return buf else: return ed_msg.NullValue()
def _CanReLaunch(self): """Method to use with RegisterCallback for getting status""" val = self.CanLaunch() if not val or not len(self._config['last']): val = ed_msg.NullValue() return val
def _CanLaunch(self): """Method to use with RegisterCallback for getting status""" val = self.CanLaunch() if not val: val = ed_msg.NullValue() return val