1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-28 11:25:35 +02:00

[api] Needs possibility to register newWizardConnectionDelegate with dynamically contributed system types

This commit is contained in:
Uwe Stieber 2007-02-12 11:57:53 +00:00
parent f5f8bc7099
commit 3a88b76ae0
2 changed files with 27 additions and 11 deletions

View file

@ -128,4 +128,18 @@ public interface IRSESystemType extends IAdaptable {
*/ */
public String[] getSubsystemConfigurationIds(); 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 <code>newConnectionWizardDelegates</code> extension
* point is not specified. This allows to declare new connection wizard delegates which are
* associated to system types dynamically contributed via the <code>systemTypeProviders</code>
* extension point.
* <p>
* <b>Note:</b> The default RSE system type implementation returns always <code>false</code> here.
*
* @param newConnectionWizardDelegateId The new connection wizard delegate id. Must be not <code>null</code>.
* @return <code>True</code> if the system type accepts the new connection wizard delegate, <code>false</code> otherwise.
*/
public boolean acceptNewConnectionWizardDelegate(String newConnectionWizardDelegateId);
} }

View file

@ -98,40 +98,35 @@ public class RSESystemType implements IRSESystemType {
} }
} }
/** /* (non-Javadoc)
* Returns the id of the system type.
* @see org.eclipse.rse.core.IRSESystemType#getId() * @see org.eclipse.rse.core.IRSESystemType#getId()
*/ */
public String getId() { public String getId() {
return id; return id;
} }
/** /* (non-Javadoc)
* Returns the name of the system type.
* @see org.eclipse.rse.core.IRSESystemType#getName() * @see org.eclipse.rse.core.IRSESystemType#getName()
*/ */
public String getName() { public String getName() {
return name; return name;
} }
/** /* (non-Javadoc)
* Returns the description of the system type.
* @see org.eclipse.rse.core.IRSESystemType#getDescription() * @see org.eclipse.rse.core.IRSESystemType#getDescription()
*/ */
public String getDescription() { public String getDescription() {
return description; return description;
} }
/** /* (non-Javadoc)
* Returns a property of the system type given a key.
* @see org.eclipse.rse.core.IRSESystemType#getProperty(java.lang.String) * @see org.eclipse.rse.core.IRSESystemType#getProperty(java.lang.String)
*/ */
public String getProperty(String key) { public String getProperty(String key) {
return (String) (properties.get(key)); return (String) (properties.get(key));
} }
/** /* (non-Javadoc)
* Returns the bundle which is responsible for the definition of this system type.
* @see org.eclipse.rse.core.IRSESystemType#getDefiningBundle() * @see org.eclipse.rse.core.IRSESystemType#getDefiningBundle()
*/ */
public Bundle getDefiningBundle() { public Bundle getDefiningBundle() {
@ -145,7 +140,14 @@ public class RSESystemType implements IRSESystemType {
return subsystemConfigurationIds; 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) * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
*/ */
public Object getAdapter(Class adapter) { public Object getAdapter(Class adapter) {