起動構成コンパレーター

ID: org.eclipse.debug.core.launchConfigurationComparators

説明: この拡張ポイントは、特定の起動構成属性を比較するために構成可能なメカニズムを提供します。 一般に、起動構成属性の等価性は、java.lang.Object.equals(Object) のデフォルト・インプリメンテーションによって比較できます。 ただし、特別な処理が必要な属性は、この拡張ポイントをインプリメントする必要があります。 例えば属性が XML として保管されている場合、等しい属性を表す 2 つのストリングが異なる空白フォーマット設定になることが考えられます。

構成マークアップ:

   <!ELEMENT extension (launchConfigurationComparator*)>

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

   <!ELEMENT launchConfigurationComparator EMPTY>

   <!ATTLIST launchConfigurationComparator
     id        CDATA #REQUIRED
     attribute CDATA #REQUIRED
     class     CDATA #REQUIRED
   >

例: 起動構成コンパレーター拡張ポイントの例を以下に示します。

 <extension point="org.eclipse.debug.core.launchConfigurationComparators">
  <launchConfigurationComparator
   id="com.example.ExampleIdentifier"
   attribute="com.example.ExampleAttributeName"
   class="com.example.ComparatorImplementation">
  </launchConfigurationComparator>
</extension>

上の例では、指定された起動構成コンパレーター型は、名前 com.example.ExampleAttributeName をキーにした属性の等価性を比較するときに照会されます。

API 情報: 属性 class の値は、インターフェース java.util.Comparator をインプリメントする Java クラスの完全修飾名でなければなりません。

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