учет только групп возможен и в конфигах сапфора
This commit is contained in:
2025-03-23 22:31:50 +03:00
parent 535053baca
commit b4d0a62d6c
7 changed files with 28 additions and 12 deletions

View File

@@ -3,7 +3,7 @@ import Common.Utils.Vector_;
import java.util.Vector;
public class Constants {
public static final int version = 1223;
public static final int version = 1224;
public static final int planner_version = 24;
public static final int testingMaxKernels = 64;
//--

View File

@@ -11,6 +11,6 @@ public class ShowCurrentSAPFORConfigurationTests extends ShowCurrentConfiguratio
protected void showDone() throws Exception {
Global.testingServer.db.groups.getUI().SelectKeys(Global.testingServer.db.getSapforConfigurationGroupsIds(target));
Global.testingServer.db.tests.getUI().SelectKeys(Global.testingServer.db.getSapforConfigurationTestsIds(target));
Global.testingServer.db.dvmSettings.getUI().SelectKeys(Global.testingServer.db.getSapforConfigurationSettingsIds(target));
Global.testingServer.db.sapforSettings.getUI().SelectKeys(Global.testingServer.db.getSapforConfigurationSettingsIds(target));
}
}

View File

@@ -36,5 +36,6 @@ public class DVMConfigurationDialog extends DBObjectDialog<DVMConfiguration, DVM
fields.sCompilationMaxtime.setEnabled(false);
fields.sRunMaxtime.setEnabled(false);
fields.sKernels.setEnabled(false);
fields.cbGroupsOnly.setEnabled(false);
}
}

View File

@@ -20,15 +20,18 @@ public class SapforConfigurationDialog extends DBObjectDialog<SapforConfiguratio
public void fillFields() {
fields.tfName.setText(Result.description);
fields.sKernels.setValue(Result.kernels);
fields.cbGroupsOnly.setSelected(Result.groupsOnly != 0);
}
@Override
public void ProcessResult() {
Result.description = fields.tfName.getText();
Result.kernels = (int) fields.sKernels.getValue();
Result.groupsOnly = fields.cbGroupsOnly.isSelected() ? 1 : 0;
}
@Override
public void SetReadonly() {
fields.tfName.setEnabled(false);
fields.sKernels.setEnabled(false);
fields.cbGroupsOnly.setEnabled(false);
}
}

View File

@@ -8,7 +8,7 @@
<properties/>
<border type="none"/>
<children>
<grid id="d1d6e" layout-manager="GridLayoutManager" row-count="3" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<grid id="d1d6e" layout-manager="GridLayoutManager" row-count="4" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="0" left="0" bottom="0" right="0"/>
<constraints>
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
@@ -29,7 +29,7 @@
</component>
<vspacer id="224d6">
<constraints>
<grid row="2" column="0" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false">
<grid row="3" column="0" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false">
<preferred-size width="99" height="14"/>
</grid>
</constraints>
@@ -66,6 +66,19 @@
</constraints>
<properties/>
</component>
<component id="23997" class="javax.swing.JCheckBox" binding="cbGroupsOnly">
<constraints>
<grid row="2" column="0" row-span="1" col-span="2" vsize-policy="3" hsize-policy="3" anchor="8" fill="0" indent="2" use-parent-layout="false"/>
</constraints>
<properties>
<font name="Times New Roman" size="16" style="2"/>
<horizontalAlignment value="0"/>
<icon value="Common/icons/NotPick.png"/>
<selectedIcon value="Common/icons/Pick.png"/>
<text value="учитывать только группы"/>
<toolTipText value="При формировании пакета, брать все тест из входящих групп"/>
</properties>
</component>
</children>
</grid>
</children>

View File

@@ -10,6 +10,7 @@ public class SapforConfigurationFields implements DialogFields {
public JSpinner sTransformationMaxtime;
public JSpinner sKernels;
private JPanel content;
public JCheckBox cbGroupsOnly;
public SapforConfigurationFields() {
sKernels.setModel(new SpinnerNumberModel(1, 1,
Constants.testingMaxKernels,