protected static TabElements createBasicTabElements(Composite composite,
final Runnable modifyListener, PreferenceStore store, Params params) {
final StringFieldEditor debugHost;
final IntegerFieldEditor debugPort;
final BooleanFieldEditor addNetworkConsole;
{
Group connectionGroup = new Group(composite, 0);
connectionGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
connectionGroup.setText(Messages.ChromiumRemoteTab_CONNECTION_GROUP);
connectionGroup.setLayout(new GridLayout(1, false));
IPropertyChangeListener propertyModifyListener = new IPropertyChangeListener() {
public void propertyChange(PropertyChangeEvent event) {
modifyListener.run();
}
};
Composite propertiesComp = createInnerComposite(connectionGroup, 2);
// Host text field
debugHost = new StringFieldEditor(HOST_FIELD_NAME,
Messages.ChromiumRemoteTab_HostLabel, propertiesComp);
debugHost.setPropertyChangeListener(propertyModifyListener);
debugHost.setPreferenceStore(store);
// Port text field
debugPort = new IntegerFieldEditor(PORT_FIELD_NAME,
Messages.ChromiumRemoteTab_PortLabel, propertiesComp);
debugPort.setPropertyChangeListener(propertyModifyListener);
debugPort.setPreferenceStore(store);
addNetworkConsole =
new BooleanFieldEditor(ADD_NETWORK_CONSOLE_FIELD_NAME,
Messages.ChromiumRemoteTab_ShowDebuggerNetworkCommunication, propertiesComp);
addNetworkConsole.setPreferenceStore(store);
addNetworkConsole.setPropertyChangeListener(propertyModifyListener);
}
return new TabElements() {
@Override public StringFieldEditor getHost() {
return debugHost;