From e27947d45d54c408e785d79e59f5ed4baeb90a8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Leroux?= Date: Mon, 2 Jan 2017 17:39:54 +0000 Subject: [PATCH] Added limit to multiple edit --- .../rodain/inspection/InspectionPane.java | 5 +++++ .../org/roda/rodain/schema/ui/SchemaPane.java | 20 ++++++++++++++++++- src/main/resources/properties/.app.properties | 1 + src/main/resources/properties/lang.properties | 4 ++++ .../resources/properties/lang_en.properties | 4 ++++ .../properties/lang_es_CL.properties | 3 +++ .../resources/properties/lang_hu.properties | 5 +++++ .../resources/properties/lang_pt.properties | 4 ++++ 8 files changed, 45 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/roda/rodain/inspection/InspectionPane.java b/src/main/java/org/roda/rodain/inspection/InspectionPane.java index 8b2415b4..a7db4525 100644 --- a/src/main/java/org/roda/rodain/inspection/InspectionPane.java +++ b/src/main/java/org/roda/rodain/inspection/InspectionPane.java @@ -217,6 +217,11 @@ private void createTop() { Tooltip.install(topBox, new Tooltip(I18n.help("tooltip.inspectionPanel"))); } } + + public void resetTop(){ + createTop(); + setTop(topBox); + } private void createMetadata() { metadata = new VBox(); diff --git a/src/main/java/org/roda/rodain/schema/ui/SchemaPane.java b/src/main/java/org/roda/rodain/schema/ui/SchemaPane.java index c82b9c86..009d21a6 100644 --- a/src/main/java/org/roda/rodain/schema/ui/SchemaPane.java +++ b/src/main/java/org/roda/rodain/schema/ui/SchemaPane.java @@ -283,7 +283,25 @@ public void changed(ObservableValue observable, TreeItem oldValue, TreeItem newV sits.createAndUpdateFooter(); } else { // more than one item is selected - RodaIn.getInspectionPane().update(selectedItems); + String multipleEditMax = AppProperties.getAppConfig("app.multipleEdit.max"); + int multipleEditMaxInt = 100; + if(multipleEditMax!=null){ + multipleEditMaxInt = Integer.parseInt(multipleEditMax); + } + if(selectedItems.size()