실행 구성 비교기

ID: org.eclipse.debug.core.launchConfigurationComparators

설명: 이 확장점은 실행 구성의 특정 속성을 비교하는 구성 가능한 메커니즘을 제공합니다. 일반적으로 실행 구성 속성은 java.lang.Object.equals(Object)의 기본 구현을 통해 동일성을 비교할 수 있습니다. 그러나 특수 처리가 필요한 속성은 이 확장점을 구현해야 합니다. 예를 들어 속성이 XML로 저장될 때 같은 속성을 표시하는 두 문자열의 공백 형식이 다를 수 있습니다.

구성 마크업:

   <!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.