Example #1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="c"></param>
 /// <param name="path"></param>
 /// <returns>New editor instance for the given file type.</returns>
 public static Editor createEditor(BrowserController c, Path path, string app)
 {
     WatchEditor editor;
     if (!editors.TryGetValue(path, out editor))
     {
         editor = new WatchEditor(c, path, app);
         editors.Add(path, editor);
     }
     editor.Editor = app;
     return editor;
 }
Example #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="c"></param>
        /// <param name="path"></param>
        /// <returns>New editor instance for the given file type.</returns>
        public static Editor createEditor(BrowserController c, Path path, string app)
        {
            WatchEditor editor;

            if (!editors.TryGetValue(path, out editor))
            {
                editor = new WatchEditor(c, path, app);
                editors.Add(path, editor);
            }
            editor.Editor = app;
            return(editor);
        }