languages/java/javasupportfactory.cpp
Go to the documentation of this file.00001 /*************************************************************************** 00002 * Copyright (C) 2000-2001 by Bernd Gehrmann * 00003 * bernd@kdevelop.org * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 ***************************************************************************/ 00011 00012 #include <kinstance.h> 00013 #include <kstandarddirs.h> 00014 #include "javasupportfactory.h" 00015 00016 static const KAboutData data("kdevjavasupport", I18N_NOOP("Language"), "1.0"); 00017 K_EXPORT_COMPONENT_FACTORY( libkdevjavasupport, JavaSupportFactory ) 00018 00019 JavaSupportFactory::JavaSupportFactory() 00020 : KDevGenericFactory<JavaSupportPart>( &data ) 00021 { 00022 } 00023 00024 KInstance *JavaSupportFactory::createInstance() 00025 { 00026 KInstance *instance = KDevGenericFactory<JavaSupportPart>::createInstance(); 00027 KStandardDirs *dirs = instance->dirs(); 00028 dirs->addResourceType( "newclasstemplates", KStandardDirs::kde_default("data") + "kdevjavasupport/newclass/" ); 00029 dirs->addResourceType( "pcs", KStandardDirs::kde_default( "data" ) + "kdevjavasupport/pcs/" ); 00030 00031 return instance; 00032 } 00033