C# 클래스 RIM.VSNDK_Package.VSNDK_PackagePackage

상속: Microsoft.VisualStudio.Shell.Package
파일 보기 프로젝트 열기: blackberry/VSPlugin 1 사용 예제들

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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.

메소드 상세

GetAvailableAPIList() 공개 메소드

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

GetInstalledAPIList() 공개 메소드

Get list of installed APIs
public GetInstalledAPIList ( ) : void
리턴 void

GetInstalledSimulatorList() 공개 메소드

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

GetSimulatorList() 공개 메소드

Retrieve list of Available Simulators
public GetSimulatorList ( ) : bool
리턴 bool

Initialize() 보호된 메소드

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
리턴 void

IsAPIInstalled() 공개 메소드

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

OnBuildBegin() 공개 메소드

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.
리턴 void

OnBuildDone() 공개 메소드

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.
리턴 void

VSNDK_PackagePackage() 공개 메소드

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
리턴 System