projet-genie-logiciel-systeme/workspace/fr.n7.game.ui/src-gen/fr/n7/validation/GAMEValidatorConfigurationBlock.java

36 lines
1 KiB
Java
Raw Normal View History

2021-11-30 17:25:45 +00:00
/*
* generated by Xtext 2.23.0
*/
2021-12-03 07:37:31 +00:00
package fr.n7.validation;
2021-11-30 17:25:45 +00:00
import org.eclipse.jface.dialogs.IDialogSettings;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.xtext.ui.validation.AbstractValidatorConfigurationBlock;
@SuppressWarnings("restriction")
2021-12-03 07:37:31 +00:00
public class GAMEValidatorConfigurationBlock extends AbstractValidatorConfigurationBlock {
2021-11-30 17:25:45 +00:00
2021-12-03 07:37:31 +00:00
protected static final String SETTINGS_SECTION_NAME = "GAME";
2021-11-30 17:25:45 +00:00
@Override
protected void fillSettingsPage(Composite composite, int nColumns, int defaultIndent) {
2021-12-03 07:37:31 +00:00
addComboBox(GAMEConfigurableIssueCodesProvider.DEPRECATED_MODEL_PART, "Deprecated Model Part", composite, defaultIndent);
2021-11-30 17:25:45 +00:00
}
@Override
public void dispose() {
storeSectionExpansionStates(getDialogSettings());
super.dispose();
}
@Override
protected IDialogSettings getDialogSettings() {
IDialogSettings dialogSettings = super.getDialogSettings();
IDialogSettings section = dialogSettings.getSection(SETTINGS_SECTION_NAME);
if (section == null) {
return dialogSettings.addNewSection(SETTINGS_SECTION_NAME);
}
return section;
}
}