OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 83 Rev 93
Line 113... Line 113...
113
        });
113
        });
114
    }
114
    }
115
 
115
 
116
    protected final JPopupMenu getPopup(MouseEvent ev) {
116
    protected final JPopupMenu getPopup(MouseEvent ev) {
117
        // respect enabled status
117
        // respect enabled status
118
        if (!this.combo.getPopupComp().isEnabled())
118
        if (!InteractionMode.from(this.combo.getPopupComp()).isEditable())
119
            return null;
119
            return null;
120
        // Bouton droit en non locked
120
        // Bouton droit en non locked
121
        // On debloque le lock en faisant CTRL + bouton droit
121
        // On debloque le lock en faisant CTRL + bouton droit
122
        final boolean displayModifyCache = this.combo.canModifyCache() && (this.combo.getMode().isListMutable() || (isLockOverridable() && ev.isControlDown()));
122
        final boolean displayModifyCache = this.combo.canModifyCache() && (this.combo.getMode().isListMutable() || (isLockOverridable() && ev.isControlDown()));
123
        final boolean displayReload = this.combo.canReload();
123
        final boolean displayReload = this.combo.canReload();