public DLanguageBinding()
        {
            Instance = this;

            // Init compiler configurations if not done yet
            if (!DCompilerService.IsInitialized)
            {
                DCompilerService.Load();
            }
        }
Exemple #2
0
        public static void LoadPresets(DCompilerService svc)
        {
            foreach (var kv in presetFileContents)
            {
                var cmp = LoadFromString(kv.Value);
                cmp.Vendor = kv.Key;

                svc.Compilers.Add(cmp);
            }

            svc.DefaultCompiler = "DMD2";
        }
Exemple #3
0
        public void Load(DCompilerService config)
        {
            configuration = config;

            //cmbCompiler.Active = (int)config.DefaultCompiler;
            Gtk.TreeIter iter;
            cmbCompiler.Model.GetIterFirst(out iter);
            if (cmbCompiler.Model.GetIterFirst(out iter))
            {
                do
                {
                    if (config.DefaultCompiler == cmbCompiler.Model.GetValue(iter, 0) as string)
                    {
                        cmbCompiler.SetActiveIter(iter);
                        break;
                    }
                } while (cmbCompiler.Model.IterNext(ref iter));
            }

            check_EnableUFCSCompletion.Active = config.CompletionOptions.ShowUFCSItems;
        }