示例#1
0
    def eventFileOpened(self, bufId, name, args):
        if bufId != 0:
            # file is already associated
            return

        if bufId == 0 and self.ignoreNextOpenFile > 0:
            dbg("Ignoring event because of self.ignoreNextOpenFile = %d", self.ignoreNextOpenFile)
            self.ignoreNextOpenFile -= 1
            return

        # need to associate the file
        path, opened, modified = parseNetbeanArgs(args, "STR BOOL BOOL")
        dbg('path="%s"', path)
        bufId = self.bufInfo.createBufId()
        self.assignBufId(bufId, path)
        self.bufInfo.addBuffer(bufId, path)
示例#2
0
    def eventFileOpened(self, bufId, name, args):
        if bufId != 0:
            # file is already associated
            return

        if bufId == 0 and self.ignoreNextOpenFile > 0:
            dbg('Ignoring event because of self.ignoreNextOpenFile = %d',
                self.ignoreNextOpenFile)
            self.ignoreNextOpenFile -= 1
            return

        # need to associate the file
        path, opened, modified = parseNetbeanArgs(args, 'STR BOOL BOOL')
        dbg('path="%s"', path)
        bufId = self.bufInfo.createBufId()
        self.assignBufId(bufId, path)
        self.bufInfo.addBuffer(bufId, path)
示例#3
0
 def eventKeyAtPos(self, bufId, name, args):
     '''Triggered when a netbeans hotkey is pressed along with <Pause>'''
     dbg('%d %s \'%s\'' % (bufId, name, args))
     key, offset, (line, col) = parseNetbeanArgs(args, 'STR NUM POS')
     self.bufInfo.notifyEvent('Hotkey', (bufId, key, offset, (line, col)))
示例#4
0
 def eventKeyAtPos(self, bufId, name, args):
     """Triggered when a netbeans hotkey is pressed along with <Pause>"""
     dbg("%d %s '%s'" % (bufId, name, args))
     key, offset, (line, col) = parseNetbeanArgs(args, "STR NUM POS")
     self.bufInfo.notifyEvent("Hotkey", (bufId, key, offset, (line, col)))
示例#5
0
 def eventKeyAtPos( self, bufId, name, args ):
     '''Triggered when a netbeans hotkey is pressed along with <Pause>'''
     dbg( '%d %s \'%s\'' % (bufId, name, args ) )
     key, offset, (line,col) = parseNetbeanArgs( args, 'STR NUM POS' )
     self.bufInfo.notifyEvent( 'Hotkey', (bufId, key, offset, (line,col) ) )
 def eventKeyCommand(self, bufId, name, args ):
     keyName = parseNetbeanArgs( args, 'STR' )
     alert(keyName)