~sinzui/gedit-class-browser/buildable

« back to all changes in this revision

Viewing changes to classbrowser/parser_ctags.py

  • Committer: fredericback
  • Date: 2008-03-06 21:08:14 UTC
  • Revision ID: svn-v4:c41c4367-7422-0410-acad-89ad0d30c555:trunk:45
* Dirty workaroud to give a message when ctags was not found

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
import gtk
19
19
import tempfile
20
20
import os
 
21
from subprocess import *
21
22
import gnomevfs
22
23
 
23
24
from parserinterface import *
52
53
    
53
54
        self.model = gtk.TreeStore(str,str,int,str) # see __parse_to_model
54
55
        self.document = doc
 
56
        
 
57
        try:
 
58
            call("ctags --version")
 
59
        except OSError:
 
60
            self.model.append( None, ["Please install ctags!","",0,""] )
 
61
            return self.model
 
62
        
55
63
        self._parse_doc_to_model()
56
64
        return self.model
57
65