~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to languages/java/javasupportfactory.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2010-05-05 07:21:55 UTC
  • mfrom: (1.2.3 upstream) (5.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100505072155-h78lx19pu04sbhtn
Tags: 4:4.0.0-2
* Upload to unstable (Closes: #579947, #481832).
* Acknowledge obsolete NMU fixes (Closes: #562410, #546961).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
 *   Copyright (C) 2000-2001 by Bernd Gehrmann                             *
3
 
 *   bernd@kdevelop.org                                                    *
4
 
 *                                                                         *
5
 
 *   This program is free software; you can redistribute it and/or modify  *
6
 
 *   it under the terms of the GNU General Public License as published by  *
7
 
 *   the Free Software Foundation; either version 2 of the License, or     *
8
 
 *   (at your option) any later version.                                   *
9
 
 *                                                                         *
10
 
 ***************************************************************************/
11
 
 
12
 
#include <kinstance.h>
13
 
#include <kstandarddirs.h>
14
 
#include <kdevplugininfo.h>
15
 
#include "javasupportfactory.h"
16
 
 
17
 
static const KDevPluginInfo data("kdevjavasupport");
18
 
K_EXPORT_COMPONENT_FACTORY( libkdevjavasupport, JavaSupportFactory )
19
 
 
20
 
JavaSupportFactory::JavaSupportFactory()
21
 
    : KDevGenericFactory<JavaSupportPart>( data )
22
 
{
23
 
}
24
 
 
25
 
KInstance *JavaSupportFactory::createInstance()
26
 
{
27
 
    KInstance *instance = KDevGenericFactory<JavaSupportPart>::createInstance();
28
 
    KStandardDirs *dirs = instance->dirs();
29
 
    dirs->addResourceType( "newclasstemplates", KStandardDirs::kde_default("data") + "kdevjavasupport/newclass/" );
30
 
    dirs->addResourceType( "pcs", KStandardDirs::kde_default( "data" ) + "kdevjavasupport/pcs/" );
31
 
 
32
 
    return instance;
33
 
}
34
 
 
35
 
const KDevPluginInfo *JavaSupportFactory::info()
36
 
{
37
 
    return &data;
38
 
}
39