mirror of
https://github.com/Minres/RDL-Editor.git
synced 2025-09-14 13:11:46 +01:00
updates build system and versions
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.validation;
|
||||
|
||||
import org.eclipse.jface.dialogs.IDialogSettings;
|
||||
import org.eclipse.swt.widgets.Composite;
|
||||
import org.eclipse.xtext.ui.validation.AbstractValidatorConfigurationBlock;
|
||||
|
||||
@SuppressWarnings("restriction")
|
||||
public class RDLValidatorConfigurationBlock extends AbstractValidatorConfigurationBlock {
|
||||
|
||||
protected static final String SETTINGS_SECTION_NAME = "RDL";
|
||||
|
||||
@Override
|
||||
protected void fillSettingsPage(Composite composite, int nColumns, int defaultIndent) {
|
||||
addComboBox(RDLConfigurableIssueCodesProvider.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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user