(XML 架構瀏覽器的內容功能表) Context menus (XML Schema Explorer)

當您以滑鼠右鍵按一下某個物件時,會出現快顯功能表。A context menu is the menu that appears when you right-click on something. 下列操作功能表項目用於執行結構描述特定搜尋和其他作業。The following context menu items are used to perform schema-specific searches and other operations.

節點類型:架構集Node type: Schema set

下表描述結構描述集節點可用的選項。The following table describes the options that are available for a schema set node.

選項Option 描述Description
顯示最可能的根項目Show Most Likely Root Elements 尋找並反白顯示除了本身以外沒有其他全域項目參考的所有全域項目。Finds and highlights all global elements that are not referenced from global elements other than themselves.
顯示全域型別Show Global Types 尋找並反白顯示結構描述集中的所有全域型別。Finds and highlights all global types in the schema set.
顯示全域項目Show Global Elements 尋找並反白顯示結構描述集中的所有全域項目。Finds and highlights all global elements in the schema set.
屬性視窗Properties Window 開啟 [ 屬性 ] 視窗 (如果尚未開啟) 。Opens the Properties window (if it is not already open). 這個視窗會顯示與節點有關的資訊。This window displays information about the node.

節點類型:命名空間Node type: Namespace

下表描述命名空間節點可用的選項。The following table describes the options that are available for a namespace node.

選項Option 描述Description
顯示所有對內參考Show All Inbound References 尋找並反白顯示匯入選取之命名空間的檔案。Finds and highlights files that import the selected namespace.
顯示所有對外參考Show All Outbound References 針對選取之命名空間內的每個檔案,尋找並反白顯示下列項目:For every file in the selected namespace, finds and highlights the following:

-Import 語句中參考的所有命名空間,但沒有 schemaLocation 屬性。- All namespaces referenced in import statements without a schemaLocation attribute.
-命名空間中的所有檔案,但在匯 schemaLocation 入和包含語句的屬性中所指定的檔案除外。- All files in namespaces other than the selected one that are specified in the schemaLocation attribute in import and include statements.
顯示全域型別Show Global Types 尋找並反白顯示所選命名空間中的所有全域型別。Finds and highlights all global types in the selected namespace.
顯示全域項目Show Global Elements 尋找並反白顯示所選命名空間中的所有全域項目。Finds and highlights all global elements in the selected namespace.
屬性視窗Properties Window 開啟 [ 屬性 ] 視窗 (如果尚未開啟) 。Opens the Properties window (if it is not already open). 這個視窗會顯示與節點有關的資訊。This window displays information about the node.

節點類型: FileNode type: File

下表描述檔案節點可用的選項。The following table describes the options that are available for a file node.

選項Option 描述Description
顯示所有對內參考Show All Inbound References 尋找並反白顯示在 include 和 import 陳述式之 schemaLocation 屬性中指定選取檔案的所有檔案。Finds and highlights all files that specify the selected file in the schemaLocation attributes of their include and import statements.
顯示所有對外參考Show All Outbound References 尋找並反白顯示下列項目:Finds and highlights the following:

-所有 import 語句的 namespace 屬性中指定的所有命名空間都沒有 schemaLocation 屬性。- All namespaces specified in the namespace attributes of all import statements that do not have the schemaLocation attribute.
- schemaLocation 所有 import 和 include 語句之屬性中指定的所有檔案。- All files specified in the schemaLocation attributes of all import and include statements.
顯示全域型別Show Global Types 尋找並反白顯示此檔案中的所有全域型別。Finds and highlights all global types in this file.
顯示全域項目Show Global Elements 尋找並反白顯示此檔案中的所有全域項目。Finds and highlights all global elements in this file.
檢視程式碼View Code 在 XML 編輯器中,開啟包含所選節點的檔案。Opens the file that contains the selected node in the XML editor. 在 xml 架構瀏覽器中選取的專案也會在 XML 編輯器中選取。The item that is selected in the XML Schema Explorer will also be selected in the XML editor.
屬性視窗Properties Window 開啟 [ 屬性 ] 視窗 (如果尚未開啟) 。Opens the Properties window (if it is not already open). 這個視窗會顯示與節點有關的資訊。This window displays information about the node.

所有全域節點類型All global node types

下表描述所有全域節點可用的選項。The following table describes the options that are available for all global nodes.

選項Option 描述Description
在圖表檢視中顯示Show in Graph View 開啟圖表檢視。Opens the Graph View. 如果所選的節點不在工作空間中,請將其加入至工作空間並選取該節點。If the selected node is not in the workspace, adds it to the workspace and selects the node.
顯示在內容模型檢視中Show in Content Model View 開啟內容模型檢視。Opens the Content Model View. 如果所選的節點不在工作空間中,請將其加入至工作空間並選取該節點。If the selected node is not in the workspace, adds it to the workspace and selects the node.
檢視程式碼View Code 在 XML 編輯器中,開啟包含所選節點的檔案。Opens the file that contains the selected node in the XML editor. 在 xml 架構瀏覽器中選取的專案也會在 XML 編輯器中選取。The item that is selected in the XML Schema Explorer will also be selected in the XML editor.
屬性視窗Properties Window 開啟 [ 屬性 ] 視窗 (如果尚未開啟) 。Opens the Properties window (if it is not already open). 這個視窗會顯示與節點有關的資訊。This window displays information about the node.

