C# Class PKStudio.PortingKitWrapper

Inheritance: IDisposable
Exibir arquivo Open project: AlexandrSurkov/PKStudio

Public Methods

Method Description
CheckLibrarProjName ( string path ) : bool
CheckLibraryCategoryName ( string name ) : bool

Checks Library Category name for uniqueness

CheckLibraryName ( string name ) : bool

Checks Library name for uniqueness

CloneLibrary ( LibraryWrapper BaseLib, string NewName, string NewGroups, string NewPath, LibraryLevelWrapper NewLevel, bool NewIsStub ) : LibraryWrapper
CloneLibraryCategory ( BaseTypedWrapper BaseLibCat, string NewName, string NewGroups, LibraryLevelWrapper NewLevel ) : LibraryCategoryWrapper
ConvertPathToEnv ( string fullpath ) : string
CopyProjFilesFromClone ( ProjectWrapper proj, SolutionWrapper solution ) : void
CopyTemplateFiles ( LibraryCategoryWrapper libcat, SolutionWrapper solution, ComponentWrapper template ) : void
CreateLibrary ( string Name, LibraryLevelWrapper Level, string Description, string ProjectPath, bool IsTemplate, ComponentWrapper LibraryCategory ) : LibraryWrapper
CreateLibrary ( string name, string groups, string path, LibraryLevelWrapper level, bool isStub ) : LibraryWrapper
CreateLibraryCategory ( string name, string groups, LibraryLevelWrapper level ) : LibraryCategoryWrapper
CreateSolution ( string Name, string Description, string Author, bool IsSolutionWizardVisible ) : SolutionWrapper
CreateSolutionDirProj ( SolutionWrapper solution ) : void
DeleteLibrary ( LibraryWrapper lib ) : void
DeleteLibraryCategoryProj ( LibraryCategoryWrapper libcat ) : void
Dispose ( ) : void
ExpandEnvVars ( string text, string path ) : string
ExpandPath ( string path ) : string
FindAssembly ( string asmGuid ) : AssemblyWrapper
FindAssemblyByName ( string asmName ) : AssemblyWrapper
FindBuildTool ( string buildToolGuid ) : BuildToolWrapper_
FindBuildToolByName ( string buildToolName ) : BuildToolWrapper_
FindFeature ( string featureGuid ) : FeatureWrapper
FindFeatureByName ( string name ) : FeatureWrapper
FindFeatureByProject ( string featProject ) : FeatureWrapper
FindISA ( string ISAGuid ) : ISAWrapper
FindLibrary ( ComponentWrapper comp ) : LibraryWrapper
FindLibrary ( string libraryGuid ) : LibraryWrapper
FindLibraryByFile ( string libraryFile ) : LibraryWrapper
FindLibraryByName ( string libraryName ) : LibraryWrapper
FindLibraryByProject ( string libraryProj ) : LibraryWrapper
FindLibraryCategory ( string LibraryCategoryGuid ) : LibraryCategoryWrapper
FindLibraryCategoryByName ( string LibraryCategoryName ) : LibraryCategoryWrapper
FindProcessor ( string processorGuid ) : ProcessorWrapper
FindProcessorByName ( string procName ) : ProcessorWrapper
GenerateNewLibraryCategoryName ( string BaseName ) : string

Generates Library Category new unique library name based on BaseName

GenerateNewLibraryName ( string BaseName ) : string

Generates Library new unique library name based on BaseName

GenerateSolution ( SolutionWrapper solution ) : void
GetAssembies ( ) : AssemblyWrapper[]
GetAvailableSolutions ( ) : MFComponentDescriptor>.CollectionWrapper
GetBuildTools ( ) : BuildToolWrapper_[]
GetFeatures ( ) : FeatureWrapper[]
GetISAs ( ) : ISAWrapper[]
GetLibraries ( ) : LibraryWrapper[]
GetLibraryCategories ( ) : LibraryCategoryWrapper[]
GetProcessors ( ) : ProcessorWrapper[]
GetProjectTemplates ( ) : List
GetRequiredFeatures ( ) : FeatureWrapper[]
GetRequiredLibraries ( ) : LibraryWrapper[]
GetRequiredLibraryCategories ( ) : LibraryCategoryWrapper[]
GetSolutions ( ) : SolutionWrapper[]
GetTransports ( ) : List
LoadDefaultFeatures ( ) : FeatureWrapper[]

