Ejemplo n.º 1
0
 public override SolutionItemConfiguration CreateConfiguration(string name)
 {
     RubyProjectConfiguration conf = new RubyProjectConfiguration ();
     conf.Name = name;
     if (string.IsNullOrEmpty (conf.MainFile) && 0 < Files.Count) {
         foreach (ProjectFile file in Files) {
             if (RubyLanguageBinding.IsRubyFile (file.Name)) {
                 conf.MainFile = file.FilePath.FullPath;
             }
         }
     }
     return conf;
 }
Ejemplo n.º 2
0
        public bool Load(RubyProject project, RubyProjectConfiguration config)
        {
            int found = 0,
                count = 0;
            if (null == config || null == project){ return false; }
            this.config = config;

            foreach (ProjectFile pf in project.Files) {
                projectFilesCB.AppendText (pf.Name);
                if (pf.Name.Equals (config.MainFile, StringComparison.OrdinalIgnoreCase)) {
                    found = count;
                }
                ++count;
            }
            projectFilesCB.Active = found;
            foreach (object path in config.LoadPaths) {
                if (!string.IsNullOrEmpty ((string)path)) {
                    loadpathStore.AppendValues (path);
                }
            }

            return true;
        }
Ejemplo n.º 3
0
 public GeneralOptionsPanel(RubyProject project, RubyProjectConfiguration config)
     : this()
 {
     Load (project, config);
 }