C# Class FlatRedBall.Glue.ProjectManager

Inheritance: IVsProjectState
显示文件 Open project: vchelaru/FlatRedBall Class Usage Examples

Private Properties

Property Type Description
AddFileToContentProject void
AddScreen void
AddScreen void
AddSyncedProject void
FindGameClass string
FindGameClass void
InheritanceVerificationHelper CheckResult
LoadOrCreateProjectSpecificSettings bool
ProjectManager System
ReferenceVerificationHelper CheckResult
RemoveItemFromAllProjects void
RemoveItemFromAllProjects void
RemoveItemFromProject void
RemoveItemFromProject void
RemoveSyncedProject void
RemoveTypeAtEndOfName string
ShouldFileBeInContentProject bool
UpdateCurrentTreeNodeAndCodeAndSave void
VerifyInheritanceGraph CheckResult
VerifyReferenceGraph CheckResult
VersionIsOutdated bool

Public Methods

Method Description
AddScreen ( string screenName ) : ScreenSave
AddSyncedProject ( string fileName ) : ProjectBase
CollectionContains ( ICollection collection, string itemToSearchFor ) : bool
GetProjectByName ( string name ) : ProjectBase
GetProjectByTypeId ( string projectId ) : ProjectBase
Initialize ( ) : void
IsContent ( string file ) : bool
MakeAbsolute ( string relativePath ) : string
MakeAbsolute ( string relativePath, bool forceAsContent ) : string

Converts a relative path to an absolute path assuming that the relative path is relative to the base Project's directory. This determines whether to use the base project or the content project according to the extension of the file or whether forceAsContent is true.

MakeRelativeContent ( string relativePath ) : string
RemoveCodeFilesForElement ( List filesThatCouldBeRemoved, IElement element ) : void
RemoveCustomVariable ( CustomVariable customVariable, List additionalFilesToRemove ) : void
RemoveNamedObject ( NamedObjectSave namedObjectToRemove ) : void
RemoveNamedObject ( NamedObjectSave namedObjectToRemove, bool performSave, bool updateUi, List additionalFilesToRemove ) : void
SaveProjects ( ) : void
SortAndUpdateUI ( EntitySave entitySave ) : void
SortAndUpdateUI ( ScreenSave screenSave ) : void
StatusCheck ( ) : CheckResult
UnloadProject ( bool isExiting ) : void
UpdateAllDerivedElementFromBaseValues ( bool performSave, bool regenerateCode ) : void
UpdateExternallyBuiltFile ( string changedFile ) : bool
UpdateFileMembershipInProject ( ProjectBase project, string fileRelativeToProject, bool useContentPipeline, bool shouldLink, string parentFile = null ) : bool

Adds the argument fileRelativeToProject to the argument project if it's not already part of the project.

UpdateFileMembershipInProject ( ReferencedFileSave referencedFileSave ) : bool

Updates the presence of the RFS in the main project. If the RFS has project specific files, then those files are updated in the appropriate synced project.

This method does not update synced projects if the synced projects use the same file. The reason is because this is taken care of when the projects are saved later on.

Private Methods

Method Description
AddFileToContentProject ( ProjectBase project, bool useContentPipeline, bool shouldLink, string fileToAddAbsolute ) : void
AddScreen ( ScreenSave screenSave ) : void
AddScreen ( ScreenSave screenSave, bool suppressAlreadyExistingFileMessage ) : void
AddSyncedProject ( VSHelpers vsp ) : void
FindGameClass ( ProjectBase projectBase ) : string
FindGameClass ( ) : void
InheritanceVerificationHelper ( INamedObjectContainer &node, string &cycleString ) : CheckResult
LoadOrCreateProjectSpecificSettings ( string projectFolder ) : bool
ProjectManager ( ) : System
ReferenceVerificationHelper ( IElement element, string &cycleString, Stack visitedElements ) : CheckResult
RemoveItemFromAllProjects ( string itemName ) : void
RemoveItemFromAllProjects ( string itemName, bool performSave ) : void
RemoveItemFromProject ( ProjectBase projectBaseToRemoveFrom, string itemName ) : void
RemoveItemFromProject ( ProjectBase projectBaseToRemoveFrom, string itemName, bool performSave ) : void
RemoveSyncedProject ( VSHelpers project ) : void
RemoveTypeAtEndOfName ( string name ) : string
ShouldFileBeInContentProject ( string fileToAddAbsolute ) : bool
UpdateCurrentTreeNodeAndCodeAndSave ( bool generateAndSave ) : void
VerifyInheritanceGraph ( INamedObjectContainer node ) : CheckResult
VerifyReferenceGraph ( IElement element ) : CheckResult
VersionIsOutdated ( string projectVersion, string webVersion ) : bool