Sync loading of default Features

LoadDefaultFeaturesAsync ( ) : void

Async loading of default Features

LoadDefaultLibraries ( ) : LibraryWrapper[]

Sync loading of default Libraries

LoadDefaultLibrariesAsync ( ) : void

Async loading of default Libraries

LoadDefaultLibraryCatigories ( ) : LibraryCategoryWrapper[]

Sync loading of default Library Catigories

LoadDefaultLibraryCatigoriesAsync ( ) : void

Async loading of default Library Catigories

LoadInventory ( ) : void

Sync loading of inventory

LoadInventoryAsync ( ) : void

Async loading of Inventory

LoadLibraryProj ( string libProjFile, string path ) : LibraryWrapper
LoadProject ( string fullpath ) : Project
LoadSolution ( ComponentDescriptorWrapper selectedsolution ) : SolutionWrapper

Sync loading of Solution

LoadSolutionAsync ( ComponentDescriptorWrapper selectedsolution ) : void

Async loading of Solution

LoadSolutionsAsync ( ) : void

Async loading of all Solutions

LoadTemplateProjects ( ) : List
PortingKitWrapper ( ) : System
SaveFeatureProj ( Feature feat ) : void
SaveLibraryCategoryProj ( LibraryCategoryWrapper libCat ) : bool
SaveLibraryProj ( LibraryWrapper lib ) : void
SaveProjectProj ( ProjectWrapper mfproj ) : void
SaveSolutionProj ( SolutionWrapper solution ) : void
Search ( SearchType type, SearchWhere where, string what, bool MatchCase, bool MatchWholeWord ) : void

Searchs components in inventory

m_SearchWorker_DoWork ( object sender, DoWorkEventArgs e ) : void
m_SearchWorker_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void
m_worker_DoWork ( object sender, DoWorkEventArgs e ) : void
m_worker_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
CheckFeature ( FeatureWrapper feat, string what, bool MatchCase, bool MatchWholeWord ) : void
CheckFeature ( SearchResultsHolder ProjectDesc, FeatureWrapper feat, string what, bool MatchCase, bool MatchWholeWord ) : void
CheckFile ( BuildFileWrapper file, string what, bool MatchCase, bool MatchWholeWord ) : void
CheckFile ( SearchResultsHolder ProjectDesc, BuildFileWrapper file, string what, bool MatchCase, bool MatchWholeWord ) : void
CheckLibrary ( LibraryWrapper lib, string what, bool MatchCase, bool MatchWholeWord ) : void
CheckLibrary ( SearchResultsHolder ProjectDesc, LibraryWrapper lib, string what, bool MatchCase, bool MatchWholeWord ) : void
CheckLibraryCategory ( LibraryCategoryWrapper libcat, string what, bool MatchCase, bool MatchWholeWord ) : void
CheckLibraryCategory ( SearchResultsHolder ProjectDesc, LibraryCategoryWrapper libcat, string what, bool MatchCase, bool MatchWholeWord ) : void
CheckTextInFile ( BuildFileWrapper file, string what, bool MatchCase, bool MatchWholeWord ) : void
CheckTextInFile ( SearchResultsHolder ProjectDesc, BuildFileWrapper file, string what, bool MatchCase, bool MatchWholeWord ) : void
OnElementFinded ( SearchResultsHolder component ) : void
OnLoadFeaturesComplete ( ) : void
OnLoadInventoryComplete ( ) : void
OnLoadLibraryCategoriesComplete ( ) : void
OnLoadLibraryesComplete ( ) : void
OnLoadSolutionComplete ( ) : void
OnLoadSolutionsComplete ( ) : void
OnSearchComplited ( SearchResultsHolder searchResults ) : void
OnSearchStarted ( SearchParams SearchParams ) : void
SearchFiles ( SearchWhere where, string what, bool MatchCase, bool MatchWholeWord ) : void

Serarchs files

SearchInFeatures ( SearchWhere where, string what, bool MatchCase, bool MatchWholeWord ) : void

Searchs in Features

