36 lines
1 KiB
Java
36 lines
1 KiB
Java
/*
|
|
* generated by Xtext 2.23.0
|
|
*/
|
|
package fr.n7.validation;
|
|
|
|
import org.eclipse.jface.dialogs.IDialogSettings;
|
|
import org.eclipse.swt.widgets.Composite;
|
|
import org.eclipse.xtext.ui.validation.AbstractValidatorConfigurationBlock;
|
|
|
|
@SuppressWarnings("restriction")
|
|
public class PDL2ValidatorConfigurationBlock extends AbstractValidatorConfigurationBlock {
|
|
|
|
protected static final String SETTINGS_SECTION_NAME = "PDL2";
|
|
|
|
@Override
|
|
protected void fillSettingsPage(Composite composite, int nColumns, int defaultIndent) {
|
|
addComboBox(PDL2ConfigurableIssueCodesProvider.DEPRECATED_MODEL_PART, "Deprecated Model Part", composite, defaultIndent);
|
|
}
|
|
|
|
@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;
|
|
}
|
|
}
|