コード例 #1
0
        public ItemTemplate(Plugin plugin)
        {
            Name = "";
            ID = Guid.Empty;
            Intellisense = new Intellisense();

            AutoCompletionProvider = new IntellisenseProvider(Intellisense);
            Plugin = plugin;
        }
コード例 #2
0
        public static View Select(ItemTemplate it, byte[] data, File file, IntellisenseProvider intellisenseOProvider, DockWindow window = null)
        {
            if(it.View != null)
            {
                it.View.Window = window;

                it.View.Create(data);

                return it.View;
            }
            else
            {
                var v = new EditorView(it, file);
                v.Window = window;
                v.IntellisenseProvider = intellisenseOProvider;

                v.Create(data);

                return v;
            }
        }