Files
VisualSapfor/src/Visual_DVM_2021/Passes/All/ShowMakefilePreview.java

35 lines
1.1 KiB
Java
Raw Normal View History

package Visual_DVM_2021.Passes.All;
import Common.CurrentAnchestor;
import Common_old.Current;
2023-09-17 22:13:42 +03:00
import GlobalData.Makefile.UI.MakefilePreviewForm;
import ProjectData.Project.db_project_info;
import Visual_DVM_2021.Passes.PassCode_2021;
import Visual_DVM_2021.Passes.Pass_2021;
2023-09-17 22:13:42 +03:00
public class ShowMakefilePreview extends Pass_2021<db_project_info> {
@Override
public String getIconPath() {
return "/icons/ShowPassword.png";
}
@Override
public String getButtonText() {
return "";
}
@Override
protected PassCode_2021 necessary() {
return PassCode_2021.SPF_ParseFilesWithOrder;
}
@Override
protected boolean canStart(Object... args) {
if (CurrentAnchestor.Check(Log, Current.Project)) {
2023-09-17 22:13:42 +03:00
target = Current.getProject();
return CurrentAnchestor.Check(Log, Current.Makefile);
2023-09-17 22:13:42 +03:00
}
return false;
}
@Override
protected void body() throws Exception {
new MakefilePreviewForm().ShowDialog("Предпросмотр мейкфайла для текущего проекта",
Current.getMakefile().Generate(target));
}
}