1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-05 07:15:39 +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

@ -16,8 +16,9 @@ Contributors:
<extension <extension
point="org.eclipse.rse.ui.newConnectionWizardDelegates"> point="org.eclipse.rse.ui.newConnectionWizardDelegates">
<newConnectionWizardDelegate <newConnectionWizardDelegate
class="org.eclipse.rse.discovery.ServiceDiscoveryWizardDelegate" class="org.eclipse.rse.discovery.ServiceDiscoveryWizardDelegate"
systemType="org.eclipse.rse.systemtype.discovery"/> id="org.eclipse.rse.discovery.ServiceDiscoveryWizardDelegate"
systemType="org.eclipse.rse.systemtype.discovery"/>
</extension> </extension>
<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_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_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_SYSTEMTYPE = "systemType"; //$NON-NLS-1$
public static final String NEW_CONNECTION_WIZARD_DELEGATE_EXTENSION_CONFIG_ATTRIBUTE_CLASS = "class"; //$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(); IRSESystemType[] systemTypes = RSECorePlugin.getDefault().getRegistry().getSystemTypes();
for (int j = 0; j < systemTypes.length; j++) { for (int j = 0; j < systemTypes.length; j++) {
IRSESystemType systemType = systemTypes[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.containsKey(systemType.getId())) {
wizardDelegates.put(systemType.getId(), obj); wizardDelegates.put(systemType.getId(), obj);
} }

View file

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