節點類型:元素Node type: Element

除了上述的全域節點選項外,項目節點的操作功能表還包含下列選項:In addition to the global node options described above, the context menu for element nodes has the following options:

選項Option 描述Description
移至類型定義Go To Type Definition 瀏覽至選取之項目的型別定義。Navigates to the type definition of the selected element. 當用於此項目的型別是全域型別時,這個選項就會適用。This is applicable when the type that is used for the element is a global type.
移至原始項目Go To The Original Element 針對項目參考,瀏覽至此項目的實際定義。For element references, navigates to the actual definition of the element.
顯示所有參考Show All References 針對全域項目,尋找並反白顯示所選項目的所有參考 (具有 ref="selectedElement" 的項目)。For global elements, finds and highlights all references (elements that have ref="selectedElement") to the selected element.
顯示替代群組的成員Show Members Of Substitution Group 針對替代群組的標頭,尋找並反白顯示選取之項目屬於其成員之替代群組的成員的所有項目。For heads of a substitution group, finds and highlights all elements that are members of the substitution group of which the selected element is a member. 這個選項會顯示直接和間接參與者。This shows direct and indirect participants.
顯示替代群組標頭Show Substitution Group Heads 針對屬於替代群組之成員的全域項目,尋找並反白顯示選取之項目的所有直接和間接標頭,例如下列項目:For global elements that are members of a substitution group, finds and highlights all direct and indirect heads for the selected element, such as the following:

-在選取的元素上指定的替代群組標頭。- A substitution group head specified on the selected element.
-在其標頭元素上指定的替代群組標頭。- A substitution group head specified on its head element.
產生範例 XMLGenerate Sample XML 僅適用於全域項目。Available only for global elements. 針對全域項目產生範例 XML 檔案。Generates a sample XML file for the global element.

節點類型:全域類型Node type: Global types

除了上述的全域節點選項外,全域型別節點的操作功能表還有下列選項:In addition to the global node options described above, the context menu for global type nodes has the following options:

選項Option 描述Description
顯示基底型別Show Base Type 如果選取的型別衍生自全域型別,就會瀏覽至選取之型別的基底型別。If the selected type is derived from a global type, navigates to the base type of the selected type.
顯示所有參考Show All References 尋找並反白顯示選取之型別的所有參考。Finds and highlights all references to the selected type. 這包括選取的型別以及衍生自選取型別之型別的項目和屬性。This includes elements and attributes of the selected type and types derived from the selected type.
顯示所有衍生型別Show All Derived Types 尋找並反白顯示直接和間接衍生自選取之型別的所有型別。Finds and highlights all types that are directly and indirectly derived from the selected type.
顯示所有祖系Show All Ancestors 顯示所有父 (基底) 型別。Show all parent (base) types.

節點類型:屬性Node type: Attribute

除了上述的全域節點選項外,屬性節點的內容功能表還有下列選項:In addition to the global node options described above, the context menu for attribute nodes has the following options:

選項Option 描述Description
移至類型定義Go To Type Definition 當用於屬性的型別是全域型別時,就會瀏覽至選取之屬性的型別定義。When the type that is used for the attribute is a global type, navigates to the type definition of the selected attribute.
移至原始屬性Go To The Original Attribute 針對屬性參考,瀏覽至此屬性的實際定義。For attribute references, navigates to the actual definition of the attribute.
顯示所有參考Show All References 針對全域屬性,尋找並反白顯示所選屬性的所有參考 (其他具有 ref="selectedAttribute" 的屬性)。For global attributes, finds and highlights all references (other attributes that have ref="selectedAttribute") to the selected attribute.

節點類型:屬性群組Node type: Attribute group

除了上述的全域節點選項外,屬性群組節點的操作功能表還包含下列選項:In addition to the global node options described above, the context menu for attribute group nodes has the following options:

選項Option 描述Description
移至定義Go To Definition 針對參考,瀏覽至此屬性的實際定義。For references, navigates to the actual definition of the attribute.
顯示所有成員Show All Members 尋找並反白顯示屬性群組的所有成員。Finds and highlights all members of the attribute group.
顯示所有參考Show All References 尋找並反白顯示所選屬性群組的所有參考 (具有 ref="selectedAttributeGroup" 的屬性群組)。Finds and highlights all references (attribute groups that have ref="selectedAttributeGroup") to the selected attribute group.

節點類型:命名群組Node type: Named group

除了上述的全域節點選項外,具名群組節點的操作功能表還包含下列選項:In addition to the global node options described above, the context menu for named group nodes has the following options:

選項Option 描述Description
移至定義Go To Definition 針對參考,瀏覽至此屬性的實際定義。For references, navigates to the actual definition of the attribute.
顯示所有成員Show All Members 尋找並反白顯示具名群組的所有成員。Finds and highlights all members of the named group.
顯示所有參考Show All References 尋找並反白顯示所選群組的所有參考 (具有 ref="selectedGroup" 的群組)。Finds and highlights all references (groups that have ref="selectedGroup") to the selected group.

請參閱See also