blob: 34dfbd88623c2dcdad857365a29c544f3ab628f5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
/*******************************************************************************
* Copyright (c) 2013 Wind River Systems, Inc. and others. All rights reserved.
* This program and the accompanying materials are made available under the terms
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Wind River Systems - initial API and implementation
*******************************************************************************/
package org.eclipse.tcf.te.ui.controls.interfaces;
import org.eclipse.swt.graphics.Image;
import org.eclipse.tcf.te.runtime.interfaces.properties.IPropertiesContainer;
import org.eclipse.tcf.te.runtime.services.interfaces.ISimulatorService;
import org.eclipse.tcf.te.ui.controls.BaseWizardConfigurationPanelControl;
/**
* Simulator service UI delegate.
*/
public interface ISimulatorServiceUIDelegate {
public static final String PROP_NAME_NEW = "NameNew"; //$NON-NLS-1$
public static final String PROP_MODES = "Modes"; //$NON-NLS-1$
public static final String PROP_MODE_LABEL_X = "ModeLabel"; //$NON-NLS-1$
public static final String PROP_MODE_DESCRIPTION_X = "ModeDescription"; //$NON-NLS-1$
public static final String PROP_BSPS = "BSPs"; //$NON-NLS-1$
/**
* Get the simulator service the UI delegate is associated with.
*
* @return The simulator service.
*/
public ISimulatorService getService();
/**
* Get the name of the simulator service to identify the simulator (type)
* to the user in the UI.
*
* @return The simulator service name.
*/
public String getName();
/**
* Get the image for the simulator service.
* @return The simulator image.
*/
public Image getImage();
/**
* Get a description fo rthe given config.
* This description is shown i.e. as tooltip of the configure button.
* @param context The context for which the simulator should be configured.
* @param config The configuration or <code>null</code>.
* @return The description of the given config.
*/
public String getDescription(Object context, String config);
/**
* Get properties for ui configuration.
* @param context The conetxt.
* @param config The current config.
* @return The properties for ui configuartion
*/
public IPropertiesContainer getProperties(Object context, String config);
/**
* Get the configuration panel for the given context and mode.
* @param context The context to configure.
* @param parentControl The parent control.
* @param mode The connection mode.
* @return
*/
public IWizardConfigurationPanel getConfigPanel(Object context, BaseWizardConfigurationPanelControl parentControl, String mode);
}
|