/// /// Copyright © 2003-2008 JetBrains s.r.o. /// You may distribute under the terms of the GNU General Public License, as published by the Free Software Foundation, version 2 (see License.txt in the repository root folder). /// using JetBrains.Omea.OpenApiEx; namespace JetBrains.Omea.CoreServicesEx.Scheduller { /// /// Data entries for the Scheduller. /// internal class SchedullerData : ISchedullerData { #region Data /// /// Stores the lazy-init singleton instance. /// protected static ISchedullerData _instance = null; private string _sSchedullerTaskResourceTypeName = "Scheduller.Task"; private int _nSchedullerTaskResourceType = 0; private string _sSchedullerGroupResourceTypeName = "Scheduller.Group"; private int _nSchedullerGroupResourceType = 0; #endregion #region Init /// /// Non-public singleton ctor. /// protected SchedullerData() { } #endregion #region Attributes public static ISchedullerData Instance { get { return _instance ?? (_instance = new SchedullerData()); } } #endregion #region ISchedullerData Members /// /// Gets the resource type … for the … resource. /// public string SchedullerTaskResourceTypeName { get { return _sSchedullerTaskResourceTypeName; } } /// /// Gets the resource type … for the … resource. /// public int SchedullerTaskResourceType { get { return _nSchedullerTaskResourceType; } } /// /// Gets the resource type … for the … resource. /// public string SchedullerGroupResourceTypeName { get { return _sSchedullerGroupResourceTypeName; } } /// /// Gets the resource type … for the … resource. /// public int SchedullerGroupResourceType { get { return _nSchedullerGroupResourceType; } } #endregion } }