<!ELEMENT extension (actionSetPartAssociation*)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT actionSetPartAssociation (part*)>
<!ATTLIST actionSetPartAssociation
targetID CDATA #REQUIRED>
<!ELEMENT part EMPTY>
<!ATTLIST part
id CDATA #REQUIRED>
在上面的示例中,视图或编辑器与重构操作集相关联。<extension point=
"org.eclipse.ui.actionSetPartAssociations"
>
<actionSetPartAssociation targetID=
"org.eclipse.jdt.ui.refactoring.actionSet"
>
<part id=
"org.eclipse.jdt.ui.PackageExplorer"
/>
<part id=
"org.eclipse.jdt.ui.CompilationUnitError"
/>
</actionSetPartAssociation>
</extension>
Copyright (c) 2002, 2006 IBM Corporation and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html