private static SettingsProvider Create() { var provider = new BugReportSettings(Path, SettingsScope.Project) { // 検索対象のキーワード登録(SerializedObjectから自動で取得) keywords = GetSearchKeywordsFromSerializedObject(BugReportData.GetSerializedObject()) }; return(provider); }
private void OnEnable() { var defaultValues = BugReportData.Load(); // 種別(固定) ticketType = ProjectData.TicketTypes.FirstOrDefault(x => x.Name == defaultValues.TicketType); // 優先度 priorityDropDown = ProjectData.Priorities.Select(x => x.Name).ToList(); priorityIndex = priorityDropDown.FindIndex(x => x.Equals(defaultValues.Priority)); // 発生バージョン versionDropDown = ProjectData.Milestones.Select(x => x.Name).ToList(); versionIndex = versionDropDown.FindIndex(x => x.Equals(defaultValues.CurrentVersion)); // カテゴリ categoryPullDown = ProjectData.Categories.Select(x => x.Name).ToList(); categoryIndex = categoryPullDown.FindIndex(x => x.Equals(defaultValues.Category)); // 担当者 assigneePullDown = ProjectData.Users.Select(x => x.Name).ToList(); assigneeIndex = assigneePullDown.FindIndex(x => x.Equals(defaultValues.Assignee)); }
public override void OnActivate(string searchContext, VisualElement rootElement) { // 設定ファイル取得 so = BugReportData.GetSerializedObject(); }