C# Класс nHydrate.Generator.Common.Util.EnvDTEHelper

Summary description for EnvDTEHelper.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
BuildCache void
BuildCacheSub void
CacheProjectItems void
EnvDTEHelper System
Find UIHierarchyItem
Find UIHierarchyItem
GetProjectFolder ProjectItem
GetProjectItem ProjectItem
TriggerColorChange void

Открытые методы

Метод Описание
ActivateSolutionHierarchy ( ) : void
AddFileAsProjectItem ( Project project, string fileName, string relativePathAndName, bool overwrite, FileStateInfo &fileStateInfo ) : ProjectItem
AddFolder ( Project project, string folderName ) : ProjectItem
AddFolder ( ProjectItem projectItem, string folderName ) : ProjectItem
AddProjectItem ( Project project, ProjectItem parent, string fileName, string content, bool overwrite, FileStateInfo &fileStateInfo ) : ProjectItem
AddProjectItem ( Project project, string fileContent, byte fileContentBinary, ProjectItemContentType contentType, string relativePathAndName, bool overwrite, FileStateInfo &fileStateInfo ) : ProjectItem
AddProjectItem ( ProjectItem parent, string fileName, FileStateInfo &fileStateInfo ) : ProjectItem
AddProjectItem ( string fileContent, byte fileContentBinary, ProjectItemContentType contentType, string relativePathAndName, bool overwrite, FileStateInfo &fileStateInfo ) : void

Just gen file with no project

AddReference ( Project project, string assemblyLocation ) : void
CastToVSProject ( Project project ) : VSProject
ClearCache ( ) : void
CreateCSharpProject ( string name ) : Project
CreateDatabaseProject ( string name ) : Project
CreateProjectFromTemplate ( string template, string projectName ) : Project
CreateProjectFromTemplate ( string template, string projectName, string outputTarget ) : Project
CreateSolutionFolder ( string relativePath ) : EnvDTE.Project
CreateSolutionFolder ( string relativePath, EnvDTE parentFolder ) : EnvDTE.Project
DeleteProjectItem ( Project project, string relativePathAndName, FileStateInfo &fileStateInfo ) : void
DeleteProjectItem ( ProjectItem parent, string fileName, FileStateInfo &fileStateInfo ) : void
Find ( string fileExtension ) : System.IO.FileInfo[]
Find ( Project project ) : UIHierarchyItem
Find ( ProjectItem pi ) : UIHierarchyItem
FindProjectItemByFileName ( ProjectItems projectItems, string relativePathAndName ) : ProjectItem
GetFileName ( ProjectItem pi ) : string
GetProject ( string projectName ) : Project
GetProjectFolder ( Project project, string folderString ) : ProjectItem
GetProjectFolder ( string projectName, string projectLocation ) : ProjectItem
GetProjectItem ( Project project, string projectItemString ) : ProjectItem
GetProjectItem ( ProjectItem parentItem, string projectItem ) : ProjectItem
GetProjectItem ( ProjectItem parentItem, string projectItem, bool createPathIfNotExists ) : ProjectItem
GetProjectItem ( string projectName, string parentItemRelativeName ) : ProjectItem
GetProjectItem ( string projectName, string parentRelativeName, ProjectItemType parentItemType ) : ProjectItem
GetProjectItemExists ( Project project, string projectItemString ) : bool
GetProjectItemExists ( ProjectItem parentItem, string projectItem ) : bool
GetProjectItemExists ( string projectName, string parentRelativeName, ProjectItemType parentItemType ) : bool
ProjectExists ( string projectName ) : bool
ProjectLoaded ( string projectName ) : bool
SelectProjectItem ( ProjectItem pi ) : void
SetDTE ( _DTE applicationObject ) : void
SetProperties ( ProjectItem projectItem, Hashtable properties ) : void
SetProperty ( ProjectItem projectItem, string propertyName, object propertyValue ) : void

Приватные методы

