Esempio n. 1
0
 public void Init()
 {
     this.fileSystemRepositoryManager                    = new FileSystemRepositoryManager();
     this.fileSystemRepositoryManagerSettings            = new FileSystemRepositoryManagerSettings();
     this.fileSystemRepositoryManagerSettings.folderPath = Path.Combine(GlobalTestConstants.TemporaryTestDataPath, "Repositories");
     this.fileSystemRepositoryManager.Settings           = this.fileSystemRepositoryManagerSettings;
     Directory.CreateDirectory(this.fileSystemRepositoryManagerSettings.folderPath);
 }
        protected override void DisplayDerivedFields()
        {
            FileSystemRepositoryManagerSettings fileSystemRepositoryManagerSettings = (FileSystemRepositoryManagerSettings)this.objectEdited;

            using (new EditorGUILayout.HorizontalScope())
            {
                EditorGUILayout.LabelField("Repositories folder path", EditorStyles.boldLabel, GUILayout.MaxWidth(200f));
                EditorGUILayout.LabelField(fileSystemRepositoryManagerSettings.folderPath, EditorStyles.label);
                if (GUILayout.Button("..."))
                {
                    fileSystemRepositoryManagerSettings.folderPath = EditorUtility.SaveFolderPanel("Select the folder where the repositories will be saved", Application.dataPath, "Repositories");
                }
                EditorGUILayout.Space();
            }
            EditorGUILayout.Space();
        }