Добавлен модуль Tools для запуска различных вспомогательных инструментов

This commit is contained in:
Victor 2013-12-02 15:13:42 +02:00
parent 3c699b20ad
commit e696923f05
2 changed files with 34 additions and 1 deletions

View File

@ -45,7 +45,7 @@ public class Main extends JFrame {
private final ILabRab[] labs = new ILabRab[] {
new LR_1(), new LR_2(), new LR_3(),
new LR_4(), new LR_5()
new LR_4(), new LR_5(), new Tools()
};
private JButton executeButton;

33
src/tse/Tools.java Normal file
View File

@ -0,0 +1,33 @@
package tse;
import tse.tools.ImageCsvCreator;
/**
*
* @author aNNiMON
*/
public class Tools implements ILabRab {
private static final String[] TITLES = {
"Конвертация изображения в CSV",
};
@Override
public void execute(int index) {
switch(index) {
case 0:
ImageCsvCreator.main();
break;
}
}
@Override
public String[] getTitles() {
return TITLES;
}
@Override
public String getDescription(int index) {
return TITLES[index];
}
}