This extension point supports the <enablement>
element.
The default variable is the element to be deleted.
Defined variables for <with>
expressions are:
java.lang.Object
; the element to be deleted (same as the default variable)java.util.List<String>
; the natures of all projects affected by the refactoringjava.lang.String
; the id of the refactoring processor that will own the participant
<!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>
<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
Copyright (c) 2001, 2013 IBM Corporation and others.
This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html/
SPDX-License-Identifier: EPL-2.0