Метод Описание
BuildCache ( Project project ) : void
BuildCacheSub ( ProjectItem projectItem ) : void
CacheProjectItems ( ProjectItems projectItems, List cache ) : void
EnvDTEHelper ( ) : System
Find ( UIHierarchyItem hierarchyItem, Project project ) : UIHierarchyItem
Find ( UIHierarchyItem hierarchyItem, ProjectItem pi ) : UIHierarchyItem
GetProjectFolder ( ProjectItem parentItem, string folder ) : ProjectItem
GetProjectItem ( Project project, string projectItemString, bool createPathIfNotExists ) : ProjectItem
TriggerColorChange ( ) : void

Описание методов

ActivateSolutionHierarchy() публичный Метод

public ActivateSolutionHierarchy ( ) : void
Результат void

AddFileAsProjectItem() публичный Метод

public AddFileAsProjectItem ( Project project, string fileName, string relativePathAndName, bool overwrite, FileStateInfo &fileStateInfo ) : ProjectItem
project Project
fileName string
relativePathAndName string
overwrite bool
fileStateInfo FileStateInfo
Результат ProjectItem

AddFolder() публичный статический Метод

public static AddFolder ( Project project, string folderName ) : ProjectItem
project Project
folderName string
Результат ProjectItem

AddFolder() публичный статический Метод

public static AddFolder ( ProjectItem projectItem, string folderName ) : ProjectItem
projectItem ProjectItem
folderName string
Результат ProjectItem

AddProjectItem() публичный Метод

public AddProjectItem ( Project project, ProjectItem parent, string fileName, string content, bool overwrite, FileStateInfo &fileStateInfo ) : ProjectItem
project Project
parent ProjectItem
fileName string
content string
overwrite bool
fileStateInfo FileStateInfo
Результат ProjectItem

AddProjectItem() публичный Метод

public AddProjectItem ( Project project, string fileContent, byte fileContentBinary, ProjectItemContentType contentType, string relativePathAndName, bool overwrite, FileStateInfo &fileStateInfo ) : ProjectItem
project Project
fileContent string
fileContentBinary byte
contentType ProjectItemContentType
relativePathAndName string
overwrite bool
fileStateInfo FileStateInfo
Результат ProjectItem

AddProjectItem() публичный Метод

public AddProjectItem ( ProjectItem parent, string fileName, FileStateInfo &fileStateInfo ) : ProjectItem
parent ProjectItem
fileName string
fileStateInfo FileStateInfo
Результат ProjectItem

AddProjectItem() публичный Метод

Just gen file with no project
public AddProjectItem ( string fileContent, byte fileContentBinary, ProjectItemContentType contentType, string relativePathAndName, bool overwrite, FileStateInfo &fileStateInfo ) : void
fileContent string
fileContentBinary byte
contentType ProjectItemContentType
relativePathAndName string
overwrite bool
fileStateInfo FileStateInfo
Результат void

AddReference() публичный статический Метод

public static AddReference ( Project project, string assemblyLocation ) : void
project Project
assemblyLocation string
Результат void

CastToVSProject() публичный статический Метод

public static CastToVSProject ( Project project ) : VSProject
project Project
Результат VSProject

ClearCache() публичный Метод

public ClearCache ( ) : void
Результат void

CreateCSharpProject() публичный Метод

public CreateCSharpProject ( string name ) : Project
name string
Результат Project

CreateDatabaseProject() публичный Метод

public CreateDatabaseProject ( string name ) : Project
name string
Результат Project

CreateProjectFromTemplate() публичный Метод

public CreateProjectFromTemplate ( string template, string projectName ) : Project
template string
projectName string
Результат Project

CreateProjectFromTemplate() публичный Метод

public CreateProjectFromTemplate ( string template, string projectName, string outputTarget ) : Project
template string
projectName string
outputTarget string
Результат Project

CreateSolutionFolder() публичный Метод

public CreateSolutionFolder ( string relativePath ) : EnvDTE.Project
relativePath string
Результат EnvDTE.Project

CreateSolutionFolder() публичный Метод

public CreateSolutionFolder ( string relativePath, EnvDTE parentFolder ) : EnvDTE.Project
relativePath string
parentFolder EnvDTE
Результат EnvDTE.Project

DeleteProjectItem() публичный статический Метод

