// Unity C# reference source
// Copyright (c) Unity Technologies. For terms of use, see
// https://unity3d.com/legal/licenses/Unity_Reference_Only_License

namespace UnityEditor.Experimental.UIElements.GraphView
{
    internal
    class SimpleElement : GraphElement
    {
        public SimpleElement()
        {
            text = "";
        }

        public override void OnDataChanged()
        {
            base.OnDataChanged();
            var elementPresenter = GetPresenter<SimpleElementPresenter>();
            text = elementPresenter.title;
        }
    }
}
