1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 17:35: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();
/**
* 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 {
}
}
/**
* 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) {