Method Details

AddScreen() public static method

public static AddScreen ( string screenName ) : ScreenSave
screenName string
return FlatRedBall.Glue.SaveClasses.ScreenSave

AddSyncedProject() public static method

public static AddSyncedProject ( string fileName ) : ProjectBase
fileName string
return ProjectBase

CollectionContains() public static method

public static CollectionContains ( ICollection collection, string itemToSearchFor ) : bool
collection ICollection
itemToSearchFor string
return bool

GetProjectByName() public static method

public static GetProjectByName ( string name ) : ProjectBase
name string
return ProjectBase

GetProjectByTypeId() public static method

public static GetProjectByTypeId ( string projectId ) : ProjectBase
projectId string
return ProjectBase

Initialize() public static method

public static Initialize ( ) : void
return void

IsContent() public static method

public static IsContent ( string file ) : bool
file string
return bool

MakeAbsolute() public static method

public static MakeAbsolute ( string relativePath ) : string
relativePath string
return string

MakeAbsolute() public static method

Converts a relative path to an absolute path assuming that the relative path is relative to the base Project's directory. This determines whether to use the base project or the content project according to the extension of the file or whether forceAsContent is true.
public static MakeAbsolute ( string relativePath, bool forceAsContent ) : string
relativePath string The path to make absolute.
forceAsContent bool Whether to force as content - can be passed as true if the file should be treated as content despite its extension.
return string

MakeRelativeContent() public static method

public static MakeRelativeContent ( string relativePath ) : string
relativePath string
return string

RemoveCodeFilesForElement() public static method

public static RemoveCodeFilesForElement ( List filesThatCouldBeRemoved, IElement element ) : void
filesThatCouldBeRemoved List
element IElement
return void

RemoveCustomVariable() public static method

public static RemoveCustomVariable ( CustomVariable customVariable, List additionalFilesToRemove ) : void
customVariable FlatRedBall.Glue.SaveClasses.CustomVariable
additionalFilesToRemove List
return void

RemoveNamedObject() public static method

public static RemoveNamedObject ( NamedObjectSave namedObjectToRemove ) : void
namedObjectToRemove FlatRedBall.Glue.SaveClasses.NamedObjectSave
return void

RemoveNamedObject() public static method

public static RemoveNamedObject ( NamedObjectSave namedObjectToRemove, bool performSave, bool updateUi, List additionalFilesToRemove ) : void
namedObjectToRemove FlatRedBall.Glue.SaveClasses.NamedObjectSave
performSave bool
updateUi bool
additionalFilesToRemove List
return void

SaveProjects() public static method

public static SaveProjects ( ) : void
return void

SortAndUpdateUI() public static method

public static SortAndUpdateUI ( EntitySave entitySave ) : void
entitySave FlatRedBall.Glue.SaveClasses.EntitySave
return void

SortAndUpdateUI() public static method

public static SortAndUpdateUI ( ScreenSave screenSave ) : void
screenSave FlatRedBall.Glue.SaveClasses.ScreenSave
return void

StatusCheck() public static method

public static StatusCheck ( ) : CheckResult
return CheckResult

UnloadProject() public static method

public static UnloadProject ( bool isExiting ) : void
isExiting bool
return void

UpdateAllDerivedElementFromBaseValues() public static method

public static UpdateAllDerivedElementFromBaseValues ( bool performSave, bool regenerateCode ) : void
performSave bool
regenerateCode bool
return void

UpdateExternallyBuiltFile() public static method

public static UpdateExternallyBuiltFile ( string changedFile ) : bool
changedFile string
return bool

UpdateFileMembershipInProject() public static method

Adds the argument fileRelativeToProject to the argument project if it's not already part of the project.
public static UpdateFileMembershipInProject ( ProjectBase project, string fileRelativeToProject, bool useContentPipeline, bool shouldLink, string parentFile = null ) : bool
project ProjectBase
fileRelativeToProject string
useContentPipeline bool
shouldLink bool
parentFile string
return bool

UpdateFileMembershipInProject() public static method

Updates the presence of the RFS in the main project. If the RFS has project specific files, then those files are updated in the appropriate synced project.
This method does not update synced projects if the synced projects use the same file. The reason is because this is taken care of when the projects are saved later on.
public static UpdateFileMembershipInProject ( ReferencedFileSave referencedFileSave ) : bool
referencedFileSave FlatRedBall.Glue.SaveClasses.ReferencedFileSave The RFS representing the file to update membership on.
return bool