Перенос.

This commit is contained in:
2023-09-17 22:13:42 +03:00
parent dd2e0ca7e0
commit 629d8b8477
1239 changed files with 61161 additions and 1 deletions

View File

@@ -0,0 +1,32 @@
package Visual_DVM_2021.Passes.All;
import Common.Global;
import Repository.Component.ComponentType;
import Visual_DVM_2021.Passes.Pass_2021;
import java.awt.*;
import java.io.File;
public class ShowInstruction extends Pass_2021<File> {
@Override
public String getIconPath() {
return "/icons/Help.png";
}
@Override
public String getButtonText() {
return "";
}
@Override
protected boolean canStart(Object... args) throws Exception {
target = Global.Components.get(ComponentType.Instruction).getFile();
if (!target.exists()) {
Log.Writeln("файл инструкции:\n" + target.getAbsolutePath() + "\е найден! Обновите компонент 'Инструкция'");
return false;
}
return true;
}
@Override
protected void body() throws Exception {
if (Desktop.isDesktopSupported()) {
Desktop.getDesktop().open(target);
}
}
}