diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 49279948..c4532cca 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -10,7 +10,7 @@
-
+
diff --git a/properties b/properties
index a4c284ef..08ea5f45 100644
--- a/properties
+++ b/properties
@@ -48,5 +48,5 @@
"FortranWrapsOn": false,
"ExtensionsOn": false,
"ComparsionDiffMergeOn": true,
- "BugReportsAgeLimit": 6
+ "BugReportsAgeLimit": 3
}
\ No newline at end of file
diff --git a/src/_VisualDVM/GlobalProperties.java b/src/_VisualDVM/GlobalProperties.java
index e4b3ab87..2b0e214d 100644
--- a/src/_VisualDVM/GlobalProperties.java
+++ b/src/_VisualDVM/GlobalProperties.java
@@ -299,17 +299,8 @@ public class GlobalProperties {
menuItem.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
- switch (fieldName){
- case "BugReportsAgeLimit":
- SliderNumberForm f = new SliderNumberForm();
- if (f.ShowDialog(getFieldDescription(fieldName), getValue(fieldName), 1, 12)) {
- int newValue = f.Result;
- if (Global.mainModule.getPass(PassCode.UpdateProperty).Do(fieldName, newValue)) {
- Mark(fieldName, menuItem);
- }
- }
- break;
- }
+ if (Global.mainModule.getPass(PassCode.UpdateProperty).Do(fieldName))
+ Mark(fieldName, menuItem);
}
});
controls.put(fieldName,menuItem);
@@ -333,32 +324,4 @@ public class GlobalProperties {
ex.printStackTrace();
}
}
-/*
- public ActionListener getChangeAction(String fieldName){
- try {
- String description = getFieldDescription(fieldName);
- Object oldValue = this.getClass().getField(fieldName).get(this);
- return new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent e) {
- switch (fieldName) {
- case "BugReportsAgeLimit":
- SliderNumberForm f = new SliderNumberForm();
- if (f.ShowDialog(description, oldValue, 1, 12)) {
- int newValue = f.Result;
- if (Global.mainModule.getPass(PassCode.UpdateProperty).Do(fieldName, newValue)) {
- menu_item.setText(description + " : " + newValue);
- }
- }
- break;
- }
- }
- };
- }
- catch (Exception ex){
- ex.printStackTrace();
- }
- }
-
- */
}
diff --git a/src/_VisualDVM/Passes/All/UpdateProperty.java b/src/_VisualDVM/Passes/All/UpdateProperty.java
index 5119cea3..be2fe725 100644
--- a/src/_VisualDVM/Passes/All/UpdateProperty.java
+++ b/src/_VisualDVM/Passes/All/UpdateProperty.java
@@ -1,7 +1,9 @@
package _VisualDVM.Passes.All;
import Common.Passes.Pass;
+import Common.Visual.Windows.Dialog.SliderNumberForm;
import _VisualDVM.Global;
import _VisualDVM.GlobalProperties;
+import _VisualDVM.Passes.PassCode;
import java.lang.reflect.Field;
public class UpdateProperty extends Pass