Jump to: navigation, search

Difference between revisions of "FAQ Can my extension point schema contain nested elements?"

m
 
Line 1: Line 1:
Yes. The extension point schema supports top-level elements with attributes.
+
Yes. The extension point schema supports top-level elements with attributes. Each attribute can refer to another element in the schema. The Schema Editor has a difficult job indicating this, but the nesting can be observed in Figure 4.4 that shows an example that uses the <tt>org.eclipse.ui.actionSets</tt> extension point. The schema for this extension point explicitly defines the grammar rules for nesting one or more menus and actions into one action set (Figure 4.5). A similar hierarchy can be used for your own extension point schemas.
Each attribute can refer to another element in the schema.  
+
The Schema Editor has a difficult job indicating this, but the
+
nesting can be observed in Figure 4.4 that shows an example that uses the
+
<tt>org.eclipse.ui.actionSets</tt> extension point.
+
The schema for this extension point explicitly defines the grammar rules for
+
nesting one or more menus and actions into one action set (Figure 4.5).
+
A similar hierarchy can be used for your own extension point schemas.
+
 
+
 
+
  
 
&nbsp;&nbsp;&nbsp;&nbsp;<img src=../images/actionSets.png>
 
&nbsp;&nbsp;&nbsp;&nbsp;<img src=../images/actionSets.png>
 
+
&nbsp;&nbsp;&nbsp;&nbsp;'''Figure 4.4'''&nbsp;&nbsp; Nested elements in extension point schema
 
+
&nbsp;&nbsp;&nbsp;&nbsp;'''Figure 4.4'''&nbsp;&nbsp;
+
Nested elements in extension point schema
+
 
+
 
+
 
+
 
+
  
 
&nbsp;&nbsp;&nbsp;&nbsp;<img src=../images/schema.png>
 
&nbsp;&nbsp;&nbsp;&nbsp;<img src=../images/schema.png>
 
+
&nbsp;&nbsp;&nbsp;&nbsp;'''Figure 4.5'''&nbsp;&nbsp; Extension point grammar rules
 
+
&nbsp;&nbsp;&nbsp;&nbsp;'''Figure 4.5'''&nbsp;&nbsp;
+
Extension point grammar rules
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
  
 
== See Also: ==
 
== See Also: ==
 +
*[[FAQ What is an extension point schema?]]
  
 
+
{{Template:FAQ_Tagline}}
[[FAQ_What_is_an_extension_point_schema%3F]]
+
 
+
<hr><font size=-2>This FAQ was originally published in [http://www.eclipsefaq.org Official Eclipse 3.0 FAQs]. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the [http://www.eclipse.org/legal/epl-v10.html Eclipse Public License v1.0].</font>
+

Latest revision as of 20:06, 15 June 2006

Yes. The extension point schema supports top-level elements with attributes. Each attribute can refer to another element in the schema. The Schema Editor has a difficult job indicating this, but the nesting can be observed in Figure 4.4 that shows an example that uses the org.eclipse.ui.actionSets extension point. The schema for this extension point explicitly defines the grammar rules for nesting one or more menus and actions into one action set (Figure 4.5). A similar hierarchy can be used for your own extension point schemas.

    <img src=../images/actionSets.png>     Figure 4.4   Nested elements in extension point schema

    <img src=../images/schema.png>     Figure 4.5   Extension point grammar rules

See Also:


This FAQ was originally published in Official Eclipse 3.0 FAQs. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the Eclipse Public License v1.0.