KDevelop API Documentation

kdevdriver.cpp

Go to the documentation of this file.
00001 
00002 #include "kdevdriver.h"
00003 #include "JavaLexer.hpp"
00004 #include <unistd.h>
00005 
00006 KDevDriver::KDevDriver( JavaSupportPart* javaSupport )
00007     : m_javaSupport( javaSupport )
00008 {
00009 }
00010 
00011 JavaSupportPart* KDevDriver::javaSupport()
00012 {
00013     return m_javaSupport;
00014 }
00015 
00016 void KDevDriver::setupProject()
00017 {
00018     QMap<QString, bool> map;
00019 
00020     {
00021     QStringList fileList = m_javaSupport->project()->allFiles();
00022     QStringList::ConstIterator it = fileList.begin();
00023     while( it != fileList.end() ){
00024         QFileInfo info( *it );
00025         ++it;
00026 
00027         map.insert( info.dirPath(true), true );
00028     }
00029     }
00030 
00031     {
00032     QMap<QString, bool>::Iterator it = map.begin();
00033     while( it != map.end() ){
00034         addIncludePath( it.key() );
00035         ++it;
00036     }
00037     }
00038 }
00039 
00040 void KDevDriver::setupLexer( JavaLexer* lexer )
00041 {
00042     Driver::setupLexer( lexer );
00043 }
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:22:30 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003