Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Preferences

I use for that  ICDescriptor class instance

ICDescriptor descriptor = CCorePlugin.getDefault().getCProjectDescription(project, false);
       Element element = descriptor.getProjectData(SECTION_ID);

And then move through DOM elements tree:


       for(Node child = element.getFirstChild();
           null != child;
           child = child.getNextSibling()) {
           if(!(child instanceof Element))
               continue;
           if(MyName.equals(child.getNodeName())) {
               doSomething();
} }



Chris Moller wrote:

A question for the world at large:

In CDT, I've written a plugin that, as part of what it does, sets up a PropertyPage that ultimately stores info in the per-project .cdtproject file. Now, how do I retreive that info from elsewhere in the plugin?

Any hints would be appreciated.

Chris Moller
Senior Hacker
Red Hat, Inc.



Back to the top