public static DeleteProjectItem ( Project project, string relativePathAndName, FileStateInfo &fileStateInfo ) : void
project Project
relativePathAndName string
fileStateInfo FileStateInfo
Результат void

DeleteProjectItem() публичный Метод

public DeleteProjectItem ( ProjectItem parent, string fileName, FileStateInfo &fileStateInfo ) : void
parent ProjectItem
fileName string
fileStateInfo FileStateInfo
Результат void

Find() публичный Метод

public Find ( string fileExtension ) : System.IO.FileInfo[]
fileExtension string
Результат System.IO.FileInfo[]

Find() публичный Метод

public Find ( Project project ) : UIHierarchyItem
project Project
Результат UIHierarchyItem

Find() публичный Метод

public Find ( ProjectItem pi ) : UIHierarchyItem
pi ProjectItem
Результат UIHierarchyItem

FindProjectItemByFileName() публичный статический Метод

public static FindProjectItemByFileName ( ProjectItems projectItems, string relativePathAndName ) : ProjectItem
projectItems ProjectItems
relativePathAndName string
Результат ProjectItem

GetFileName() публичный Метод

public GetFileName ( ProjectItem pi ) : string
pi ProjectItem
Результат string

GetProject() публичный Метод

public GetProject ( string projectName ) : Project
projectName string
Результат Project

GetProjectFolder() публичный Метод

public GetProjectFolder ( Project project, string folderString ) : ProjectItem
project Project
folderString string
Результат ProjectItem

GetProjectFolder() публичный Метод

public GetProjectFolder ( string projectName, string projectLocation ) : ProjectItem
projectName string
projectLocation string
Результат ProjectItem

GetProjectItem() публичный Метод

public GetProjectItem ( Project project, string projectItemString ) : ProjectItem
project Project
projectItemString string
Результат ProjectItem

GetProjectItem() публичный Метод

public GetProjectItem ( ProjectItem parentItem, string projectItem ) : ProjectItem
parentItem ProjectItem
projectItem string
Результат ProjectItem

GetProjectItem() публичный Метод

public GetProjectItem ( ProjectItem parentItem, string projectItem, bool createPathIfNotExists ) : ProjectItem
parentItem ProjectItem
projectItem string
createPathIfNotExists bool
Результат ProjectItem

GetProjectItem() публичный Метод

public GetProjectItem ( string projectName, string parentItemRelativeName ) : ProjectItem
projectName string
parentItemRelativeName string
Результат ProjectItem

GetProjectItem() публичный Метод

public GetProjectItem ( string projectName, string parentRelativeName, ProjectItemType parentItemType ) : ProjectItem
projectName string
parentRelativeName string
parentItemType ProjectItemType
Результат ProjectItem

GetProjectItemExists() публичный Метод

public GetProjectItemExists ( Project project, string projectItemString ) : bool
project Project
projectItemString string
Результат bool

GetProjectItemExists() публичный Метод

public GetProjectItemExists ( ProjectItem parentItem, string projectItem ) : bool
parentItem ProjectItem
projectItem string
Результат bool

GetProjectItemExists() публичный Метод

public GetProjectItemExists ( string projectName, string parentRelativeName, ProjectItemType parentItemType ) : bool
projectName string
parentRelativeName string
parentItemType ProjectItemType
Результат bool

ProjectExists() публичный статический Метод

public static ProjectExists ( string projectName ) : bool
projectName string
Результат bool

ProjectLoaded() публичный статический Метод

public static ProjectLoaded ( string projectName ) : bool
projectName string
Результат bool

SelectProjectItem() публичный Метод

public SelectProjectItem ( ProjectItem pi ) : void
pi ProjectItem
Результат void

SetDTE() публичный Метод

public SetDTE ( _DTE applicationObject ) : void
applicationObject _DTE
Результат void

SetProperties() публичный статический Метод

public static SetProperties ( ProjectItem projectItem, Hashtable properties ) : void
projectItem ProjectItem
properties System.Collections.Hashtable
Результат void

SetProperty() публичный статический Метод

public static SetProperty ( ProjectItem projectItem, string propertyName, object propertyValue ) : void
projectItem ProjectItem
propertyName string
propertyValue object
Результат void