C# Class FlatRedBall.Glue.Plugins.PluginManager

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

Private Properties

Property Type Description
AddEventsForObject void
AddNewFileOptions void
AdjustDisplayedCustomVariable void
AdjustDisplayedEntity void
AdjustDisplayedNamedObject void
AdjustDisplayedReferencedFile void
AdjustDisplayedScreen void
CallMethodOnPlugin void
CallMethodOnPluginNotUiThread void
CanFileReferenceContent bool
CopyIntalledPluginsToRunnableLocation void
CreateNewFile string
GetFilesNeededOnDiskBy void
GetFilesReferencedBy void
Initialize void
OpenProject bool
OpenSolution bool
PluginCommand void
PluginCommandNotUiThread void
PluginCommandWithThrow void
PrintError void
PrintOutput void
PrintPreInitializeOutput void
ReactToChangedBuiltFile void
ReactToChangedFile void
ReactToChangedProperty void
ReactToGlueClose void
ReactToGluxClose void
ReactToGluxSave void
ReactToGluxUnload void
ReactToItemSelect void
ReactToLoadedGlux void
ReactToLoadedGluxEarly void
ReactToNamedObjectChangedValue void
ReactToNewFile void
ReactToNewObject void
ReactToNewScreenCreated void
ReactToPropertyGridRightClick void
ReactToStateNameChange void
ReactToStateRemoved void
ReactToSyncedProjectLoad void
ReactToTreeViewRightClick void
ReenablePlugin void
RefreshCurrentElement void
RefreshGlux void
ResumeRelativeDirectory void
SaveRelativeDirectory void
SetTabs void
ShareBottomTabReference void
ShareCenterTabReference void
ShareLeftTabReference void
ShareMenuStripReference void
ShareRightTabReference void
ShareTopTabReference void
ShowMostRecentTabFor void
TryAddContainedObjects bool
TryCopyFile bool
TryHandleException bool
UninstallPlugins void
WasExceptionCausedByPlugin bool

Public Methods

Method Description
GetTypeConverter ( IElement container, NamedObjectSave instance, TypedMemberBase typedMember ) : TypeConverter
HitBreakpoint ( ) : void
PluginManager ( bool global ) : System
ReceiveError ( string output ) : void
ReceiveOutput ( string output ) : void

Receives output and passes it to any output plugins. If the PluginManager is not initialized yet then it will store off the output until it is finished with initialization, then it will pass all output to the output plugins.

SelectItemInCurrentFile ( string objectInFile ) : void
WriteInstanceVariableAssignment ( NamedObjectSave namedObject, ICodeBlock codeBlock, InstructionSave instructionSave ) : void

Protected Methods

Method Description
AddDirectoriesForInstance ( List pluginDirectories ) : void
CompilePluginError ( string problem ) : void
CompilePluginOutput ( string problem ) : void
InstantiateAllListsAsEmpty ( ) : void
StartAllPlugins ( List pluginsToIgnore = null ) : void

Private Methods

Method Description
AddEventsForObject ( NamedObjectSave namedObjectSave, List listToFill ) : void
AddNewFileOptions ( NewFileWindow newFileWindow ) : void
AdjustDisplayedCustomVariable ( CustomVariable customVariable, CustomVariablePropertyGridDisplayer displayer ) : void
AdjustDisplayedEntity ( EntitySave entitySave, EntitySavePropertyGridDisplayer entitySaveDisplayer ) : void
AdjustDisplayedNamedObject ( NamedObjectSave namedObject, NamedObjectPropertyGridDisplayer displayer ) : void
AdjustDisplayedReferencedFile ( ReferencedFileSave referencedFileSave, ReferencedFileSavePropertyGridDisplayer displayer ) : void
AdjustDisplayedScreen ( ScreenSave screenSave, ScreenSavePropertyGridDisplayer screenSaveDisplayer ) : void
CallMethodOnPlugin ( Action methodToCall, string methodName ) : void
CallMethodOnPluginNotUiThread ( Action methodToCall, string methodName ) : void
CanFileReferenceContent ( string absoluteName ) : bool
CopyIntalledPluginsToRunnableLocation ( ) : void
CreateNewFile ( AssetTypeInfo assetTypeInfo, object extraData, string directory, string name ) : string
GetFilesNeededOnDiskBy ( string absoluteName, EditorObjects topLevelOrRecursive, List listToFill ) : void
GetFilesReferencedBy ( string absoluteName, EditorObjects topLevelOrRecursive, List listToFill ) : void
Initialize ( bool isStartup, List pluginsToIgnore = null ) : void
OpenProject ( string projectName ) : bool

Raised when the user clicks the menu item to open a project. This allows plugins to handle opening projects in other IDEs (like Eclipse).

