mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +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,7 +22,18 @@ import org.eclipse.cdt.internal.core.dom.SavedCodeReaderFactory;
|
|||
*/
|
||||
public class CDOM {
|
||||
|
||||
private IASTServiceProvider [] services = { new InternalASTServiceProvider() };
|
||||
|
||||
|
||||
private CDOM()
|
||||
{
|
||||
}
|
||||
|
||||
private static CDOM instance = new CDOM();
|
||||
public static CDOM getInstance()
|
||||
{
|
||||
return instance;
|
||||
}
|
||||
private IASTServiceProvider [] services = { new InternalASTServiceProvider() };
|
||||
|
||||
public IASTServiceProvider[] getASTServices() {
|
||||
return services;
|
||||
|
|
Loading…
Add table
Reference in a new issue