[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] Help needed to Traverse a file from the cdt project
|
This is related to the C/C++ project explorer view, you will have to traverse the view tree hierarchy which will be a set of IResource objects. From these objects you will be able to get type of resource like file, folder which in turn can be compared with the file name your looking for
On Wed, Mar 12, 2008 at 10:11 PM, hari babu <
haribabu2006@xxxxxxxxx> wrote:
I need to show the focus on a text file inside a C/C++ project. I have created a project structure something like this, so i wanted to set focus on def222.txt PROGRAMATICALLY(i know this file name and i am sure this file is exist).
to do this i need to traverse and focus on that text file(def222.txt). Can any body give a code snippet to traverse a file inside C/C++ project.
Example1
+ includes
- src
+ form.h
+ form.c
Makefile.am
abc111.txt
def222.txt
ght333.txt
+ imaget
autogen.sh
Makefile.sh
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev