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