說明:當組件(檢視畫面或編輯器)在視景中開啟,這個延伸點用來定義應新增至視景中的動作集。在編輯器的實例中,當編輯器是現行的編輯器仍然可見到動作集。在檢視畫面的實例中,當檢視畫面是作用中的組件,檢視畫面必須為可見的。
配置標記:
<!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>在上面的範例中,檢視畫面或編輯器與重構動作集相關聯。
API 資訊: 使用者可能使用自訂視景對話框置換這些關聯。不管這些關聯,使用者關閉的動作集不再出現,而使用者開啟的動作集一定可見。
Copyright (c) 2002 IBM Corporation and others.
All rights reserved.
這個程式和伴隨的素材可以根據伴隨這個分送,而且可在 http://www.eclipse.org/legal/cpl-v10.html 中取得的 Common Public License v1.0 的條款來使用