C# Class WhereAmI2015.WhereAmI

Adornment class that draws a square box in the top right hand corner of the viewport
Mostrar archivo Open project: tanathos/WhereAmI2015

Public Methods

Method Description
GetContainingProject ( string fileName ) : Project

Given a filename, retrieve the Project container

WhereAmI ( IWpfTextView view, IWhereAmISettings settings ) : System

Initializes a new instance of the WhereAmI class. Creates a square image and attaches an event handler to the layout changed event that adds the the square in the upper right-hand corner of the TextView via the adornment layer

onSizeChange ( ) : void

Private Methods

Method Description
GetFolderDiffs ( string filePath, string folderPath ) : string

Given 2 absolute paths, returns the difference in folder structure. (The first should be nested in the second)

Method Details

GetContainingProject() public static method

Given a filename, retrieve the Project container
public static GetContainingProject ( string fileName ) : Project
fileName string
return Project

WhereAmI() public method

Initializes a new instance of the WhereAmI class. Creates a square image and attaches an event handler to the layout changed event that adds the the square in the upper right-hand corner of the TextView via the adornment layer
public WhereAmI ( IWpfTextView view, IWhereAmISettings settings ) : System
view IWpfTextView The upon which the adornment will be drawn
settings IWhereAmISettings The injected by the provider
return System

onSizeChange() public method

public onSizeChange ( ) : void
return void