啟動程式(已作廢)

識別碼:org.eclipse.debug.core.launchers

說明:這個延伸點已換成 launchConfigurationTypes 延伸點。在第 2.0 版中,這種類型的延伸項目已作廢,因此不加以處理。這個延伸點是用來提供啟動程式。 啟動程式負責起始一個除錯階段作業或執行程式,以及利用啟動管理程式來登錄結果。

配置標記:

   <!ELEMENT extension (launcher*)>

   <!ATTLIST extension
     point CDATA #REQUIRED
     id    CDATA #IMPLIED
     name  CDATA #IMPLIED
   >

   <!ELEMENT launcher EMPTY>

   <!ATTLIST launcher
      id          CDATA #REQUIRED
     class       CDATA #REQUIRED
     modes       CDATA #REQUIRED
      label       CDATA #REQUIRED
     wizard      CDATA #IMPLIED
     public      (true | false)
     description CDATA #IMPLIED
     perspective CDATA #IMPLIED
      icon        CDATA #IMPLIED
   >

範例:以下是啟動程式延伸點的範例:

   <extension
      point = "org.eclipse.debug.core.launchers"> 
         <launcher 
             id = "com.example.ExampleLauncher"
             class = "com.example.launchers.ExampleLauncher" 
             modes = "run, debug"
        label = "Example Launcher"
      wizard = "com.example.launchers.ui.ExampleLaunchWizard"     
      public = "true"
      description = "Launches example programs"
      perspective= "com.example.JavaPerspective">  
         </launcher> 
   </extension> 

在上述範例中,指定的啟動程式支援 run 和 debug 除錯。 在順利完成啟動之後,除錯 UI 將切換至 Java 視景。 當除錯 UI 顯示一個可選擇的啟動程式清單給使用者時,"Example Launcher" 將顯示成其中一個選項,其說明為 "Launches example programs",而且 com.example.launchers.ui.ExampleLaunchWizard 所 指定的精靈將用來配置任何啟動特有的詳細資料。

API 資訊:class 屬性值必須是實作介面 org.eclipse.debug.core.ILauncherDelegate 之 Java 類別的完整類別名稱。wizard 屬性值必須是實作 org.eclipse.debug.ui.ILaunchWizard 之 Java 類別的完整類別名稱。

Copyright (c) 2000, 2003 IBM Corporation and others. All Rights Reserved.