C# Class nHydrate.Generator.Common.Util.EnvDTEHelper

Summary description for EnvDTEHelper.
Afficher le fichier Open project: nHydrate/nHydrate Class Usage Examples

Private Properties

Свойство Type Description
BuildCache void
BuildCacheSub void
CacheProjectItems void
EnvDTEHelper System
Find UIHierarchyItem
Find UIHierarchyItem
GetProjectFolder ProjectItem
GetProjectItem ProjectItem
TriggerColorChange void

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

ActivateSolutionHierarchy() public méthode

public ActivateSolutionHierarchy ( ) : void
Résultat void

AddFileAsProjectItem() public méthode

public AddFileAsProjectItem ( Project project, string fileName, string relativePathAndName, bool overwrite, FileStateInfo &fileStateInfo ) : ProjectItem
project Project
fileName string
relativePathAndName string
overwrite bool
fileStateInfo FileStateInfo
Résultat ProjectItem

AddFolder() public static méthode

public static AddFolder ( Project project, string folderName ) : ProjectItem
project Project
folderName string
Résultat ProjectItem

AddFolder() public static méthode

public static AddFolder ( ProjectItem projectItem, string folderName ) : ProjectItem
projectItem ProjectItem
folderName string
Résultat ProjectItem

AddProjectItem() public méthode

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
Résultat ProjectItem

AddProjectItem() public méthode

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
Résultat ProjectItem

AddProjectItem() public méthode

public AddProjectItem ( ProjectItem parent, string fileName, FileStateInfo &fileStateInfo ) : ProjectItem
parent ProjectItem
fileName string
fileStateInfo FileStateInfo
Résultat ProjectItem

AddProjectItem() public méthode

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
Résultat void

AddReference() public static méthode

public static AddReference ( Project project, string assemblyLocation ) : void
project Project
assemblyLocation string
Résultat void

CastToVSProject() public static méthode

public static CastToVSProject ( Project project ) : VSProject
project Project
Résultat VSProject

ClearCache() public méthode

public ClearCache ( ) : void
Résultat void

CreateCSharpProject() public méthode

public CreateCSharpProject ( string name ) : Project
name string
Résultat Project

CreateDatabaseProject() public méthode

public CreateDatabaseProject ( string name ) : Project
name string
Résultat Project

CreateProjectFromTemplate() public méthode

public CreateProjectFromTemplate ( string template, string projectName ) : Project
template string
projectName string
Résultat Project

CreateProjectFromTemplate() public méthode

public CreateProjectFromTemplate ( string template, string projectName, string outputTarget ) : Project
template string
projectName string
outputTarget string
Résultat Project

CreateSolutionFolder() public méthode

public CreateSolutionFolder ( string relativePath ) : EnvDTE.Project
relativePath string
Résultat EnvDTE.Project

CreateSolutionFolder() public méthode

public CreateSolutionFolder ( string relativePath, EnvDTE parentFolder ) : EnvDTE.Project
relativePath string
parentFolder EnvDTE
Résultat EnvDTE.Project

DeleteProjectItem() public static méthode

public static DeleteProjectItem ( Project project, string relativePathAndName, FileStateInfo &fileStateInfo ) : void
project Project
relativePathAndName string
fileStateInfo FileStateInfo
Résultat void

DeleteProjectItem() public méthode

public DeleteProjectItem ( ProjectItem parent, string fileName, FileStateInfo &fileStateInfo ) : void
parent ProjectItem
fileName string
fileStateInfo FileStateInfo
Résultat void

Find() public méthode

public Find ( string fileExtension ) : System.IO.FileInfo[]
fileExtension string
Résultat System.IO.FileInfo[]

Find() public méthode

public Find ( Project project ) : UIHierarchyItem
project Project
Résultat UIHierarchyItem

Find() public méthode

public Find ( ProjectItem pi ) : UIHierarchyItem
pi ProjectItem
Résultat UIHierarchyItem

FindProjectItemByFileName() public static méthode

public static FindProjectItemByFileName ( ProjectItems projectItems, string relativePathAndName ) : ProjectItem
projectItems ProjectItems
relativePathAndName string
Résultat ProjectItem

GetFileName() public méthode

public GetFileName ( ProjectItem pi ) : string
pi ProjectItem
Résultat string

GetProject() public méthode

public GetProject ( string projectName ) : Project
projectName string
Résultat Project

GetProjectFolder() public méthode

public GetProjectFolder ( Project project, string folderString ) : ProjectItem
project Project
folderString string
Résultat ProjectItem

GetProjectFolder() public méthode

public GetProjectFolder ( string projectName, string projectLocation ) : ProjectItem
projectName string
projectLocation string
Résultat ProjectItem

GetProjectItem() public méthode

public GetProjectItem ( Project project, string projectItemString ) : ProjectItem
project Project
projectItemString string
Résultat ProjectItem

GetProjectItem() public méthode

public GetProjectItem ( ProjectItem parentItem, string projectItem ) : ProjectItem
parentItem ProjectItem
projectItem string
Résultat ProjectItem

GetProjectItem() public méthode

public GetProjectItem ( ProjectItem parentItem, string projectItem, bool createPathIfNotExists ) : ProjectItem
parentItem ProjectItem
projectItem string
createPathIfNotExists bool
Résultat ProjectItem

GetProjectItem() public méthode

public GetProjectItem ( string projectName, string parentItemRelativeName ) : ProjectItem
projectName string
parentItemRelativeName string
Résultat ProjectItem

GetProjectItem() public méthode

public GetProjectItem ( string projectName, string parentRelativeName, ProjectItemType parentItemType ) : ProjectItem
projectName string
parentRelativeName string
parentItemType ProjectItemType
Résultat ProjectItem

GetProjectItemExists() public méthode

public GetProjectItemExists ( Project project, string projectItemString ) : bool
project Project
projectItemString string
Résultat bool

GetProjectItemExists() public méthode

public GetProjectItemExists ( ProjectItem parentItem, string projectItem ) : bool
parentItem ProjectItem
projectItem string
Résultat bool

GetProjectItemExists() public méthode

public GetProjectItemExists ( string projectName, string parentRelativeName, ProjectItemType parentItemType ) : bool
projectName string
parentRelativeName string
parentItemType ProjectItemType
Résultat bool

ProjectExists() public static méthode

public static ProjectExists ( string projectName ) : bool
projectName string
Résultat bool

ProjectLoaded() public static méthode

public static ProjectLoaded ( string projectName ) : bool
projectName string
Résultat bool

SelectProjectItem() public méthode

public SelectProjectItem ( ProjectItem pi ) : void
pi ProjectItem
Résultat void

SetDTE() public méthode

public SetDTE ( _DTE applicationObject ) : void
applicationObject _DTE
Résultat void

SetProperties() public static méthode

public static SetProperties ( ProjectItem projectItem, Hashtable properties ) : void
projectItem ProjectItem
properties System.Collections.Hashtable
Résultat void

SetProperty() public static méthode

public static SetProperty ( ProjectItem projectItem, string propertyName, object propertyValue ) : void
projectItem ProjectItem
propertyName string
propertyValue object
Résultat void