SearchInLibraries ( SearchWhere where, string what, bool MatchCase, bool MatchWholeWord ) : void

Searchs in Libraries

SearchInLibraryCategories ( SearchWhere where, string what, bool MatchCase, bool MatchWholeWord ) : void

Searchs in LibraryCategories

SearchTextInFiles ( SearchWhere where, string what, bool MatchCase, bool MatchWholeWord ) : void
SetSolutionTransportType ( SolutionWrapper solution ) : void

Method Details

CheckLibrarProjName() public method

public CheckLibrarProjName ( string path ) : bool
path string
return bool

CheckLibraryCategoryName() public method

Checks Library Category name for uniqueness
public CheckLibraryCategoryName ( string name ) : bool
name string
return bool

CheckLibraryName() public method

Checks Library name for uniqueness
public CheckLibraryName ( string name ) : bool
name string
return bool

CloneLibrary() public method

public CloneLibrary ( LibraryWrapper BaseLib, string NewName, string NewGroups, string NewPath, LibraryLevelWrapper NewLevel, bool NewIsStub ) : LibraryWrapper
BaseLib LibraryWrapper
NewName string
NewGroups string
NewPath string
NewLevel LibraryLevelWrapper
NewIsStub bool
return LibraryWrapper

CloneLibraryCategory() public method

public CloneLibraryCategory ( BaseTypedWrapper BaseLibCat, string NewName, string NewGroups, LibraryLevelWrapper NewLevel ) : LibraryCategoryWrapper
BaseLibCat BaseTypedWrapper
NewName string
NewGroups string
NewLevel LibraryLevelWrapper
return LibraryCategoryWrapper

ConvertPathToEnv() public method

public ConvertPathToEnv ( string fullpath ) : string
fullpath string
return string

CopyProjFilesFromClone() public method

public CopyProjFilesFromClone ( ProjectWrapper proj, SolutionWrapper solution ) : void
proj ProjectWrapper
solution SolutionWrapper
return void

CopyTemplateFiles() public method

public CopyTemplateFiles ( LibraryCategoryWrapper libcat, SolutionWrapper solution, ComponentWrapper template ) : void
libcat LibraryCategoryWrapper
solution SolutionWrapper
template ComponentWrapper
return void

CreateLibrary() public method

public CreateLibrary ( string Name, LibraryLevelWrapper Level, string Description, string ProjectPath, bool IsTemplate, ComponentWrapper LibraryCategory ) : LibraryWrapper
Name string
Level LibraryLevelWrapper
Description string
ProjectPath string
IsTemplate bool
LibraryCategory ComponentWrapper
return LibraryWrapper

CreateLibrary() public method

public CreateLibrary ( string name, string groups, string path, LibraryLevelWrapper level, bool isStub ) : LibraryWrapper
name string
groups string
path string
level LibraryLevelWrapper
isStub bool
return LibraryWrapper

CreateLibraryCategory() public method

public CreateLibraryCategory ( string name, string groups, LibraryLevelWrapper level ) : LibraryCategoryWrapper
name string
groups string
level LibraryLevelWrapper
return LibraryCategoryWrapper

CreateSolution() public method

public CreateSolution ( string Name, string Description, string Author, bool IsSolutionWizardVisible ) : SolutionWrapper
Name string
Description string
Author string
IsSolutionWizardVisible bool
return SolutionWrapper

CreateSolutionDirProj() public method

public CreateSolutionDirProj ( SolutionWrapper solution ) : void
solution SolutionWrapper
return void

DeleteLibrary() public method

public DeleteLibrary ( LibraryWrapper lib ) : void
lib LibraryWrapper
return void

DeleteLibraryCategoryProj() public method

public DeleteLibraryCategoryProj ( LibraryCategoryWrapper libcat ) : void
libcat LibraryCategoryWrapper
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

ExpandEnvVars() public method

public ExpandEnvVars ( string text, string path ) : string
text string
path string
return string

ExpandPath() public method

public ExpandPath ( string path ) : string
path string
return string

FindAssembly() public method

public FindAssembly ( string asmGuid ) : AssemblyWrapper
asmGuid string
return AssemblyWrapper

FindAssemblyByName() public method

