OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 156 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 156 Rev 180
Line 48... Line 48...
48
        frame.setIconImages(Gestion.getFrameIcon());
48
        frame.setIconImages(Gestion.getFrameIcon());
49
 
49
 
50
        final Object name = action.getValue(Action.NAME);
50
        final Object name = action.getValue(Action.NAME);
51
        WindowStateManager stateManager = null;
51
        WindowStateManager stateManager = null;
52
        if (name != null) {
52
        if (name != null) {
-
 
53
            if (conf == null) {
-
 
54
                System.err.println("Warning: no configuration for action " + action + ", unable to use a window state manager.");
-
 
55
            } else {
53
            stateManager = new WindowStateManager(frame, new File(conf.getConfDir(), "Configuration" + File.separator + "Frame" + File.separator + name.toString() + ".xml"),
56
                stateManager = new WindowStateManager(frame, new File(conf.getConfDir(), "Configuration" + File.separator + "Frame" + File.separator + name.toString() + ".xml"), true);
54
                    true);
57
            }
55
        } else {
58
        } else {
56
            System.err.println("Warning: no action name for action " + action + ", unable to use a window state manager.");
59
            System.err.println("Warning: no action name for action " + action + ", unable to use a window state manager.");
57
        }
60
        }
58
 
61
 
59
        frame.pack();
62
        frame.pack();