SPF_InsertPrivateFromGUI

v++
This commit is contained in:
2023-12-23 21:31:56 +03:00
parent 7684966849
commit 2ad0c85331
8 changed files with 30 additions and 5 deletions

View File

@@ -77,7 +77,8 @@ public abstract class Sapfor extends OSDComponent {
return new PassCode_2021[]{
PassCode_2021.SPF_PrivateShrinking,
PassCode_2021.SPF_PrivateExpansion,
PassCode_2021.SPF_PrivateRemoving
PassCode_2021.SPF_PrivateRemoving,
PassCode_2021.SPF_InsertPrivateFromGUI
};
}
public static PassCode_2021[] getProceduresTransformationsCodes() {
@@ -374,6 +375,7 @@ public abstract class Sapfor extends OSDComponent {
res.add(PassCode_2021.SPF_RemoveDvmDirectivesToComments);
res.add(PassCode_2021.SPF_RemoveOmpDirectives);
res.add(PassCode_2021.SPF_RemoveComments);
res.add(PassCode_2021.SPF_InsertIncludesPass);
//--
res.add(PassCode_2021.SPF_LoopEndDoConverterPass);
res.add(PassCode_2021.SPF_LoopUnion);

View File

@@ -62,7 +62,7 @@ public class Visualiser extends Component {
//http://www.seostella.com/ru/article/2012/02/05/formatirovanie-daty-v-java.html
@Override
public void GetVersionInfo() {
version = 1054;
version = 1056;
String pattern = "MMM dd yyyy HH:mm:ss";
DateFormat df = new SimpleDateFormat(pattern, Locale.ENGLISH);
date_text = df.format(getClassBuildTime());

View File

@@ -91,6 +91,7 @@ public class AddSapforPackage extends AddObjectPass<SapforPackage> {
return true;
}
public boolean getConfigurationCommands(SapforConfiguration sapforConfiguration) {
int headers_count = 0;
//1. получить список всех команд.
Vector<PassCode_2021> codes = new Vector<>();
//-- счетчик завершающих команд.
@@ -120,6 +121,8 @@ public class AddSapforPackage extends AddObjectPass<SapforPackage> {
))
return false;
}
//--
return true;
}

View File

@@ -1,5 +1,6 @@
package Visual_DVM_2021.Passes.All;
import Common.Global;
import Common.UI.UI;
import Common.Utils.Utils;
import TestingSystem.SAPFOR.SapforPackage.SapforPackage;
import Visual_DVM_2021.Passes.DeleteTestingPackages;
@@ -9,6 +10,10 @@ public class DeleteSapforPackage extends DeleteTestingPackages<SapforPackage> {
public DeleteSapforPackage() {
super(SapforPackage.class);
}
protected void showPreparation() throws Exception {
super.showPreparation();
UI.getMainWindow().getTestingWindow().DropSapforComparison();
}
@Override
protected File getPackagesHome() {
return Global.SapforPackagesDirectory;

View File

@@ -0,0 +1,4 @@
package Visual_DVM_2021.Passes.All;
import Visual_DVM_2021.Passes.SapforTransformation;
public class SPF_InsertPrivateFromGUI extends SapforTransformation {
}

View File

@@ -311,11 +311,13 @@ public enum PassCode_2021 {
DownloadDVMPackages,
DownloadSapforPackage,
//->
TestPass;
TestPass, SPF_InsertPrivateFromGUI;
public String getDescription() {
switch (this) {
case Undefined:
return "?";
case SPF_InsertPrivateFromGUI:
return "Расстановка директив приватностей";
case CreateTestFromSelectedFiles:
return "Создать тест из выделенных файлов";
case DownloadSapforPackage:
@@ -915,6 +917,9 @@ public enum PassCode_2021 {
case SPF_GetMaxMinBlockDistribution:
name = "GET_MIN_MAX_BLOCK_DIST";
break;
case SPF_InsertIncludesPass:
name = "INSERT_INCLUDES"+" -includeAll";
break;
}
return p + " " + name;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 502 B