diff options
Diffstat (limited to 'languages/java/tdevdriver.cpp')
-rw-r--r-- | languages/java/tdevdriver.cpp | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/languages/java/tdevdriver.cpp b/languages/java/tdevdriver.cpp new file mode 100644 index 00000000..d36a23f3 --- /dev/null +++ b/languages/java/tdevdriver.cpp @@ -0,0 +1,44 @@ + +#include "tdevdriver.h" +#include "JavaLexer.hpp" +#include <unistd.h> +#include <tqfileinfo.h> + +TDevDriver::TDevDriver( JavaSupportPart* javaSupport ) + : m_javaSupport( javaSupport ) +{ +} + +JavaSupportPart* TDevDriver::javaSupport() +{ + return m_javaSupport; +} + +void TDevDriver::setupProject() +{ + TQMap<TQString, bool> map; + + { + TQStringList fileList = m_javaSupport->project()->allFiles(); + TQStringList::ConstIterator it = fileList.begin(); + while( it != fileList.end() ){ + TQFileInfo info( *it ); + ++it; + + map.insert( info.dirPath(true), true ); + } + } + + { + TQMap<TQString, bool>::Iterator it = map.begin(); + while( it != map.end() ){ + addIncludePath( it.key() ); + ++it; + } + } +} + +void TDevDriver::setupLexer( JavaLexer* lexer ) +{ + Driver::setupLexer( lexer ); +} |