SPF_InsertPrivateFromGUI
v++
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Visual_DVM_2021.Passes.SapforTransformation;
|
||||
public class SPF_InsertPrivateFromGUI extends SapforTransformation {
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
BIN
src/icons/Transformations/SPF_InsertPrivateFromGUI.png
Normal file
BIN
src/icons/Transformations/SPF_InsertPrivateFromGUI.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 502 B |
Reference in New Issue
Block a user