From ab48d5ac3258cd46249b5e2af4afeab9482aa1d2 Mon Sep 17 00:00:00 2001 From: Martin Oberhuber < martin.oberhuber@windriver.com> Date: Fri, 18 Aug 2006 07:45:26 +0000 Subject: [PATCH] [cleanup] improve documentation of new SubSystemProxyComparator --- .../schema/subsystemConfiguration.exsd | 28 +++++++++++++------ ...SubSystemConfigurationProxyComparator.java | 1 + 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/rse/plugins/org.eclipse.rse.ui/schema/subsystemConfiguration.exsd b/rse/plugins/org.eclipse.rse.ui/schema/subsystemConfiguration.exsd index f7a89d2bd59..d8baa3a656b 100644 --- a/rse/plugins/org.eclipse.rse.ui/schema/subsystemConfiguration.exsd +++ b/rse/plugins/org.eclipse.rse.ui/schema/subsystemConfiguration.exsd @@ -37,6 +37,11 @@ subsystems. + + + (no description available) + + @@ -75,8 +80,8 @@ subsystems. - A unique ID for this subsystem configuration. This will be used as a folder name for -information contained by the subsystem configuration, or by any of its subsystems. + A unique ID for this subsystem configuration. This will be used by persistency +as a folder name for information contained by the subsystem configuration, or by any of its subsystems. @@ -107,24 +112,27 @@ a path to the icon's .gif file, relative to your plugin directory. - A class that implements <samp>org.eclipse.rse.core.subsystems.SubSystemConfiguration</samp> + A class that implements <samp>org.eclipse.rse.core.subsystems.ISubSystemConfiguration</samp>. +It is recommended to extend <samp>org.eclipse.rse.core.subsystems.SubSystemConfiguration</samp> or <samp>org.eclipse.rse.core.servicesubsystem.ServiceSubSystemConfiguration</samp>. + + + - 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. + 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. - Translatable description for subsystems created by this configuration. These appear in configuration - and properties pages for subsystems. + Translatable description for subsystems created by this configuration. +These appear in configuration and properties pages for subsystems. @@ -167,7 +175,9 @@ category of "database". - This optional attribute determines the order in which subsystems appear in the New Connection wizard and RSE views. The lower the number, the higher the priority. + This optional attribute determines the order in which subsystems appear in the New Connection wizard and RSE views. Integer values are allowed. Subsystems with lower number will appear first in the RSE tree. Subsystems that do not define the priority attribute will be appended last to the list of subsystems. + +Note that ServiceSubSystems that share the same service should always use the same priority, since their service implementation can change at runtime. The following priorities are used by the predefined subsystems: files=100, processes=200, shells=300. diff --git a/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/internal/subsystems/SubSystemConfigurationProxyComparator.java b/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/internal/subsystems/SubSystemConfigurationProxyComparator.java index 7f97789d2df..01268c6da97 100644 --- a/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/internal/subsystems/SubSystemConfigurationProxyComparator.java +++ b/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/internal/subsystems/SubSystemConfigurationProxyComparator.java @@ -14,6 +14,7 @@ public class SubSystemConfigurationProxyComparator implements Comparator { /** * Compares priorities of subsystem configuration proxies. + * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object) */ public int compare(Object o1, Object o2) {