public FindAssemblyByName ( string asmName ) : AssemblyWrapper
asmName string
return AssemblyWrapper

FindBuildTool() public method

public FindBuildTool ( string buildToolGuid ) : BuildToolWrapper_
buildToolGuid string
return BuildToolWrapper_

FindBuildToolByName() public method

public FindBuildToolByName ( string buildToolName ) : BuildToolWrapper_
buildToolName string
return BuildToolWrapper_

FindFeature() public method

public FindFeature ( string featureGuid ) : FeatureWrapper
featureGuid string
return FeatureWrapper

FindFeatureByName() public method

public FindFeatureByName ( string name ) : FeatureWrapper
name string
return FeatureWrapper

FindFeatureByProject() public method

public FindFeatureByProject ( string featProject ) : FeatureWrapper
featProject string
return FeatureWrapper

FindISA() public method

public FindISA ( string ISAGuid ) : ISAWrapper
ISAGuid string
return ISAWrapper

FindLibrary() public method

public FindLibrary ( ComponentWrapper comp ) : LibraryWrapper
comp ComponentWrapper
return LibraryWrapper

FindLibrary() public method

public FindLibrary ( string libraryGuid ) : LibraryWrapper
libraryGuid string
return LibraryWrapper

FindLibraryByFile() public method

public FindLibraryByFile ( string libraryFile ) : LibraryWrapper
libraryFile string
return LibraryWrapper

FindLibraryByName() public method

public FindLibraryByName ( string libraryName ) : LibraryWrapper
libraryName string
return LibraryWrapper

FindLibraryByProject() public method

public FindLibraryByProject ( string libraryProj ) : LibraryWrapper
libraryProj string
return LibraryWrapper

FindLibraryCategory() public method

public FindLibraryCategory ( string LibraryCategoryGuid ) : LibraryCategoryWrapper
LibraryCategoryGuid string
return LibraryCategoryWrapper

FindLibraryCategoryByName() public method

public FindLibraryCategoryByName ( string LibraryCategoryName ) : LibraryCategoryWrapper
LibraryCategoryName string
return LibraryCategoryWrapper

FindProcessor() public method

public FindProcessor ( string processorGuid ) : ProcessorWrapper
processorGuid string
return ProcessorWrapper

FindProcessorByName() public method

public FindProcessorByName ( string procName ) : ProcessorWrapper
procName string
return ProcessorWrapper

GenerateNewLibraryCategoryName() public method

Generates Library Category new unique library name based on BaseName
public GenerateNewLibraryCategoryName ( string BaseName ) : string
BaseName string Base name for generation
return string

GenerateNewLibraryName() public method

Generates Library new unique library name based on BaseName
public GenerateNewLibraryName ( string BaseName ) : string
BaseName string Base name for generation
return string

GenerateSolution() public method

public GenerateSolution ( SolutionWrapper solution ) : void
solution SolutionWrapper
return void

GetAssembies() public method

public GetAssembies ( ) : AssemblyWrapper[]
return AssemblyWrapper[]

GetAvailableSolutions() public method

public GetAvailableSolutions ( ) : MFComponentDescriptor>.CollectionWrapper
return MFComponentDescriptor>.CollectionWrapper

GetBuildTools() public method

public GetBuildTools ( ) : BuildToolWrapper_[]
return BuildToolWrapper_[]

GetFeatures() public method

public GetFeatures ( ) : FeatureWrapper[]
return FeatureWrapper[]

GetISAs() public method

public GetISAs ( ) : ISAWrapper[]
return ISAWrapper[]

GetLibraries() public method

public GetLibraries ( ) : LibraryWrapper[]
return LibraryWrapper[]

GetLibraryCategories() public method

public GetLibraryCategories ( ) : LibraryCategoryWrapper[]
return LibraryCategoryWrapper[]

GetProcessors() public method

public GetProcessors ( ) : ProcessorWrapper[]
return ProcessorWrapper[]

GetProjectTemplates() public method

public GetProjectTemplates ( ) : List
return List

GetRequiredFeatures() public method

public GetRequiredFeatures ( ) : FeatureWrapper[]
return FeatureWrapper[]

GetRequiredLibraries() public method

public GetRequiredLibraries ( ) : LibraryWrapper[]
return LibraryWrapper[]

