구성원 삭제

org.eclipse.ltk.core.refactoring.deleteParticipants

3.0

이 확장점은 구성원 삭제 리팩토링을 정의하는 데 사용됩니다. 이 표현식의 읽기 프로그램은 <with variable="..."> 표현식 요소를 통해 참조될 수 있는 다음의 사전정의된 변수를 제공합니다. 표현식 평가 중 사용되는 기본 변수는 요소 변수에 바인드됩니다.

<!ELEMENT extension (deleteParticipant*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT deleteParticipant (enablement)>

<!ATTLIST deleteParticipant

id    CDATA #REQUIRED

name  CDATA #REQUIRED

class CDATA #REQUIRED>


아래의 예제는 삭제 구성원을 정의합니다. 이 구성원은 리팩토링의 영향을 받는 프로젝트 중 하나가 Java 데이터를 갖고 있는 경우와 삭제될 요소가 ICompilationUnit 유형일 때 사용 가능합니다.

<deleteParticipant id=

"org.myCompany.deleteParticipant"

name=

"%DeleteParticipant.name"

class=

"org.myCompany.Participant"

>

<enablement>

<with variable=

"affectedNatures"

>

<iterate operator=

"or"

>

<equals value=

"org.eclipse.jdt.core.javanature"

/>

</iterate>

</with>

<with variable=

"element"

>

<instanceof value=

"org.eclipse.jdt.core.ICompilationUnit"

/>

</with>

</enablement>

</deleteParticipant>

제공된 클래스는 org.eclipse.ltk.core.refactoring.participants.DeleteParticipant를 확장해야 합니다.