mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 01:15:29 +02:00
Made CDOM a singleton.
This commit is contained in:
parent
04cef746c8
commit
c5cef415ab
1 changed files with 12 additions and 1 deletions
|
@ -22,6 +22,17 @@ import org.eclipse.cdt.internal.core.dom.SavedCodeReaderFactory;
|
||||||
*/
|
*/
|
||||||
public class CDOM {
|
public class CDOM {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private CDOM()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
private static CDOM instance = new CDOM();
|
||||||
|
public static CDOM getInstance()
|
||||||
|
{
|
||||||
|
return instance;
|
||||||
|
}
|
||||||
private IASTServiceProvider [] services = { new InternalASTServiceProvider() };
|
private IASTServiceProvider [] services = { new InternalASTServiceProvider() };
|
||||||
|
|
||||||
public IASTServiceProvider[] getASTServices() {
|
public IASTServiceProvider[] getASTServices() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue