OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 156 Rev 177
Line 11... Line 11...
11
 * When distributing the software, include this License Header Notice in each file.
11
 * When distributing the software, include this License Header Notice in each file.
12
 */
12
 */
13
 
13
 
14
 package org.openconcerto.erp.config;
14
 package org.openconcerto.erp.config;
15
 
15
 
16
import org.openconcerto.erp.action.AboutAction;
-
 
17
import org.openconcerto.erp.core.common.ui.StatusPanel;
16
import org.openconcerto.erp.core.common.ui.StatusPanel;
18
import org.openconcerto.erp.panel.UserExitConf;
17
import org.openconcerto.erp.panel.UserExitConf;
19
import org.openconcerto.erp.panel.UserExitPanel;
18
import org.openconcerto.erp.panel.UserExitPanel;
20
import org.openconcerto.erp.rights.MenuComboRightEditor;
19
import org.openconcerto.erp.rights.MenuComboRightEditor;
21
import org.openconcerto.sql.PropsConfiguration;
20
import org.openconcerto.sql.PropsConfiguration;
Line 317... Line 316...
317
                }
316
                }
318
            };
317
            };
319
            fg = new Color(200, 65, 95);
318
            fg = new Color(200, 65, 95);
320
        } else {
319
        } else {
321
            action = mngrAction;
320
            action = mngrAction;
-
 
321
            // Allow to leave the name blank at action creation, then set it here so that it can be
-
 
322
            // used in actionPerformed()
-
 
323
            if (mngrActionName == null)
-
 
324
                action.putValue(Action.NAME, label);
322
            fg = label.equals(id) ? new Color(20, 65, 200) : null;
325
            fg = label.equals(id) ? new Color(20, 65, 200) : null;
323
        }
326
        }
324
 
327
 
325
        final JMenuItem res = new JMenuItem(action);
328
        final JMenuItem res = new JMenuItem(action);
326
        // don't use action name but the provided label
329
        // don't use action name but the provided label
Line 402... Line 405...
402
    public final void preferences() {
405
    public final void preferences() {
403
        MenuManager.getInstance().getActionForId("preferences").actionPerformed(null);
406
        MenuManager.getInstance().getActionForId("preferences").actionPerformed(null);
404
    }
407
    }
405
 
408
 
406
    public final void about() {
409
    public final void about() {
407
        AboutAction.getInstance().actionPerformed(null);
410
        MenuManager.getInstance().getActionForId("information").actionPerformed(null);
408
    }
411
    }
409
 
412
 
410
    public boolean quit() {
413
    public boolean quit() {
411
        if (this.getTodoPanel() != null)
414
        if (this.getTodoPanel() != null)
412
            this.getTodoPanel().stopUpdate();
415
            this.getTodoPanel().stopUpdate();