connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/interfaces/IConnectionFactory2.java
author dadubrow
Fri, 16 Apr 2010 11:32:51 -0500
changeset 1230 71146ed4b8a1
parent 1220 af71d0898edf
permissions -rw-r--r--
Simplify new IConnectionFactory2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1161
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
     1
/*
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
     2
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
     3
* All rights reserved.
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
     4
* This component and the accompanying materials are made available
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
     5
* under the terms of the License "Eclipse Public License v1.0"
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
     6
* which accompanies this distribution, and is available
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
     8
*
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
     9
* Initial Contributors:
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    11
*
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    12
* Contributors:
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    13
*
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    14
* Description: 
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    15
*
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    16
*/
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    17
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    18
package com.nokia.carbide.remoteconnections.interfaces;
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    19
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    20
import java.util.Map;
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    21
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    22
import org.eclipse.swt.widgets.Composite;
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    23
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    24
/**
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    25
 * An extended interface for a connection factory.
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    26
 */
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    27
public interface IConnectionFactory2 extends IConnectionFactory {
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    28
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    29
	public static final String PREFERRED_CONNECTION_NAME = "preferred-connection-name"; //$NON-NLS-1$
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    30
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    31
	public interface ISettingsChangedListener {
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    32
		void settingsChanged();
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    33
	}
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    34
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    35
	/**
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    36
	 * Creates a composite with UI for editing settings, optionally initialized with initialSettings.<br>
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    37
	 * Can provide optional errorReporter and optional listener. Assumes parent has GridLayout
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    38
	 * @param parent Composite
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    39
	 * @param errorReporter IValidationErrorReporter
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    40
	 * @param initialSettings Map may be <code>null</code>
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    41
	 * @param settingsListener ISettingsChangedListener
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    42
	 */
1230
71146ed4b8a1 Simplify new IConnectionFactory2
dadubrow
parents: 1220
diff changeset
    43
	void createEditingUI(Composite parent, IValidationErrorReporter errorReporter, 
1161
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    44
			Map<String, String> initialSettings, ISettingsChangedListener settingsListener);
b028057ccaf8 Updated remote connections wizard.
stechong
parents:
diff changeset
    45
}