def on_bufferactivated(self, args): if (self.get_lexer_name() == self.lexer_name) and ( editor.getPropertyInt(self.__class__.__name__, 0) != -1): self.__is_lexer_doc = True else: self.__is_lexer_doc = False
def is_lexer_doc(self): ''' Check if the current document is of interest by reading the class name property. ''' return True if editor.getPropertyInt(self.__class__.__name__, 0) == 1 else False
def is_lexer_doc(self): ''' Check if the current document is of interest by reading the class name property. ''' return True if editor.getPropertyInt(self.__class__.__name__) == 1 else False
def test_scintillawrapper_int_string_void(self): editor.setProperty('pythonscript.unittest', '422') result = editor.getPropertyInt('pythonscript.unittest', 0) self.assertEqual(result, 422)
def on_bufferactivated(self,args): if (self.get_lexer_name() == self.lexer_name) and (editor.getPropertyInt(self.__class__.__name__) != -1): self.__is_lexer_doc = True else: self.__is_lexer_doc = False
def _set_file_version(self): log('called') file_version = editor.getPropertyInt('fileversion', 0) + 1 editor.setProperty('fileversion', file_version) return file_version