1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 23:05:47 +02:00

[fix] required id is associated with newConnectionWizardDelegate element instead of extension

This commit is contained in:
Uwe Stieber 2007-02-12 14:04:31 +00:00
parent 4614f392bb
commit dd4c4ae10d
4 changed files with 14 additions and 5 deletions

View file

@ -15,9 +15,10 @@ Contributors:
<extension
point="org.eclipse.rse.ui.newConnectionWizardDelegates">
<newConnectionWizardDelegate
class="org.eclipse.rse.discovery.ServiceDiscoveryWizardDelegate"
systemType="org.eclipse.rse.systemtype.discovery"/>
<newConnectionWizardDelegate
class="org.eclipse.rse.discovery.ServiceDiscoveryWizardDelegate"
id="org.eclipse.rse.discovery.ServiceDiscoveryWizardDelegate"
systemType="org.eclipse.rse.systemtype.discovery"/>
</extension>
<extension

View file

@ -23,6 +23,7 @@ public interface IRSENewConnectionWizard extends INewWizard {
public static final String NEW_CONNECTION_WIZARD_DELEGATE_EXTENSION_POINT_ID = "org.eclipse.rse.ui.newConnectionWizardDelegates"; //$NON-NLS-1$
public static final String NEW_CONNECTION_WIZARD_DELEGATE_EXTENSION_CONFIG_NAME = "newConnectionWizardDelegate"; //$NON-NLS-1$
public static final String NEW_CONNECTION_WIZARD_DELEGATE_EXTENSION_CONFIG_ATTRIBUTE_ID = "id"; //$NON-NLS-1$
public static final String NEW_CONNECTION_WIZARD_DELEGATE_EXTENSION_CONFIG_ATTRIBUTE_SYSTEMTYPE = "systemType"; //$NON-NLS-1$
public static final String NEW_CONNECTION_WIZARD_DELEGATE_EXTENSION_CONFIG_ATTRIBUTE_CLASS = "class"; //$NON-NLS-1$

View file

@ -111,7 +111,7 @@ public class RSENewConnectionWizard extends AbstractSystemWizard implements IRSE
IRSESystemType[] systemTypes = RSECorePlugin.getDefault().getRegistry().getSystemTypes();
for (int j = 0; j < systemTypes.length; j++) {
IRSESystemType systemType = systemTypes[j];
if (systemType.acceptNewConnectionWizardDelegate(element.getDeclaringExtension().getUniqueIdentifier())
if (systemType.acceptNewConnectionWizardDelegate(element.getAttribute(NEW_CONNECTION_WIZARD_DELEGATE_EXTENSION_CONFIG_ATTRIBUTE_ID))
&& !wizardDelegates.containsKey(systemType.getId())) {
wizardDelegates.put(systemType.getId(), obj);
}

View file

@ -27,7 +27,7 @@
</documentation>
</annotation>
</attribute>
<attribute name="id" type="string" use="required">
<attribute name="id" type="string">
<annotation>
<documentation>
@ -54,6 +54,13 @@
</documentation>
</annotation>
<complexType>
<attribute name="id" type="string" use="required">
<annotation>
<documentation>
A unique identifier for this extension.
</documentation>
</annotation>
</attribute>
<attribute name="systemType" type="string">
<annotation>
<documentation>