namingDepthTextBox.setStyleName("restDescribe-error");
}
}
});
final RadioButton useParameterAsNameRadio = new RadioButton("paramOrEndpoint", GuiFactory.strings.useParam());
useParameterAsNameRadio.setChecked(!useEndpointAsName);
useParameterAsNameRadio.addClickListener(new ClickListener() {
public void onClick(Widget sender) {
useEndpointAsName = !useParameterAsNameRadio.isChecked();
}
});
final RadioButton useEndpointAsNameRadio = new RadioButton("paramOrEndpoint", GuiFactory.strings.useEndpoint());
useEndpointAsNameRadio.setChecked(useEndpointAsName);
useEndpointAsNameRadio.addClickListener(new ClickListener() {
public void onClick(Widget sender) {
useEndpointAsName = useEndpointAsNameRadio.isChecked();
}
});
final TextBox indentWidthTextBox = new TextBox();
indentWidthTextBox.setWidth(panelHeight);
indentWidthTextBox.setText(indentWidth + "");
indentWidthTextBox.addChangeListener(new ChangeListener() {
public void onChange(Widget sender) {
try {
indentWidth = Integer.parseInt(indentWidthTextBox.getText());
indentWidthTextBox.removeStyleName("restDescribe-error");
if (SettingsDialog.indentWidth == 0) {
indentWidthTextBox.setStyleName("restDescribe-error");
}
} catch (NumberFormatException e) {
indentWidthTextBox.setStyleName("restDescribe-error");
}
}
});
final HorizontalPanel indentMiniPanel = new HorizontalPanel();
final RadioButton indentWithSpacesRadio = new RadioButton("indent", GuiFactory.strings.indentSpaces());
indentWithSpacesRadio.setChecked(indentWithSpaces);
indentWithSpacesRadio.addClickListener(new ClickListener() {
public void onClick(Widget sender) {
indentWithSpaces = indentWithSpacesRadio.isChecked();
indentMiniPanel.setVisible(true);
}
});
final RadioButton indentWithTabsRadio = new RadioButton("indent", GuiFactory.strings.indentTabs());
indentWithTabsRadio.setChecked(!indentWithSpaces);
indentWithTabsRadio.addClickListener(new ClickListener() {
public void onClick(Widget sender) {
indentWithSpaces = !indentWithTabsRadio.isChecked();
indentMiniPanel.setVisible(false);
}
});
final TextBox classSuffixTextBox = new TextBox();