From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mo DeJong To: sourcenav@sourceware.cygnus.com Subject: Re: Selecting files in Project Manager Date: Fri, 12 Jan 2001 12:31:00 -0000 Message-id: References: <3A5F60A6.B68EB4F8@nrc.ca> X-SW-Source: 2001-q1/msg00009.html On Fri, 12 Jan 2001, Marta Stojanovic wrote: > Hi all ! > > This must be a stupid question, but I'll go with it anyway : > > I would like to select only .h files from a project full of .cpp, .c and > other files that I'm not interested right now. When creating a project I > have either an option to add files or to add directories. If I add .h > files one by one it would be very time-consuming and error-prone. If I > add a project directory with all subdirectories, I end up with all the > files. I am able to choose only .h files by typing "*.h" in the > "pattern" text-field, but when I click OK, it parses all the files, > nevertheless. > > Is there a simple way to choose just one file extension, so that I can > be certain that database files contain only the information from .h > files and not the whole project ? > > Thanks in advance. > > Kind regards, > Marta. You have two options. You could create the db with only .h files in it or you could just load all the files and use a "view" that only holds the .h file. The first option can be done like so: % cd $THE_TOP_DIR % find `pwd` -name "*.h" > dot_h.list % snavigator --create --import dot_h.list The second option can be done from the project editor. You type a view name like "dot_h" into the "View" box and hit enter. That will create a new view that you can delete the other files from. Mo DeJong Red Hat Inc