C# Class Rubberduck.VBEditor.Extensions.ProjectExtensions

Mostra file Open project: retailcoder/Rubberduck

Public Methods

Method Description
ComponentNames ( this project ) : IEnumerable
ExportSourceFiles ( this project, string directoryPath ) : void

Exports all code modules in the VbProject to a destination directory. Files are given the same name as their parent code Module name and file extensions are based on what type of code Module it is.

ImportSourceFiles ( this project, string filePath ) : void

Imports all source code files from target directory into project.

Only files with extensions "cls", "bas, "frm", and "doccls" are imported. It is the callers responsibility to remove any existing components prior to importing.

RemoveAllComponents ( this project ) : void

Removes All VbComponents from the VbProject.

Document type Components cannot be physically removed from a project through the VBE. Instead, the code will simply be deleted from the code Module.

Method Details

ComponentNames() public static method

public static ComponentNames ( this project ) : IEnumerable
project this
return IEnumerable

ExportSourceFiles() public static method

Exports all code modules in the VbProject to a destination directory. Files are given the same name as their parent code Module name and file extensions are based on what type of code Module it is.
public static ExportSourceFiles ( this project, string directoryPath ) : void
project this The to be exported to source files.
directoryPath string The destination directory path.
return void

ImportSourceFiles() public static method

Imports all source code files from target directory into project.
Only files with extensions "cls", "bas, "frm", and "doccls" are imported. It is the callers responsibility to remove any existing components prior to importing.
public static ImportSourceFiles ( this project, string filePath ) : void
project this
filePath string Directory path containing the source files.
return void

RemoveAllComponents() public static method

Removes All VbComponents from the VbProject.
Document type Components cannot be physically removed from a project through the VBE. Instead, the code will simply be deleted from the code Module.
public static RemoveAllComponents ( this project ) : void
project this
return void