Merge branch 'subtree'
[fanfix.git] / src / be / nikiroo / fanfix / bundles / ConfigBundle.java
CommitLineData
08fe2e33
NR
1package be.nikiroo.fanfix.bundles;
2
3import java.io.File;
4import java.io.IOException;
5
948637bc 6import be.nikiroo.utils.resources.Bundle;
08fe2e33
NR
7
8/**
9 * This class manages the configuration of the application.
10 *
11 * @author niki
12 */
13public class ConfigBundle extends Bundle<Config> {
0efd25e3
NR
14 /**
15 * Create a new {@link ConfigBundle}.
16 */
08fe2e33 17 public ConfigBundle() {
459b4c28 18 super(Config.class, Target.config5, null);
08fe2e33
NR
19 }
20
21 /**
22 * Update resource file.
23 *
24 * @param args
25 * not used
26 *
27 * @throws IOException
28 * in case of I/O error
29 */
30 public static void main(String[] args) throws IOException {
31 String path = new File(".").getAbsolutePath()
32 + "/src/be/nikiroo/fanfix/bundles/";
33 new ConfigBundle().updateFile(path);
34 System.out.println("Path updated: " + path);
35 }
36
37 @Override
38 protected String getBundleDisplayName() {
39 return "Configuration options";
40 }
41}