001    package org.meta_environment.eclipse.sdf;
002    
003    import org.eclipse.imp.preferences.PreferencesService;
004    import org.eclipse.imp.runtime.PluginBase;
005    import org.eclipse.ui.IStartup;
006    
007    public class Activator extends PluginBase implements IStartup {
008            public static final String kPluginID = "sdf_meta_eclipse";
009            public static final String kLanguageName = "SDF";
010            
011            public Activator(){
012                    super();
013            }
014            
015            private static class InstanceKeeper{
016                    public static Activator sPlugin = new Activator();
017            }
018    
019            public static synchronized Activator getInstance(){
020                    return InstanceKeeper.sPlugin;
021            }
022    
023            public String getID() {
024                    return kPluginID;
025            }
026    
027            protected static PreferencesService preferencesService = null;
028    
029            public void earlyStartup(){
030                    getInstance();
031            }
032    }