/// <summary> /// Applies configuration settings to projects found. /// </summary> /// <param name="configuration"> /// Configuration to apply. /// </param> public void ApplyConfiguration(VcbConfiguration configuration) { Debug.Assert(m_allProjects != null); Debug.Assert(configuration != null && configuration.NumberingOptions != null); SetNumberingOptions(configuration.NumberingOptions); m_filteredProjects = null; }
public VcbConfiguration Clone() { VcbConfiguration newConfig = (VcbConfiguration)this.MemberwiseClone(); newConfig.NumberingOptions = NumberingOptions.Clone(); newConfig.DisplayOptions = DisplayOptions.Clone(); newConfig.FoldersConfigurations = FoldersConfigurations.Clone(); return(newConfig); }
/// <summary> /// Initializes an empty <c>VSSolutionBrowser</c> object. /// </summary> /* * private VSSolutionBrowser() * { * MessageFilter.Register(); * } */ /// <summary> /// Initializes ProjectBrowser object. /// </summary> /// <param name="devEnvApplicationObject"> /// Development environment from which application is started. /// </param> public VSSolutionBrowser(DTE devEnvApplicationObject, VcbConfiguration configuration, IServiceProvider package) : base(configuration) { MessageFilter.Register(); Debug.Assert(devEnvApplicationObject != null); m_devEnvApplicationObject = devEnvApplicationObject; PreProcess(); m_sourceSafeCheckOut = new VSSCheckout(m_devEnvApplicationObject, package); LoadProjectsInfo(); }
/// <summary> /// Creates <c>ConfigurationPersister</c> object. Tries to read /// the configuration file. If reading fails, default configuration /// is used. /// </summary> private ConfigurationPersister() { ConfigurationFolder = FileUtil.GetConfigurationFolder(); ConfigurationFilename = Path.Combine(ConfigurationFolder, Filename); // first create a default configuration m_configuration = new VcbConfiguration(); // custom class is used becase <c>XmlSerializer</c> is throwing <c>NullReferenceException</c>s //m_xmlSerializer = new XmlSerializer(typeof(VcbConfiguration)); m_xmlSerializer = new VcbConfigurationSerializer(); ReadConfiguration(); // gets path to SourceSafe executable (required for command-line util) GetSourceSafePath(); // get root directory of the IIS GetIisRoot(); Debug.Assert(ConfigurationFolder != null && ConfigurationFolder.Length > 0); Debug.Assert(ConfigurationFilename != null && ConfigurationFilename.Length > 0); Debug.Assert(m_xmlSerializer != null); Debug.Assert(m_configuration != null); }
/// <summary> /// Creates <c>SolutionBrowser</c> object with configuration provided. /// </summary> /// <param name="configuration"> /// Configuration to be used. /// </param> protected SolutionBrowser(VcbConfiguration configuration) : this() { Debug.Assert(configuration != null && configuration.NumberingOptions != null); SetNumberingOptions(configuration.NumberingOptions); }