C# Class FlatRedBall.Glue.ProjectManager

Inheritance: IVsProjectState
Afficher le fichier Open project: vchelaru/FlatRedBall Class Usage Examples

Private Properties

Свойство 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

Méthodes publiques

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

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

public static AddScreen ( string screenName ) : ScreenSave
screenName string
Résultat FlatRedBall.Glue.SaveClasses.ScreenSave

AddSyncedProject() public static méthode

public static AddSyncedProject ( string fileName ) : ProjectBase
fileName string
Résultat ProjectBase

CollectionContains() public static méthode

public static CollectionContains ( ICollection collection, string itemToSearchFor ) : bool
collection ICollection
itemToSearchFor string
Résultat bool

GetProjectByName() public static méthode

public static GetProjectByName ( string name ) : ProjectBase
name string
Résultat ProjectBase

GetProjectByTypeId() public static méthode

public static GetProjectByTypeId ( string projectId ) : ProjectBase
projectId string
Résultat ProjectBase

Initialize() public static méthode

public static Initialize ( ) : void
Résultat void

IsContent() public static méthode

public static IsContent ( string file ) : bool
file string
Résultat bool

MakeAbsolute() public static méthode

public static MakeAbsolute ( string relativePath ) : string
relativePath string
Résultat string

MakeAbsolute() public static méthode

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.
Résultat string

MakeRelativeContent() public static méthode

public static MakeRelativeContent ( string relativePath ) : string
relativePath string
Résultat string

RemoveCodeFilesForElement() public static méthode

public static RemoveCodeFilesForElement ( List filesThatCouldBeRemoved, IElement element ) : void
filesThatCouldBeRemoved List
element IElement
Résultat void

RemoveCustomVariable() public static méthode

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

RemoveNamedObject() public static méthode

public static RemoveNamedObject ( NamedObjectSave namedObjectToRemove ) : void
namedObjectToRemove FlatRedBall.Glue.SaveClasses.NamedObjectSave
Résultat void

RemoveNamedObject() public static méthode

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

SaveProjects() public static méthode

public static SaveProjects ( ) : void
Résultat void

SortAndUpdateUI() public static méthode

public static SortAndUpdateUI ( EntitySave entitySave ) : void
entitySave FlatRedBall.Glue.SaveClasses.EntitySave
Résultat void

SortAndUpdateUI() public static méthode

public static SortAndUpdateUI ( ScreenSave screenSave ) : void
screenSave FlatRedBall.Glue.SaveClasses.ScreenSave
Résultat void

StatusCheck() public static méthode

public static StatusCheck ( ) : CheckResult
Résultat CheckResult

UnloadProject() public static méthode

public static UnloadProject ( bool isExiting ) : void
isExiting bool
Résultat void

UpdateAllDerivedElementFromBaseValues() public static méthode

public static UpdateAllDerivedElementFromBaseValues ( bool performSave, bool regenerateCode ) : void
performSave bool
regenerateCode bool
Résultat void

UpdateExternallyBuiltFile() public static méthode

public static UpdateExternallyBuiltFile ( string changedFile ) : bool
changedFile string
Résultat bool

UpdateFileMembershipInProject() public static méthode

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

UpdateFileMembershipInProject() public static méthode

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.
Résultat bool