2024-10-09 22:01:19 +03:00
|
|
|
package _VisualDVM.Visual.Menus.MainMenuBar;
|
|
|
|
|
import _VisualDVM.Visual.Menus.PassesSubMenu;
|
|
|
|
|
import _VisualDVM.Visual.Menus.VisualiserMenu;
|
2024-10-09 22:21:57 +03:00
|
|
|
import _VisualDVM.Repository.Component.Sapfor.Sapfor;
|
2023-11-19 02:12:44 +03:00
|
|
|
import Visual_DVM_2021.Passes.PassCode_2021;
|
|
|
|
|
import Visual_DVM_2021.Passes.Pass_2021;
|
2023-09-17 22:13:42 +03:00
|
|
|
public class TransformationsMenu extends VisualiserMenu {
|
|
|
|
|
public TransformationsMenu() {
|
|
|
|
|
super("Преобразования", "/icons/Transformations.png");
|
|
|
|
|
add(new PassesSubMenu("Циклы", "/icons/Menu/Loops.png",
|
|
|
|
|
Sapfor.getLoopsTransformationsCodes()));
|
|
|
|
|
addSeparator();
|
2024-04-02 23:35:54 +03:00
|
|
|
add(new PassesSubMenu("Приватные переменные", "/icons/Menu/Privates.png",
|
2023-09-17 22:13:42 +03:00
|
|
|
Sapfor.getPrivatesTransformationsCodes()));
|
|
|
|
|
addSeparator();
|
|
|
|
|
add(new PassesSubMenu("Процедуры", "/icons/Menu/Functions.png",
|
|
|
|
|
Sapfor.getProceduresTransformationsCodes()));
|
|
|
|
|
addSeparator();
|
2023-11-21 21:29:38 +03:00
|
|
|
add(new PassesSubMenu("Директивы", "/icons/Directives.png",
|
2023-09-17 22:13:42 +03:00
|
|
|
Sapfor.getDVMTransformationsCodes()));
|
|
|
|
|
addSeparator();
|
|
|
|
|
add(new PassesSubMenu("Интервалы", "/icons/Menu/Intervals.png",
|
|
|
|
|
Sapfor.getIntervalsTransformationsCodes()
|
|
|
|
|
));
|
|
|
|
|
addSeparator();
|
|
|
|
|
add(new PassesSubMenu("Области распараллеливания", "/icons/Menu/Regions.png",
|
|
|
|
|
Sapfor.getRegionsTransformationsCodes()
|
|
|
|
|
));
|
|
|
|
|
addSeparator();
|
2023-11-27 20:22:04 +03:00
|
|
|
add(Pass_2021.passes.get(PassCode_2021.SPF_SharedMemoryParallelization).createMenuItem());
|
|
|
|
|
addSeparator();
|
2023-09-17 22:13:42 +03:00
|
|
|
add(new PassesSubMenu("Предобработка проекта", "/icons/Menu/Preprocessing.png",
|
|
|
|
|
Sapfor.getPreparationTransformationsCodes()
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|