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

Summary description for EnvDTEHelper.
Datei anzeigen Open project: nHydrate/nHydrate Class Usage Examples

Private Properties

Property Type Description
BuildCache void
BuildCacheSub void
CacheProjectItems void
EnvDTEHelper System
Find UIHierarchyItem
Find UIHierarchyItem
GetProjectFolder ProjectItem
GetProjectItem ProjectItem
TriggerColorChange void

Public Methods

Method 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

Method 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 method

public ActivateSolutionHierarchy ( ) : void
return void

AddFileAsProjectItem() public method

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

AddFolder() public static method

public static AddFolder ( Project project, string folderName ) : ProjectItem
project Project
folderName string
return ProjectItem

AddFolder() public static method

public static AddFolder ( ProjectItem projectItem, string folderName ) : ProjectItem
projectItem ProjectItem
folderName string
return ProjectItem

AddProjectItem() public method

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
return ProjectItem

AddProjectItem() public method

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
return ProjectItem

AddProjectItem() public method

public AddProjectItem ( ProjectItem parent, string fileName, FileStateInfo &fileStateInfo ) : ProjectItem
parent ProjectItem
fileName string
fileStateInfo FileStateInfo
return ProjectItem

AddProjectItem() public method

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
return void

AddReference() public static method

public static AddReference ( Project project, string assemblyLocation ) : void
project Project
assemblyLocation string
return void

CastToVSProject() public static method

public static CastToVSProject ( Project project ) : VSProject
project Project
return VSProject

ClearCache() public method

public ClearCache ( ) : void
return void

CreateCSharpProject() public method

public CreateCSharpProject ( string name ) : Project
name string
return Project

CreateDatabaseProject() public method

public CreateDatabaseProject ( string name ) : Project
name string
return Project

CreateProjectFromTemplate() public method

public CreateProjectFromTemplate ( string template, string projectName ) : Project
template string
projectName string
return Project

CreateProjectFromTemplate() public method

public CreateProjectFromTemplate ( string template, string projectName, string outputTarget ) : Project
template string
projectName string
outputTarget string
return Project

CreateSolutionFolder() public method

public CreateSolutionFolder ( string relativePath ) : EnvDTE.Project
relativePath string
return EnvDTE.Project

CreateSolutionFolder() public method

public CreateSolutionFolder ( string relativePath, EnvDTE parentFolder ) : EnvDTE.Project
relativePath string
parentFolder EnvDTE
return EnvDTE.Project

DeleteProjectItem() public static method

public static DeleteProjectItem ( Project project, string relativePathAndName, FileStateInfo &fileStateInfo ) : void
project Project
relativePathAndName string
fileStateInfo FileStateInfo
return void

DeleteProjectItem() public method

public DeleteProjectItem ( ProjectItem parent, string fileName, FileStateInfo &fileStateInfo ) : void
parent ProjectItem
fileName string
fileStateInfo FileStateInfo
return void

Find() public method

public Find ( string fileExtension ) : System.IO.FileInfo[]
fileExtension string
return System.IO.FileInfo[]

Find() public method

public Find ( Project project ) : UIHierarchyItem
project Project
return UIHierarchyItem

Find() public method

public Find ( ProjectItem pi ) : UIHierarchyItem
pi ProjectItem
return UIHierarchyItem

FindProjectItemByFileName() public static method

public static FindProjectItemByFileName ( ProjectItems projectItems, string relativePathAndName ) : ProjectItem
projectItems ProjectItems
relativePathAndName string
return ProjectItem

GetFileName() public method

public GetFileName ( ProjectItem pi ) : string
pi ProjectItem
return string

GetProject() public method

public GetProject ( string projectName ) : Project
projectName string
return Project

GetProjectFolder() public method

public GetProjectFolder ( Project project, string folderString ) : ProjectItem
project Project
folderString string
return ProjectItem

GetProjectFolder() public method

public GetProjectFolder ( string projectName, string projectLocation ) : ProjectItem
projectName string
projectLocation string
return ProjectItem

GetProjectItem() public method

public GetProjectItem ( Project project, string projectItemString ) : ProjectItem
project Project
projectItemString string
return ProjectItem

GetProjectItem() public method

public GetProjectItem ( ProjectItem parentItem, string projectItem ) : ProjectItem
parentItem ProjectItem
projectItem string
return ProjectItem

GetProjectItem() public method

public GetProjectItem ( ProjectItem parentItem, string projectItem, bool createPathIfNotExists ) : ProjectItem
parentItem ProjectItem
projectItem string
createPathIfNotExists bool
return ProjectItem

GetProjectItem() public method

public GetProjectItem ( string projectName, string parentItemRelativeName ) : ProjectItem
projectName string
parentItemRelativeName string
return ProjectItem

GetProjectItem() public method

public GetProjectItem ( string projectName, string parentRelativeName, ProjectItemType parentItemType ) : ProjectItem
projectName string
parentRelativeName string
parentItemType ProjectItemType
return ProjectItem

GetProjectItemExists() public method

public GetProjectItemExists ( Project project, string projectItemString ) : bool
project Project
projectItemString string
return bool

GetProjectItemExists() public method

public GetProjectItemExists ( ProjectItem parentItem, string projectItem ) : bool
parentItem ProjectItem
projectItem string
return bool

GetProjectItemExists() public method

public GetProjectItemExists ( string projectName, string parentRelativeName, ProjectItemType parentItemType ) : bool
projectName string
parentRelativeName string
parentItemType ProjectItemType
return bool

ProjectExists() public static method

public static ProjectExists ( string projectName ) : bool
projectName string
return bool

ProjectLoaded() public static method

public static ProjectLoaded ( string projectName ) : bool
projectName string
return bool

SelectProjectItem() public method

public SelectProjectItem ( ProjectItem pi ) : void
pi ProjectItem
return void

SetDTE() public method

public SetDTE ( _DTE applicationObject ) : void
applicationObject _DTE
return void

SetProperties() public static method

public static SetProperties ( ProjectItem projectItem, Hashtable properties ) : void
projectItem ProjectItem
properties System.Collections.Hashtable
return void

SetProperty() public static method

public static SetProperty ( ProjectItem projectItem, string propertyName, object propertyValue ) : void
projectItem ProjectItem
propertyName string
propertyValue object
return void