fixed compilation error in web UI
authorVictor Kirhenshtein <victor@netxms.org>
Sun, 17 Jul 2016 08:56:26 +0000 (11:56 +0300)
committerVictor Kirhenshtein <victor@netxms.org>
Sun, 17 Jul 2016 08:59:05 +0000 (11:59 +0300)
webui/webapp/PerfView/src/org/netxms/ui/eclipse/perfview/views/HistoricalGraphView.java

index 9a03cbe..6ed9d16 100644 (file)
@@ -84,9 +84,6 @@ public class HistoricalGraphView extends ViewPart implements GraphSettingsChange
          GraphSettings.TIME_UNIT_DAY, GraphSettings.TIME_UNIT_DAY, GraphSettings.TIME_UNIT_DAY, GraphSettings.TIME_UNIT_DAY,
          GraphSettings.TIME_UNIT_DAY, GraphSettings.TIME_UNIT_DAY };
    private static final int[] presetRanges = { 10, 30, 1, 2, 4, 12, 1, 2, 5, 7, 31, 365 };
-   private final String[] presetNames = 
-      { Messages.get().HistoricalGraphView_Preset10min, Messages.get().HistoricalGraphView_Preset30min, Messages.get().HistoricalGraphView_Preset1hour, Messages.get().HistoricalGraphView_Preset2hours, Messages.get().HistoricalGraphView_Preset4hours, Messages.get().HistoricalGraphView_Preset12hours, Messages.get().HistoricalGraphView_Preset1day,
-        Messages.get().HistoricalGraphView_Preset2days, Messages.get().HistoricalGraphView_Preset5days, Messages.get().HistoricalGraphView_PresetWeek, Messages.get().HistoricalGraphView_PresetMonth, Messages.get().HistoricalGraphView_PresetYear };
 
    private NXCSession session;
    private HistoricalDataChart chart = null;
@@ -972,6 +969,10 @@ public class HistoricalGraphView extends ViewPart implements GraphSettingsChange
     */
    public static Action[] createPresetActions(final PresetHandler handler)
    {
+      final String[] presetNames = 
+         { Messages.get().HistoricalGraphView_Preset10min, Messages.get().HistoricalGraphView_Preset30min, Messages.get().HistoricalGraphView_Preset1hour, Messages.get().HistoricalGraphView_Preset2hours, Messages.get().HistoricalGraphView_Preset4hours, Messages.get().HistoricalGraphView_Preset12hours, Messages.get().HistoricalGraphView_Preset1day,
+           Messages.get().HistoricalGraphView_Preset2days, Messages.get().HistoricalGraphView_Preset5days, Messages.get().HistoricalGraphView_PresetWeek, Messages.get().HistoricalGraphView_PresetMonth, Messages.get().HistoricalGraphView_PresetYear };
+      
       Action[] actions = new Action[presetRanges.length];
       for(int i = 0; i < presetRanges.length; i++)
       {