--- a/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/interfaces/IConnectionFactory.java Thu Apr 15 12:34:48 2010 -0500
+++ b/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/interfaces/IConnectionFactory.java Thu Apr 15 15:32:21 2010 -0500
@@ -37,13 +37,14 @@
* @param parent Composite
* @param errorReporter IValidationErrorReporter
* @param initialSettings Map may be <code>null</code>
- * @deprecated
+ * @deprecated use IConnectionFactory2.createEditingUI(Composite, IValidationErrorReporter, Map, com.nokia.carbide.remoteconnections.interfaces.IConnectionFactory2.ISettingsChangedListener)
*/
void createEditingUI(Composite parent, IValidationErrorReporter errorReporter, Map<String, String> initialSettings);
/**
* Returns the settings from the editing UI as name value pairs
* @return Map
+ * @deprecated use IConnectionFactory2.IEditingUI.getSettings() or IConnectionFactory2.getDefaultSettings()
*/
Map<String, String> getSettingsFromUI();
--- a/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/interfaces/IConnectionFactory2.java Thu Apr 15 12:34:48 2010 -0500
+++ b/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/interfaces/IConnectionFactory2.java Thu Apr 15 15:32:21 2010 -0500
@@ -48,4 +48,5 @@
IEditingUI createEditingUI(Composite parent, IValidationErrorReporter errorReporter,
Map<String, String> initialSettings, ISettingsChangedListener settingsListener);
+ Map<String, String> getDefaultSettings();
}
--- a/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/settings/ui/ConnectionSettingsPage.java Thu Apr 15 12:34:48 2010 -0500
+++ b/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/settings/ui/ConnectionSettingsPage.java Thu Apr 15 15:32:21 2010 -0500
@@ -840,6 +840,9 @@
}
public Map<String, String> getSettings() {
+ if (editingUI != null)
+ return editingUI.getSettings();
+
if (connectionFactory == null) {
IConnection connectionToEdit = settingsWizard.getConnectionToEdit();
if (connectionToEdit == null || !connectionToEdit.getConnectionType().equals(getConnectionType())) {