コード例 #1
0
 def performUndoOperation(self):
     """ Undo the remove character action """
     operation = InsertTextOperation(self.cursor, self.textStore, self.removedCharacter)
     operation.perform()
コード例 #2
0
 def insertSoftTab(self):
     """ Insert a space based tab """
     spacesToAdd = self.settings.tabSize-self.cursor.col%self.settings.tabSize
     insertTextOperation = InsertTextOperation(self.cursor, self.textStore, " "*spacesToAdd)
     insertTextOperation.perform()
コード例 #3
0
 def performDoOperation(self):
     """ Perform the action """
     operation = InsertTextOperation(self.cursor, self.textStore, self.textToInsert)
     operation.perform()
コード例 #4
0
 def insertHardTab(self):
     """ Insert a Hard Tab """
     insertTextOperation = InsertTextOperation(self.cursor, self.textStore, '\t')
     insertTextOperation.perform()