C# Class RIM.VSNDK_Package.EditorPane

Inheritance: Microsoft.VisualStudio.Shell.WindowPane, IOleComponent, IVsDeferredDocView, IVsLinkedUndoClient
Show file Open project: blackberry/VSPlugin Class Usage Examples

Public Methods

Method Description
EditorPane ( Microsoft.VisualStudio.Shell.ServiceProvider service, VSNDK_PackagePackage package, string fileName, IVsTextLines textBuffer ) : System

Constructor that calls the Microsoft.VisualStudio.Shell.WindowPane constructor then our initialization functions.

OnInterveningUnitBlockingLinkedUndo ( ) : int

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Initialize ( ) : void
OnClose ( ) : void

Event on close of the editor pane

Private Methods

Method Description
AddCommand ( IMenuCommandService mcs, System.Guid menuGroup, int cmdID, EventHandler commandEvent, EventHandler queryEvent ) : void

Helper function used to add commands using IMenuCommandService

GetResourceString ( string resourceName ) : string

This method loads a localized string based on the specified resource.

IOleComponent ( uint dwWhich, uint dwReserved ) : IntPtr
IOleComponent ( MSG pMsg ) : int
IOleComponent ( int fPromptUser ) : int
IOleComponent ( uint grfidlef ) : int
IOleComponent ( uint uReason, IntPtr pvLoopData, MSG pMsgPeeked ) : int
IOleComponent ( uint dwReserved, uint message, IntPtr wParam, IntPtr lParam ) : int
IOleComponent ( ) : void
IOleComponent ( IOleComponent pic, int fSameComponent, OLECRINFO pcrinfo, int fHostIsActivating, OLECHOSTINFO pchostinfo, uint dwReserved ) : void
IOleComponent ( int fActive, uint dwOtherThreadID ) : void
IOleComponent ( uint uStateID, int fEnter ) : void
IVsDeferredDocView ( System.Guid &pGuidCmdId ) : int

Assigns out parameter with the Guid of the EditorFactory.

IVsDeferredDocView ( IntPtr &ppUnkDocView ) : int
NewWindow ( ) : void

Method to create a new windows

NotifyDocChanged ( ) : void

Gets an instance of the RunningDocumentTable (RDT) service which manages the set of currently open documents in the environment and then notifies the client that an open document has changed

OnNewWindow ( object sender, EventArgs e ) : void

Create a new window

OnQueryNewWindow ( object sender, EventArgs e ) : void

On create of new window

OnQueryViewCode ( object sender, EventArgs e ) : void
OnViewCode ( object sender, EventArgs e ) : void

Event that fires on view of code

RegisterIndependentView ( bool subscribe ) : void

Registers an independent view with the IVsTextManager so that it knows the user is working with a view over the text buffer. This will trigger the text buffer to prompt the user whether to reload the file if it is edited outside of the environment.

ViewCode ( ) : void

Method to viewcode

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
return void

EditorPane() public method

Constructor that calls the Microsoft.VisualStudio.Shell.WindowPane constructor then our initialization functions.
public EditorPane ( Microsoft.VisualStudio.Shell.ServiceProvider service, VSNDK_PackagePackage package, string fileName, IVsTextLines textBuffer ) : System
service Microsoft.VisualStudio.Shell.ServiceProvider
package VSNDK_PackagePackage Our Package instance.
fileName string
textBuffer IVsTextLines
return System

Initialize() protected method

protected Initialize ( ) : void
return void

OnClose() protected method

Event on close of the editor pane
protected OnClose ( ) : void
return void

OnInterveningUnitBlockingLinkedUndo() public method

public OnInterveningUnitBlockingLinkedUndo ( ) : int
return int