OpenSolution ( string solutionName ) : bool
PluginCommand ( System.Action action, PluginContainer container, string message ) : void
PluginCommandNotUiThread ( System.Action action, PluginContainer container, string message ) : void
PluginCommandWithThrow ( System.Action action, PluginContainer container, string message ) : void
PrintError ( string output, PluginManager pluginManager ) : void
PrintOutput ( string output, PluginManager pluginManager ) : void
PrintPreInitializeOutput ( ) : void
ReactToChangedBuiltFile ( string fileName ) : void
ReactToChangedFile ( string fileName ) : void
ReactToChangedProperty ( string changedMember, object oldValue ) : void
ReactToGlueClose ( ) : void
ReactToGluxClose ( ) : void
ReactToGluxSave ( ) : void
ReactToGluxUnload ( bool isExiting ) : void
ReactToItemSelect ( TreeNode selectedTreeNode ) : void
ReactToLoadedGlux ( GlueProjectSave glueProjectSave, string fileName, Action displayCurrentStatusMethod ) : void
ReactToLoadedGluxEarly ( GlueProjectSave glueProjectSave ) : void
ReactToNamedObjectChangedValue ( string changedMember, object oldValue ) : void
ReactToNewFile ( ReferencedFileSave newRfs ) : void

Loops through all contained plugins and raises the appropriate events in response to a new file being created through the new file dialog (although it's possible new files could be created without that dialog in the future).

ReactToNewObject ( NamedObjectSave newObject ) : void
ReactToNewScreenCreated ( ScreenSave screen ) : void
ReactToPropertyGridRightClick ( System.Windows.Forms.PropertyGrid rightClickedPropertyGrid, ContextMenu menuToModify ) : void
ReactToStateNameChange ( IElement element, string oldName, string newName ) : void
ReactToStateRemoved ( IElement element, string stateName ) : void
ReactToSyncedProjectLoad ( ProjectBase projectBase ) : void
ReactToTreeViewRightClick ( TreeNode rightClickedTreeNode, ContextMenuStrip menuToModify ) : void
ReenablePlugin ( IPlugin pluginToReenable ) : void
RefreshCurrentElement ( ) : void
RefreshGlux ( ) : void
ResumeRelativeDirectory ( string function ) : void
SaveRelativeDirectory ( ) : void
SetTabs ( TabControl top, TabControl bottom, TabControl left, TabControl right, TabControl center, ToolbarControl toolbar ) : void
ShareBottomTabReference ( TabControl tabControl, PluginCategories pluginCategories ) : void
ShareCenterTabReference ( TabControl tabControl, PluginCategories pluginCategories ) : void
ShareLeftTabReference ( TabControl tabControl, PluginCategories pluginCategories ) : void
ShareMenuStripReference ( MenuStrip menuStrip, PluginCategories pluginCategories ) : void
ShareRightTabReference ( TabControl tabControl, PluginCategories pluginCategories ) : void
ShareTopTabReference ( TabControl tabControl, PluginCategories pluginCategories ) : void
ShowMostRecentTabFor ( TabControl tabControl ) : void
TryAddContainedObjects ( string sourceFile, List listToAddTo ) : bool
TryCopyFile ( string sourceFile, string targetFile ) : bool
TryHandleException ( Exception exception ) : bool
UninstallPlugins ( ) : void
WasExceptionCausedByPlugin ( Exception exception, PluginContainer plugin ) : bool

Method Details

AddDirectoriesForInstance() protected method

protected AddDirectoriesForInstance ( List pluginDirectories ) : void
pluginDirectories List
return void

CompilePluginError() protected method

protected CompilePluginError ( string problem ) : void
problem string
return void

CompilePluginOutput() protected method

protected CompilePluginOutput ( string problem ) : void
problem string
return void

GetTypeConverter() public static method

public static GetTypeConverter ( IElement container, NamedObjectSave instance, TypedMemberBase typedMember ) : TypeConverter
container IElement
instance FlatRedBall.Glue.SaveClasses.NamedObjectSave
typedMember TypedMemberBase
return System.ComponentModel.TypeConverter

HitBreakpoint() public static method

public static HitBreakpoint ( ) : void
return void

InstantiateAllListsAsEmpty() protected method

protected InstantiateAllListsAsEmpty ( ) : void
return void

PluginManager() public method

public PluginManager ( bool global ) : System
global bool
return System

ReceiveError() public static method

public static ReceiveError ( string output ) : void
output string
return void

ReceiveOutput() public static method

Receives output and passes it to any output plugins. If the PluginManager is not initialized yet then it will store off the output until it is finished with initialization, then it will pass all output to the output plugins.
public static ReceiveOutput ( string output ) : void
output string The output to print.
return void

SelectItemInCurrentFile() public static method

public static SelectItemInCurrentFile ( string objectInFile ) : void
objectInFile string
return void

StartAllPlugins() protected method

protected StartAllPlugins ( List pluginsToIgnore = null ) : void
pluginsToIgnore List
return void

WriteInstanceVariableAssignment() public static method

public static WriteInstanceVariableAssignment ( NamedObjectSave namedObject, ICodeBlock codeBlock, InstructionSave instructionSave ) : void
namedObject FlatRedBall.Glue.SaveClasses.NamedObjectSave
codeBlock ICodeBlock
instructionSave InstructionSave
return void