Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 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
Exemplo n.º 3
0
 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
Exemplo n.º 4
0
 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
Exemplo n.º 6
0
 def _set_file_version(self):
     log('called')
     file_version = editor.getPropertyInt('fileversion', 0) + 1
     editor.setProperty('fileversion', file_version)
     return file_version