GetRequiredLibraryCategories() public method

public GetRequiredLibraryCategories ( ) : LibraryCategoryWrapper[]
return LibraryCategoryWrapper[]

GetSolutions() public method

public GetSolutions ( ) : SolutionWrapper[]
return SolutionWrapper[]

GetTransports() public method

public GetTransports ( ) : List
return List

LoadDefaultFeatures() public method

Sync loading of default Features
public LoadDefaultFeatures ( ) : FeatureWrapper[]
return FeatureWrapper[]

LoadDefaultFeaturesAsync() public method

Async loading of default Features
public LoadDefaultFeaturesAsync ( ) : void
return void

LoadDefaultLibraries() public method

Sync loading of default Libraries
public LoadDefaultLibraries ( ) : LibraryWrapper[]
return LibraryWrapper[]

LoadDefaultLibrariesAsync() public method

Async loading of default Libraries
public LoadDefaultLibrariesAsync ( ) : void
return void

LoadDefaultLibraryCatigories() public method

Sync loading of default Library Catigories
public LoadDefaultLibraryCatigories ( ) : LibraryCategoryWrapper[]
return LibraryCategoryWrapper[]

LoadDefaultLibraryCatigoriesAsync() public method

Async loading of default Library Catigories
public LoadDefaultLibraryCatigoriesAsync ( ) : void
return void

LoadInventory() public method

Sync loading of inventory
public LoadInventory ( ) : void
return void

LoadInventoryAsync() public method

Async loading of Inventory
public LoadInventoryAsync ( ) : void
return void

LoadLibraryProj() public method

public LoadLibraryProj ( string libProjFile, string path ) : LibraryWrapper
libProjFile string
path string
return LibraryWrapper

LoadProject() public method

public LoadProject ( string fullpath ) : Project
fullpath string
return Project

LoadSolution() public method

Sync loading of Solution
public LoadSolution ( ComponentDescriptorWrapper selectedsolution ) : SolutionWrapper
selectedsolution ComponentDescriptorWrapper
return SolutionWrapper

LoadSolutionAsync() public method

Async loading of Solution
public LoadSolutionAsync ( ComponentDescriptorWrapper selectedsolution ) : void
selectedsolution ComponentDescriptorWrapper
return void

LoadSolutionsAsync() public method

Async loading of all Solutions
public LoadSolutionsAsync ( ) : void
return void

LoadTemplateProjects() public method

public LoadTemplateProjects ( ) : List
return List

PortingKitWrapper() public method

public PortingKitWrapper ( ) : System
return System

SaveFeatureProj() public method

public SaveFeatureProj ( Feature feat ) : void
feat Feature
return void

SaveLibraryCategoryProj() public method

public SaveLibraryCategoryProj ( LibraryCategoryWrapper libCat ) : bool
libCat LibraryCategoryWrapper
return bool

SaveLibraryProj() public method

public SaveLibraryProj ( LibraryWrapper lib ) : void
lib LibraryWrapper
return void

SaveProjectProj() public method

public SaveProjectProj ( ProjectWrapper mfproj ) : void
mfproj ProjectWrapper
return void

SaveSolutionProj() public method

public SaveSolutionProj ( SolutionWrapper solution ) : void
solution SolutionWrapper
return void

Search() public method

Searchs components in inventory
public Search ( SearchType type, SearchWhere where, string what, bool MatchCase, bool MatchWholeWord ) : void
type SearchType Search type
where SearchWhere
what string Search what
MatchCase bool Match case
MatchWholeWord bool Match whiole word
return void

m_SearchWorker_DoWork() public method

public m_SearchWorker_DoWork ( object sender, DoWorkEventArgs e ) : void
sender object
e DoWorkEventArgs
return void

m_SearchWorker_RunWorkerCompleted() public method

public m_SearchWorker_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void
sender object
e RunWorkerCompletedEventArgs
return void

m_worker_DoWork() public method

public m_worker_DoWork ( object sender, DoWorkEventArgs e ) : void
sender object
e DoWorkEventArgs
return void

m_worker_RunWorkerCompleted() public method

public m_worker_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void
sender object
e RunWorkerCompletedEventArgs
return void