From 9bddbd5d4d030ddb670c864359bdf3cd76a4e200 Mon Sep 17 00:00:00 2001 From: boccioli_m Date: Wed, 23 Aug 2017 15:21:33 +0200 Subject: [PATCH] Closedown --- plugins/TestingList.java | 8 ++++---- script/tests/tests.properties | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/TestingList.java b/plugins/TestingList.java index 71c24ed..040b135 100644 --- a/plugins/TestingList.java +++ b/plugins/TestingList.java @@ -305,7 +305,7 @@ public class TestingList extends Panel { loadTests(); //if not administrator, then show only enabled tests boolean bShow = getContext().getInstance().getLevel()==AccessLevel.administrator; - jCheckBoxMenuShowSelectedTests1.setVisible(bShow); + jCheckBoxMenuShowSelectedTests1.setEnabled(bShow); } catch (Exception ex) { getLogger().severe(ex.getMessage()); } @@ -1232,9 +1232,9 @@ public class TestingList extends Panel { private void jButtonOptionsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonOptionsActionPerformed //enable some menu items only for administrator access control level - this.jMenuItemEditScript.setEnabled(Context.getInstance().getLevel()==AccessLevel.administrator); - this.jMenuItemNewTest.setEnabled(Context.getInstance().getLevel()==AccessLevel.administrator); - this.jMenuItemNewDevice.setEnabled(Context.getInstance().getLevel()==AccessLevel.administrator); + this.jMenuItemEditScript.setVisible(Context.getInstance().getLevel()==AccessLevel.administrator); + this.jMenuItemNewTest.setVisible(Context.getInstance().getLevel()==AccessLevel.administrator); + this.jMenuItemNewDevice.setVisible(Context.getInstance().getLevel()==AccessLevel.administrator); jPopupMenuOptions.show(jButtonOptions, 0, jButtonOptions.getHeight()); }//GEN-LAST:event_jButtonOptionsActionPerformed diff --git a/script/tests/tests.properties b/script/tests/tests.properties index dae9af6..c61e25c 100644 --- a/script/tests/tests.properties +++ b/script/tests/tests.properties @@ -1,5 +1,5 @@ #TestingList for pshell: configuration properties -#Wed Aug 23 14:29:25 CEST 2017 +#Wed Aug 23 14:44:47 CEST 2017 customPanel=Kollimators showEnabledTestsOnly=true listFilter=Collimator