| 1 | package be.nikiroo.fanfix.bundles; |
| 2 | |
| 3 | import java.io.File; |
| 4 | import java.io.IOException; |
| 5 | |
| 6 | import be.nikiroo.utils.resources.Bundle; |
| 7 | |
| 8 | /** |
| 9 | * This class manages the configuration of UI of the application (colours and |
| 10 | * behaviour) |
| 11 | * |
| 12 | * @author niki |
| 13 | */ |
| 14 | public class UiConfigBundle extends Bundle<UiConfig> { |
| 15 | public UiConfigBundle() { |
| 16 | super(UiConfig.class, Target.ui); |
| 17 | } |
| 18 | |
| 19 | /** |
| 20 | * Update resource file. |
| 21 | * |
| 22 | * @param args |
| 23 | * not used |
| 24 | * |
| 25 | * @throws IOException |
| 26 | * in case of I/O error |
| 27 | */ |
| 28 | public static void main(String[] args) throws IOException { |
| 29 | String path = new File(".").getAbsolutePath() |
| 30 | + "/src/be/nikiroo/fanfix/bundles/"; |
| 31 | new UiConfigBundle().updateFile(path); |
| 32 | System.out.println("Path updated: " + path); |
| 33 | } |
| 34 | |
| 35 | @Override |
| 36 | protected String getBundleDisplayName() { |
| 37 | return "UI configuration options"; |
| 38 | } |
| 39 | } |