public DocumentItem(JsonObject document, IdAllocator idAllocator) { id = idAllocator.NextId(); icon = (Texture2D)EditorGUIUtility.IconContent( "GameObject Icon" ).image; SetDocument(document); }
public SessionIdItem( ClientSessionIdRepository repository, IdAllocator idAllocator ) { this.Repository = repository; this.idAllocator = idAllocator; string sessionId = Repository.GetSessionId() ?? "null"; id = idAllocator.NextId(); displayName = "Session ID [" + sessionId + "]"; icon = (Texture2D)EditorGUIUtility.IconContent( "CloudConnect" ).image; }
public EmulatedDatabasesItem( ArangoRepository repository, IdAllocator idAllocator ) { this.Repository = repository; this.idAllocator = idAllocator; id = idAllocator.NextId(); displayName = "Emulated databases"; icon = (Texture2D)EditorGUIUtility.IconContent( "d_Profiler.Physics" ).image; BuildChildren(); }
public CollectionItem( string collectionName, Collection collection, IdAllocator idAllocator ) { CollectionName = collectionName; Collection = collection; this.idAllocator = idAllocator; id = idAllocator.NextId(); displayName = collectionName; icon = (Texture2D)EditorGUIUtility.IconContent( "Folder Icon" ).image; BuildChildren(); }
public DatabaseItem( string databaseName, ArangoInMemory database, IdAllocator idAllocator ) { DatabaseName = databaseName; Database = database; this.idAllocator = idAllocator; id = idAllocator.NextId(); displayName = databaseName; icon = (Texture2D)EditorGUIUtility.IconContent( "Collab.BuildSucceeded" ).image; BuildChildren(); }