mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 14:15:23 +02:00
[cleanup] better use PDE capabilities for extension point editing
This commit is contained in:
parent
f3ec227b11
commit
e780290bec
7 changed files with 54 additions and 157 deletions
|
@ -46,6 +46,9 @@
|
|||
|
||||
<element name="archivehandler">
|
||||
<annotation>
|
||||
<appInfo>
|
||||
<meta.element labelAttribute="name"/>
|
||||
</appInfo>
|
||||
<documentation>
|
||||
(no description available)
|
||||
</documentation>
|
||||
|
|
|
@ -46,6 +46,9 @@
|
|||
|
||||
<element name="dynamicPopupMenuExtension">
|
||||
<annotation>
|
||||
<appInfo>
|
||||
<meta.element labelAttribute="name"/>
|
||||
</appInfo>
|
||||
<documentation>
|
||||
(no description available)
|
||||
</documentation>
|
||||
|
|
|
@ -113,6 +113,11 @@ and filters.
|
|||
<include schemaLocation="schema://org.eclipse.ui/schema/commonExpression.exsd"/>
|
||||
|
||||
<element name="extension">
|
||||
<annotation>
|
||||
<documentation>
|
||||
(no description available)
|
||||
</documentation>
|
||||
</annotation>
|
||||
<complexType>
|
||||
<sequence>
|
||||
<element ref="objectContribution" minOccurs="1" maxOccurs="unbounded"/>
|
||||
|
@ -142,6 +147,11 @@ and filters.
|
|||
</element>
|
||||
|
||||
<element name="objectContribution">
|
||||
<annotation>
|
||||
<documentation>
|
||||
(no description available)
|
||||
</documentation>
|
||||
</annotation>
|
||||
<complexType>
|
||||
<sequence>
|
||||
<element ref="visibility" minOccurs="0" maxOccurs="1"/>
|
||||
|
@ -167,7 +177,7 @@ all the actions defined in this objectContribution element.
|
|||
<p>
|
||||
This filter specifies a subsystem configuration id, such that these
|
||||
actions will only appear for remote resources returned from subsystems of the given subsystem configuration.
|
||||
This ID can be scalar, or it can be generic to match on multiple subsystem configuration IDs.
|
||||
This ID can be scalar, or it can be generic to match on multiple subsystem configuration IDs.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
|
@ -449,6 +459,9 @@ To do this, for the ID-part, specify one of the following IBM-supplied menu IDs:
|
|||
|
||||
<element name="action">
|
||||
<annotation>
|
||||
<appInfo>
|
||||
<meta.element labelAttribute="label" icon="icon"/>
|
||||
</appInfo>
|
||||
<documentation>
|
||||
Use this element to define an action, and where it will appear in the popup menu. The action
|
||||
defined here will only appear in a remote resource popup menu if the resource matches all the
|
||||
|
@ -477,6 +490,9 @@ as these are assigned for you. However, accelerator information is valid, as def
|
|||
An optional image icon for the popup menu. This is a .gif file, given with a path relative to your plugin
|
||||
directory.
|
||||
</documentation>
|
||||
<appInfo>
|
||||
<meta.attribute kind="resource"/>
|
||||
</appInfo>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="tooltip" type="string">
|
||||
|
|
|
@ -113,6 +113,9 @@ You can specify multiple values if you comma-separate them.
|
|||
|
||||
<element name="page">
|
||||
<annotation>
|
||||
<appInfo>
|
||||
<meta.element labelAttribute="name" icon="icon"/>
|
||||
</appInfo>
|
||||
<documentation>
|
||||
Identifies an individual property page contribution.
|
||||
</documentation>
|
||||
|
@ -148,6 +151,9 @@ Or better yet, extends one of the IBM-supplied base classes, described in the AP
|
|||
<documentation>
|
||||
A relative path to an icon that will be used in the UI in addition to the page name. Optional.
|
||||
</documentation>
|
||||
<appInfo>
|
||||
<meta.attribute kind="resource"/>
|
||||
</appInfo>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="subsystemconfigurationid" type="string">
|
||||
|
|
|
@ -48,6 +48,9 @@ This would be used by anyone who extends the Remote System Explorer, and offers
|
|||
|
||||
<element name="action">
|
||||
<annotation>
|
||||
<appInfo>
|
||||
<meta.element labelAttribute="label" icon="icon"/>
|
||||
</appInfo>
|
||||
<documentation>
|
||||
(no description available)
|
||||
</documentation>
|
||||
|
@ -88,6 +91,9 @@ Note this page will be shown as the root in the Preferences dialog, but it can b
|
|||
<documentation>
|
||||
A relative path to an icon that will be displayed in the menu, with the label. Optional
|
||||
</documentation>
|
||||
<appInfo>
|
||||
<meta.attribute kind="resource"/>
|
||||
</appInfo>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="tooltip" type="string">
|
||||
|
|
|
@ -72,6 +72,9 @@ subsystems.
|
|||
|
||||
<element name="configuration">
|
||||
<annotation>
|
||||
<appInfo>
|
||||
<meta.element labelAttribute="name" icon="icon"/>
|
||||
</appInfo>
|
||||
<documentation>
|
||||
This element defines a subsystem configuration to the Remote System Explorer framework.
|
||||
</documentation>
|
||||
|
@ -90,6 +93,9 @@ as a folder name for information contained by the subsystem configuration, or by
|
|||
<documentation>
|
||||
Name of the vendor supplying this subsystem configuration.
|
||||
</documentation>
|
||||
<appInfo>
|
||||
<meta.attribute translatable="true"/>
|
||||
</appInfo>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="icon" type="string" use="required">
|
||||
|
@ -98,6 +104,9 @@ as a folder name for information contained by the subsystem configuration, or by
|
|||
The icon to dipslay for subsystems of this configuration, when not connected.
|
||||
Specify the path of the .gif file, relative to your plugin directory.
|
||||
</documentation>
|
||||
<appInfo>
|
||||
<meta.attribute kind="resource"/>
|
||||
</appInfo>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="iconlive" type="string" use="required">
|
||||
|
@ -107,6 +116,9 @@ Specify the path of the .gif file, relative to your plugin directory.
|
|||
is usually derived from the normal icon, but adorned with a bright green arrow. Specify
|
||||
a path to the icon's .gif file, relative to your plugin directory.
|
||||
</documentation>
|
||||
<appInfo>
|
||||
<meta.attribute kind="resource"/>
|
||||
</appInfo>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="class" type="string" use="required">
|
||||
|
@ -126,6 +138,9 @@ It is recommended to extend <samp>org.eclipse.rse.core.subsystems.SubSyste
|
|||
Translatable name for subsystems created by this configuration.
|
||||
These appear immediately under a connection when the connection is expanded in the Remote Systems view of the Remote System Explorer perspective.
|
||||
</documentation>
|
||||
<appInfo>
|
||||
<meta.attribute translatable="true"/>
|
||||
</appInfo>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="description" type="string" use="required">
|
||||
|
@ -134,12 +149,15 @@ These appear immediately under a connection when the connection is expanded in t
|
|||
Translatable description for subsystems created by this configuration.
|
||||
These appear in configuration and properties pages for subsystems.
|
||||
</documentation>
|
||||
<appInfo>
|
||||
<meta.attribute translatable="true"/>
|
||||
</appInfo>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="systemTypes" type="string">
|
||||
<annotation>
|
||||
<documentation>
|
||||
A semicolon separated list of system types that subsystems from this configuration support.
|
||||
A semicolon separated list of system type names that subsystems from this configuration support.
|
||||
For example, "Unix;Linux". If not specified, defaults to all system types.
|
||||
</documentation>
|
||||
</annotation>
|
||||
|
|
|
@ -1,155 +0,0 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!-- Schema file written by PDE -->
|
||||
<schema targetNamespace="org.eclipse.rse.ui">
|
||||
<annotation>
|
||||
<appInfo>
|
||||
<meta.schema plugin="org.eclipse.rse.ui" id="systemType" name="System Type"/>
|
||||
</appInfo>
|
||||
<documentation>
|
||||
This extension point is used in combination with the org.eclipse.rse.ui.subsystemConfiguration
|
||||
extension point for defining new subsystems, which appear under a connection when it is expanded in the
|
||||
Remote Systems view. The systemType extension point allows subsystem providers to define a new system
|
||||
type that appears in the list of valid system types in the New Connection wizard, used by users when defining
|
||||
a new connection to a remote system. The system type is simply a string identifying the operating system
|
||||
type, such as Solaris, and an pair of icons used to identify connections to systems of this type. One
|
||||
icon is used when the connection is not connected, while the other is used when there is a live connection.
|
||||
</documentation>
|
||||
</annotation>
|
||||
|
||||
<element name="extension">
|
||||
<complexType>
|
||||
<sequence>
|
||||
<element ref="type" minOccurs="1" maxOccurs="unbounded"/>
|
||||
</sequence>
|
||||
<attribute name="point" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation>
|
||||
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="id" type="string">
|
||||
<annotation>
|
||||
<documentation>
|
||||
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="name" type="string">
|
||||
<annotation>
|
||||
<documentation>
|
||||
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
</complexType>
|
||||
</element>
|
||||
|
||||
<element name="type">
|
||||
<complexType>
|
||||
<attribute name="id" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation>
|
||||
A unique identifier for this extension.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="name" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation>
|
||||
The display name for the system type, such as "Solaris". RSE pre-defines a number of system types, although they may not appear unless a subsystem configuration is registered against that type. These are the supplied system types:
|
||||
<ul>
|
||||
<li>Local</li>
|
||||
<li>Unix</li>
|
||||
<li>Linux</li>
|
||||
</ul>
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="icon" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation>
|
||||
A relative path to an icon that will be used when displaying connections to systems of this type.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="iconlive" type="string" use="required">
|
||||
<annotation>
|
||||
<documentation>
|
||||
A relative path to an icon that will be used when displaying connections to systems of this type,
|
||||
when there is a live connection to the remote system. This is usually a derivation of the icon
|
||||
attribute, adorned with a bright green arrow.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="enableoffline" type="boolean">
|
||||
<annotation>
|
||||
<documentation>
|
||||
Whether this system type can be put in offline mode. This decides whether to show the Work Offline action for connections of this type. This is an optional attribute, the default value is false.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="description" type="string">
|
||||
<annotation>
|
||||
<documentation>
|
||||
A short description of the system type. Shows up in preferences for system type.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
</complexType>
|
||||
</element>
|
||||
|
||||
<annotation>
|
||||
<appInfo>
|
||||
<meta.section type="examples"/>
|
||||
</appInfo>
|
||||
<documentation>
|
||||
The following is an example of the extension point schema:
|
||||
<p>
|
||||
<pre>
|
||||
<extension point="org.eclipse.rse.ui.systemType">
|
||||
<type id="com.acme.systemtype.Solaris"
|
||||
name="Solaris"
|
||||
iconlive="icons/solarisLive.gif"
|
||||
icon="icons/solaris.gif">
|
||||
</type>
|
||||
</extension>
|
||||
</pre>
|
||||
</p>
|
||||
</documentation>
|
||||
</annotation>
|
||||
|
||||
<annotation>
|
||||
<appInfo>
|
||||
<meta.section type="apiInfo"/>
|
||||
</appInfo>
|
||||
<documentation>
|
||||
There is no code to implement for this extension point.
|
||||
</documentation>
|
||||
</annotation>
|
||||
|
||||
<annotation>
|
||||
<appInfo>
|
||||
<meta.section type="implementation"/>
|
||||
</appInfo>
|
||||
<documentation>
|
||||
See the plugin.xml file for plugin org.eclipse.rse.ui for examples of using this extension point.
|
||||
</documentation>
|
||||
</annotation>
|
||||
|
||||
<annotation>
|
||||
<appInfo>
|
||||
<meta.section type="copyright"/>
|
||||
</appInfo>
|
||||
<documentation>
|
||||
Copyright (c) 2002, 2006 IBM Corporation. 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
|
||||
|
||||
Contributors:
|
||||
IBM Corporation - initial API and implementation
|
||||
</documentation>
|
||||
</annotation>
|
||||
|
||||
</schema>
|
Loading…
Add table
Reference in a new issue