public void CreateNewResource(PhactoryHost.Database.Resource resource) { string extension = Helper.StringHelper.GetFileInfo(resource).Extension; PhactoryHost.EditorPlugin editor = pluginManager.GetEditor(extension); if (editor != null) { editor.CreateEmptyResource(resource); } PhactoryHost.CompilerPlugin compiler = pluginManager.GetCompiler(extension); if (compiler != null) { resource.IsIncludeResource = compiler.IsIncludeResource(resource); compiler.RefreshOutput(resource); } InsertFileMostRecentUsed(Helper.StringHelper.GetFileInfo(resource).FullName); }