| <?xml version='1.0' encoding='UTF-8'?>
|
| <!-- Schema file written by PDE -->
|
| <schema targetNamespace="org.eclipse.ui">
|
| <annotation>
|
| <appInfo>
|
| <meta.schema plugin="org.eclipse.ui" id="views" name="Views"/>
|
| </appInfo>
|
| <documentation>
|
| This extension point is used to define additional views |
| for the workbench. A view is a visual component |
| within a workbench page. It is typically used to |
| navigate a hierarchy of information (like the workspace), |
| open an editor, or display properties for |
| the active editor. The user can make a view |
| visible from the View menu or close it from the |
| view local title bar. |
| <p> |
| In order to reduce the visual clutter in the Show View Dialog, views should be grouped using categories.
|
| </documentation>
|
| </annotation>
|
|
|
| <element name="extension">
|
| <complexType>
|
| <choice minOccurs="0" maxOccurs="unbounded">
|
| <element ref="category"/>
|
| <element ref="view"/>
|
| </choice>
|
| <attribute name="point" type="string" use="required">
|
| <annotation>
|
| <documentation>
|
| a fully qualified identifier of the target extension point
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| <attribute name="id" type="string">
|
| <annotation>
|
| <documentation>
|
| an optional identifier of the extension instance
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| <attribute name="name" type="string">
|
| <annotation>
|
| <documentation>
|
| an optional name of the extension instance
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| </complexType>
|
| </element>
|
|
|
| <element name="category">
|
| <annotation>
|
| <appInfo>
|
| <meta.element labelAttribute="name"/>
|
| </appInfo>
|
| </annotation>
|
| <complexType>
|
| <attribute name="id" type="string" use="required">
|
| <annotation>
|
| <documentation>
|
| a unique name that will be used to identify this category
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| <attribute name="name" type="string" use="required">
|
| <annotation>
|
| <documentation>
|
| a translatable name that will be used in the UI for this category
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| <attribute name="parentCategory" type="string">
|
| <annotation>
|
| <documentation>
|
| an optional path composed of category IDs separated by '/'. This |
| attribute provides for creating category hierarchy.
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| </complexType>
|
| </element>
|
|
|
| <element name="view">
|
| <annotation>
|
| <appInfo>
|
| <meta.element labelAttribute="name" icon="icon"/>
|
| </appInfo>
|
| </annotation>
|
| <complexType>
|
| <attribute name="id" type="string" use="required">
|
| <annotation>
|
| <documentation>
|
| a unique name that will be used to identify this view
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| <attribute name="name" type="string" use="required">
|
| <annotation>
|
| <documentation>
|
| a translatable name that will be used in the UI for this view
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| <attribute name="category" type="string">
|
| <annotation>
|
| <documentation>
|
| an optional attribute that is composed of the category IDs separated |
| by '/'. Each referenced category must exist prior to being referenced |
| in this attribute.
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| <attribute name="class" type="string" use="required">
|
| <annotation>
|
| <documentation>
|
| a fully qualified name of the class the implements |
| <samp>org.eclipse.ui.IViewPart</samp>. A common practice |
| is to subclass <samp>org.eclipse.ui.part.ViewPart</samp> |
| in order to inherit the default functionality.
|
| </documentation>
|
| <appInfo>
|
| <meta.attribute kind="java" basedOn="org.eclipse.ui.part.ViewPart"/>
|
| </appInfo>
|
| </annotation>
|
| </attribute>
|
| <attribute name="icon" type="string">
|
| <annotation>
|
| <documentation>
|
| a relative name of the icon that will |
| be associated with the view.
|
| </documentation>
|
| <appInfo>
|
| <meta.attribute kind="resource"/>
|
| </appInfo>
|
| </annotation>
|
| </attribute>
|
| <attribute name="fastViewWidthRatio" type="string">
|
| <annotation>
|
| <documentation>
|
| the percentage of the width of the workbench that the view will take up as an active fast view. |
| This must be defined as a floating point value and lie between 0.05 and 0.95. |
| If no value is supplied, a default ratio will be used.
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| </complexType>
|
| </element>
|
|
|
| <annotation>
|
| <appInfo>
|
| <meta.section type="examples"/>
|
| </appInfo>
|
| <documentation>
|
| The following is an example of the extension point: |
| <p> |
| <pre> |
| <extension point="org.eclipse.ui.views"> |
| <category |
| id="com.xyz.views.XYZviews" |
| name="XYZ"> |
| </category> |
| <view |
| id="com.xyz.views.XYZView" |
| name="XYZ View" |
| category="com.xyz.views.XYZviews" |
| class="com.xyz.views.XYZView" |
| icon="icons/XYZ.gif"> |
| </view> |
| </extension> |
| </pre> |
| </p>
|
| </documentation>
|
| </annotation>
|
|
|
| <annotation>
|
| <appInfo>
|
| <meta.section type="apiInfo"/>
|
| </appInfo>
|
| <documentation>
|
| The value of the <samp>class</samp> attribute must be a |
| fully qualified name of the class that implements |
| <samp>org.eclipse.ui.IViewPart</samp>. It is common |
| practice to subclass <samp>org.eclipse.ui.part.ViewPart</samp> |
| when developing a new view.
|
| </documentation>
|
| </annotation>
|
|
|
| <annotation>
|
| <appInfo>
|
| <meta.section type="implementation"/>
|
| </appInfo>
|
| <documentation>
|
| The workbench provides a number of standard views including Navigator, Properties, Outline and Tasks. From the user point of view, these views are no different from any other view provided by the plug-ins. All the views can be shown from the "Show View" submenu of the "Window" menu. The position of a view is persistent: it is saved when the view is closed and restored when the view is reopened in a single session. The position is also persisted between workbench sessions.
|
| </documentation>
|
| </annotation>
|
|
|
| <annotation>
|
| <appInfo>
|
| <meta.section type="copyright"/>
|
| </appInfo>
|
| <documentation>
|
| <p> |
| Copyright (c) 2002 IBM Corporation and others. |
| All rights reserved. This program and the accompanying materials are made available under the terms of the Common Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/cpl-v10.html
|
| </documentation>
|
| </annotation>
|
|
|
| </schema>
|