1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-02 22:55:26 +02:00

[fix] Dynamic association of new connection wizards to system types will be done via the system type adapter

This commit is contained in:
Uwe Stieber 2007-02-13 11:51:42 +00:00
parent 3ecdb0a3a5
commit d2c9c78b57
3 changed files with 0 additions and 32 deletions

View file

@ -127,19 +127,4 @@ public interface IRSESystemType extends IAdaptable {
* but never <code>null</code>.
*/
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

@ -140,13 +140,6 @@ 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)
*/

View file

@ -25,7 +25,6 @@ import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.Platform;
import org.eclipse.jface.wizard.IWizardPage;
import org.eclipse.rse.core.IRSESystemType;
import org.eclipse.rse.core.RSECorePlugin;
import org.eclipse.rse.core.SystemBasePlugin;
import org.eclipse.rse.ui.ISystemIconConstants;
import org.eclipse.rse.ui.RSEUIPlugin;
@ -107,15 +106,6 @@ public class RSENewConnectionWizard extends AbstractSystemWizard implements IRSE
// if the systemTypeId is null or empty, ask the system types if they accept the newConnectionWizardDelegate
if (systemTypeId != null && !"".equals(systemTypeId.trim())) { //$NON-NLS-1$
if (!wizardDelegates.containsKey(systemTypeId)) wizardDelegates.put(systemTypeId, obj);
} else {
IRSESystemType[] systemTypes = RSECorePlugin.getDefault().getRegistry().getSystemTypes();
for (int j = 0; j < systemTypes.length; j++) {
IRSESystemType systemType = systemTypes[j];
if (systemType.acceptNewConnectionWizardDelegate(element.getAttribute(NEW_CONNECTION_WIZARD_DELEGATE_EXTENSION_CONFIG_ATTRIBUTE_ID))
&& !wizardDelegates.containsKey(systemType.getId())) {
wizardDelegates.put(systemType.getId(), obj);
}
}
}
} else {
continue;