internal static void InitializeItemHandler(SolutionItem item) { SolutionEntityItem eitem = item as SolutionEntityItem; if (eitem != null) { foreach (ItemTypeNode node in GetItemTypeNodes()) { if (node.CanHandleItem(eitem)) { node.InitializeHandler(eitem); foreach (DotNetProjectSubtypeNode snode in GetItemSubtypeNodes()) { if (snode.CanHandleItem(eitem)) { snode.InitializeHandler(eitem); } } return; } } } else if (item is SolutionFolder) { MSBuildHandler h = new MSBuildHandler(FolderTypeGuid, null); h.Item = item; item.SetItemHandler(h); } }
public static void InitializeHandler(SolutionItem item) { if (item is DotNetProject) { DotNetProject p = (DotNetProject)item; item.SetItemHandler(new MD1DotNetProjectHandler(p)); p.FileName = FileFormat.GetValidFileName(p, p.FileName); } else if (item is SolutionEntityItem) { SolutionEntityItem it = (SolutionEntityItem)item; item.SetItemHandler(new MD1SolutionEntityItemHandler(it)); it.FileName = FileFormat.GetValidFileName(it, it.FileName); } else { item.SetItemHandler(new MD1SolutionItemHandler(item)); } }
internal static void InitializeItemHandler (SolutionItem item) { SolutionEntityItem eitem = item as SolutionEntityItem; if (eitem != null) { foreach (ItemTypeNode node in GetItemTypeNodes ()) { if (node.CanHandleItem (eitem)) { node.InitializeHandler (eitem); foreach (DotNetProjectSubtypeNode snode in GetItemSubtypeNodes ()) { if (snode.CanHandleItem (eitem)) snode.InitializeHandler (eitem); } return; } } } else if (item is SolutionFolder) { MSBuildHandler h = new MSBuildHandler (FolderTypeGuid, null); h.Item = item; item.SetItemHandler (h); } }
public static void InstallHandler(ISolutionItemHandler handler, SolutionItem item) { item.SetItemHandler(handler); }
public static void InstallHandler (ISolutionItemHandler handler, SolutionItem item) { item.SetItemHandler (handler); }
public static void InitializeHandler (SolutionItem item) { if (item is DotNetProject) { DotNetProject p = (DotNetProject) item; item.SetItemHandler (new MD1DotNetProjectHandler (p)); p.FileName = FileFormat.GetValidFileName (p, p.FileName); } else if (item is SolutionEntityItem) { SolutionEntityItem it = (SolutionEntityItem) item; item.SetItemHandler (new MD1SolutionEntityItemHandler (it)); it.FileName = FileFormat.GetValidFileName (it, it.FileName); } else { item.SetItemHandler (new MD1SolutionItemHandler (item)); } }