C# Class Eto.Addin.VisualStudio.Editor.EditorFactory

Inheritance: IVsEditorFactory, IDisposable
Exibir arquivo Open project: picoe/Eto

Public Methods

Method Description
Close ( ) : int
Dispose ( ) : void

Since we create a ServiceProvider which implements IDisposable we also need to implement IDisposable to make sure that the ServiceProvider's Dispose method gets called.

EditorFactory ( EtoAddinPackage package ) : System
GetReferences ( EnvDTE project ) : IEnumerable
GetService ( Type serviceType ) : object
MapLogicalView ( System.Guid &rguidLogicalView, string &pbstrPhysicalView ) : int
SetSite ( Microsoft psp ) : int
ToHierarchy ( EnvDTE project ) : IVsHierarchy
ToVsProject ( EnvDTE project ) : IVsProject

Private Methods

Method Description
CreateEditorInstance ( uint grfCreateDoc, string pszMkDocument, string pszPhysicalView, IVsHierarchy pvHier, uint itemid, System punkDocDataExisting, System &ppunkDocView, System &ppunkDocData, string &pbstrEditorCaption, System.Guid &pguidCmdUI, int &pgrfCDW ) : int
EditorFactory ( ) : System
GetAssemblyPath ( EnvDTE vsProject ) : string
GetTextBuffer ( IntPtr punkDocDataExisting, string fileName, IVsProject project ) : IVsTextLines

Method Details

Close() public method

public Close ( ) : int
return int

Dispose() public method

Since we create a ServiceProvider which implements IDisposable we also need to implement IDisposable to make sure that the ServiceProvider's Dispose method gets called.
public Dispose ( ) : void
return void

EditorFactory() public method

public EditorFactory ( EtoAddinPackage package ) : System
package EtoAddinPackage
return System

GetReferences() public static method

public static GetReferences ( EnvDTE project ) : IEnumerable
project EnvDTE
return IEnumerable

GetService() public method

public GetService ( Type serviceType ) : object
serviceType System.Type
return object

MapLogicalView() public method

public MapLogicalView ( System.Guid &rguidLogicalView, string &pbstrPhysicalView ) : int
rguidLogicalView System.Guid
pbstrPhysicalView string
return int

SetSite() public method

public SetSite ( Microsoft psp ) : int
psp Microsoft
return int

ToHierarchy() public static method

public static ToHierarchy ( EnvDTE project ) : IVsHierarchy
project EnvDTE
return IVsHierarchy

ToVsProject() public static method

public static ToVsProject ( EnvDTE project ) : IVsProject
project EnvDTE
return IVsProject