C# Class RIM.VSNDK_Package.VSNDK_PackagePackage

Inheritance: Microsoft.VisualStudio.Shell.Package
ファイルを表示 Open project: blackberry/VSPlugin Class Usage Examples

Public Methods

Method Description
GetAvailableAPIList ( ) : bool

Retrieve list of API's from

GetInstalledAPIList ( ) : void

Get list of installed APIs

GetInstalledSimulatorList ( ) : bool

Retrieve a list of the installed runtimes on the PC.

GetSimulatorList ( ) : bool

Retrieve list of Available Simulators

IsAPIInstalled ( string version, string name ) : int

Check to see if API is installed

OnBuildBegin ( EnvDTE Scope, EnvDTE Action ) : void

This event is fired only when user wants to build, rebuild or clean the project.

OnBuildDone ( EnvDTE Scope, EnvDTE Action ) : void

This event is fired only when the build/rebuild/clean process ends.

VSNDK_PackagePackage ( ) : System

Default constructor of the package. Inside this method you can place any initialization code that does not require any Visual Studio service because at this point the package object is created but not sited yet inside Visual Studio environment. The place to do all the other initialization is the Initialize method.

Protected Methods

Method Description
Initialize ( ) : void

Initialization of the package; this method is called right after the package is sited, so this is the place where you can put all the initilaization code that rely on services provided by VisualStudio.

Private Methods

Method Description
APIListDataReceived ( object sender, System e ) : void

On Data Received event handler

BuildBar ( ) : bool

Identify the projects to be build and start the build process.

Built ( ) : void

Verify if the build process was successful. If so, start deploying the app.

Deployed ( ) : void

Get the process ID and launch an executable using the VSNDK debug engine.

ErrorDataReceived ( object sender, System e ) : void

On Error received event handler

IsBlackBerrySolution ( EnvDTE dte ) : bool

Check to see if current solution is configured with a BlackBerry Configuration.

IsSimulatorInstalled ( string version ) : bool

Check to see if Simulator is installed

LaunchDebugTarget ( string pidString ) : bool

Launch an executable using the VSNDK debug engine.

LaunchDebugTarget ( string pidString, string toolsPath, string publicKeyPath, string targetIP, string password, string executablePath ) : bool

Launch an executable using the VSNDK debug engine.

MenuItemCallback ( object sender, EventArgs e ) : void
SetNDKPath ( ) : void

Set the NDK path into the registry if not already set.

ShowDebugTokenWindow ( object sender, EventArgs e ) : void

This function is called when the user clicks the menu item that shows the tool window. See the Initialize method to see how the menu item is associated to this function using the OleMenuCommandService service and the MenuCommand class.

ShowSettingsWindow ( object sender, EventArgs e ) : void

This function is called when the user clicks the menu item that shows the tool window. See the Initialize method to see how the menu item is associated to this function using the OleMenuCommandService service and the MenuCommand class.

ShowToolWindow ( object sender, EventArgs e ) : void

This function is called when the user clicks the menu item that shows the tool window. See the Initialize method to see how the menu item is associated to this function using the OleMenuCommandService service and the MenuCommand class.

SimulatorListDataReceived ( object sender, System e ) : void

On Data Received event handler

checkDebugConfiguration ( ) : bool

Verify if the app configuration is Debug.

getPID ( DTE2 dte, string &pidString ) : bool

Get the PID of the launched native app by parsing text from the output window.

getPIDfromGDB ( string processName, string IP, string password, bool isSimulator, string toolsPath, string publicKeyPath ) : string
getProcessInfo ( DTE2 dte, string &pidString, string &toolsPath, string &publicKeyPath, string &targetIP, string &password, string &executablePath ) : bool

Get the PID of the launched native app by parsing text from the output window.

startDebugCommandEvents_AfterExecute ( string Guid, int ID, object CustomIn, object CustomOut ) : void

New Start Debug Command Events After Execution Event Handler.

startDebugCommandEvents_BeforeExecute ( string Guid, int ID, object CustomIn, object CustomOut, bool &CancelDefault ) : void

New Start Debug Command Events Before Execution Event Handler. Call the method responsible for building the app.

Method Details

GetAvailableAPIList() public method

Retrieve list of API's from
public GetAvailableAPIList ( ) : bool
return bool

GetInstalledAPIList() public method

Get list of installed APIs
public GetInstalledAPIList ( ) : void
return void

GetInstalledSimulatorList() public method

Retrieve a list of the installed runtimes on the PC.
public GetInstalledSimulatorList ( ) : bool
return bool

GetSimulatorList() public method

Retrieve list of Available Simulators
public GetSimulatorList ( ) : bool
return bool

Initialize() protected method

Initialization of the package; this method is called right after the package is sited, so this is the place where you can put all the initilaization code that rely on services provided by VisualStudio.
protected Initialize ( ) : void
return void

IsAPIInstalled() public method

Check to see if API is installed
public IsAPIInstalled ( string version, string name ) : int
version string Check version number
name string Check API name
return int

OnBuildBegin() public method

This event is fired only when user wants to build, rebuild or clean the project.
public OnBuildBegin ( EnvDTE Scope, EnvDTE Action ) : void
Scope EnvDTE Represents the scope of the build.
Action EnvDTE Represents the type of build action that is occurring, such as a build or a deploy action.
return void

OnBuildDone() public method

This event is fired only when the build/rebuild/clean process ends.
public OnBuildDone ( EnvDTE Scope, EnvDTE Action ) : void
Scope EnvDTE Represents the scope of the build.
Action EnvDTE Represents the type of build action that is occurring, such as a build or a deploy action.
return void

VSNDK_PackagePackage() public method

Default constructor of the package. Inside this method you can place any initialization code that does not require any Visual Studio service because at this point the package object is created but not sited yet inside Visual Studio environment. The place to do all the other initialization is the Initialize method.
public VSNDK_PackagePackage ( ) : System
return System