<!ELEMENT extension (copyParticipant*)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT copyParticipant (enablement)>
<!ATTLIST copyParticipant
id CDATA #REQUIRED
name CDATA #REQUIRED
class CDATA #REQUIRED
processOnCancel CDATA #IMPLIED>
<!ELEMENT enablement (not , and , or , instanceof , test , systemTest , equals , count , with , resolve , adapt , iterate)*>
일반 루트 요소. 이 요소는 확장점 내에서 Enablement 표현식을 정의하는 데 사용될 수 있습니다. Enablement 표현식의 하위는 and 연산자를 사용하여 결합됩니다.
<!ELEMENT not (not | and | or | instanceof | test | systemTest | equals | count | with | resolve | adapt | iterate)>
이 요소는 해당 하위 요소 표현식 평가 결과에서 NOT 연산을 나타냅니다.
<!ELEMENT and (not , and , or , instanceof , test , systemTest , equals , count , with , resolve , adapt , iterate)*>
이 요소는 모든 해당 하위 요소 표현식 평가 결과에서 AND 연산을 나타냅니다.
<!ELEMENT or (not , and , or , instanceof , test , systemTest , equals , count , with , resolve , adapt , iterate)*>
이 요소는 모든 해당 하위 요소 표현식 평가 결과에서 OR 연산을 나타냅니다.
<!ELEMENT instanceof EMPTY>
<!ATTLIST instanceof
value CDATA #REQUIRED>
이 요소는 초점이 된 오브젝트의 instanceof 검사를 수행하는 데 사용됩니다. 오브젝트 유형이 속성 값으로 지정된 유형의 하위 유형인 경우 표현식은 EvaluationResult.TRUE를 리턴합니다. 그렇지 않으면 EvaluationResult.FALSE를 리턴합니다.
<!ELEMENT test EMPTY>
<!ATTLIST test
property CDATA #REQUIRED
args CDATA #IMPLIED
value CDATA #IMPLIED>
이 요소는 초점이 된 오브젝트의 특성 상태를 평가하는 데 사용됩니다. 특성 테스터 확장점을 사용하여 테스트 가능한 특성 세트를 확장할 수 있습니다. 실제 테스트를 수행하는 특성 테스터가 아직 로드되지 않은 경우 테스트 표현식은 EvaluationResult.NOT_LOADED를 리턴합니다.
<!ELEMENT systemTest EMPTY>
<!ATTLIST systemTest
property CDATA #REQUIRED
value CDATA #REQUIRED>
System.getProperty 메소드를 호출하여 시스템 특성을 테스트한 다음 그 결과를 값 속성을 통해 지정된 값과 비교합니다.
<!ELEMENT equals EMPTY>
<!ATTLIST equals
value CDATA #REQUIRED>
이 요소는 초점이 된 오브젝트의 equals 검사를 수행하는 데 사용됩니다. 오브젝트가 속성 값으로 제공된 값과 동일한 경우 표현식은 EvaluationResult.TRUE를 리턴합니다. 그렇지 않으면 EvaluationResult.FALSE를 리턴합니다.
<!ELEMENT count EMPTY>
<!ATTLIST count
value CDATA #REQUIRED>
이 요소는 콜렉션에 있는 요소의 수를 테스트하는 데 사용됩니다.
<!ELEMENT with (not , and , or , instanceof , test , systemTest , equals , count , with , resolve , adapt , iterate)*>
<!ATTLIST with
variable CDATA #REQUIRED>
이 요소는 모든 하위 요소를 검사해야 하는 오브젝트를 제공된 변수에 의해 참조되는 오브젝트로 변경합니다. 변수를 분석할 수 없는 경우, 표현식은 평가 중에 ExpressionException을 발생시킵니다. with 표현식의 하위는 and 연산자를 사용하여 결합됩니다.
<!ELEMENT resolve (not , and , or , instanceof , test , systemTest , equals , count , with , resolve , adapt , iterate)*>
<!ATTLIST resolve
variable CDATA #REQUIRED
args CDATA #IMPLIED>
이 요소는 모든 하위 요소를 검사해야 하는 오브젝트를 제공된 변수에 의해 참조되는 오브젝트로 변경합니다. 변수를 분석할 수 없는 경우, 표현식은 평가 중에 ExpressionException을 발생시킵니다. with 표현식의 하위는 and 연산자를 사용하여 결합됩니다.
<!ELEMENT adapt (not , and , or , instanceof , test , systemTest , equals , count , with , resolve , adapt , iterate)*>
<!ATTLIST adapt
type CDATA #REQUIRED>
이 요소는 초점이 된 오브젝트를 속성 유형에 의해 지정된 유형으로 적응시키는 데 사용합니다. 참조된 유형 또는 어댑터가 아직 로드되지 않은 경우 표현식은 로드되지 않은 상태를 리턴합니다. 유형 이름이 전혀 존재하지 않을 경우 평가 중에 ExpressionException을 발생시킵니다. Adapt 표현식의 하위는 and 연산자를 사용하여 결합됩니다.
<!ELEMENT iterate (not , and , or , instanceof , test , systemTest , equals , count , with , resolve , adapt , iterate)*>
<!ATTLIST iterate
operator (or|and) >
이 요소는 Java.util.Collection 유형의 변수를 반복하는 데 사용됩니다. 초점이 된 오브젝트가 java.util.Collection 유형이 아닐 경우, 표현식은 평가 중에 ExpressionException을 발생시킵니다.
<copyParticipant id=
"org.eclipse.samples.copyParticipant"
name=
"%CopyFileParticipant.name"
class=
"org.eclipse.samples.CopyFileParticipant"
>
<enablement>
<with variable=
"affectedNatures"
>
<iterate operator=
"or"
>
<equals value=
"org.eclipse.jdt.core.javanature"
/>
</iterate>
</with>
<with variable=
"element"
>
<instanceof value=
"org.eclipse.core.resources.IFile"
/>
</with>
</enablement>
</copyParticipant>
org.eclipse.ltk.core.refactoring.participants.CopyParticipant를 확장해야 합니다.
Copyright (c) 2001, 2005 IBM Corporation and others.
All rights
reserved. 본 프로그램 및 본 프로그램에 동봉되는 자료는 본 배포물에 동봉되는 Eclipse Public License v1.0의 조항에 따라 사용해야 하며
웹 사이트(http://www.eclipse.org/legal/epl-v10.html)에서도 관련 사항을 참조할 수 있습니다.