diff --git a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/IRSESystemType.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/IRSESystemType.java index e49bc638c34..df864486ad5 100644 --- a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/IRSESystemType.java +++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/IRSESystemType.java @@ -128,4 +128,18 @@ public interface IRSESystemType extends IAdaptable { */ public String[] getSubsystemConfigurationIds(); + /** + * Returns if or if not the specified new connection wizard delegate can be used for this + * system type. This method is called by the {@link org.eclipse.rse.ui.wizard.IRSENewConnectionWizard} + * if the system type attribute of the newConnectionWizardDelegates extension + * point is not specified. This allows to declare new connection wizard delegates which are + * associated to system types dynamically contributed via the systemTypeProviders + * extension point. + *

+ * Note: The default RSE system type implementation returns always false here. + * + * @param newConnectionWizardDelegateId The new connection wizard delegate id. Must be not null. + * @return True if the system type accepts the new connection wizard delegate, false otherwise. + */ + public boolean acceptNewConnectionWizardDelegate(String newConnectionWizardDelegateId); } \ No newline at end of file diff --git a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/internal/RSESystemType.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/internal/RSESystemType.java index f614279a847..463648b91fa 100644 --- a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/internal/RSESystemType.java +++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/internal/RSESystemType.java @@ -98,40 +98,35 @@ public class RSESystemType implements IRSESystemType { } } - /** - * Returns the id of the system type. + /* (non-Javadoc) * @see org.eclipse.rse.core.IRSESystemType#getId() */ public String getId() { return id; } - /** - * Returns the name of the system type. + /* (non-Javadoc) * @see org.eclipse.rse.core.IRSESystemType#getName() */ public String getName() { return name; } - /** - * Returns the description of the system type. + /* (non-Javadoc) * @see org.eclipse.rse.core.IRSESystemType#getDescription() */ public String getDescription() { return description; } - /** - * Returns a property of the system type given a key. + /* (non-Javadoc) * @see org.eclipse.rse.core.IRSESystemType#getProperty(java.lang.String) */ public String getProperty(String key) { return (String) (properties.get(key)); } - /** - * Returns the bundle which is responsible for the definition of this system type. + /* (non-Javadoc) * @see org.eclipse.rse.core.IRSESystemType#getDefiningBundle() */ public Bundle getDefiningBundle() { @@ -145,7 +140,14 @@ public class RSESystemType implements IRSESystemType { return subsystemConfigurationIds; } - /** + /* (non-Javadoc) + * @see org.eclipse.rse.core.IRSESystemType#acceptNewConnectionWizardDelegate(java.lang.String) + */ + public boolean acceptNewConnectionWizardDelegate(String newConnectionWizardDelegateId) { + return false; + } + + /* (non-Javadoc) * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class) */ public Object getAdapter(Class adapter) {