[hg] main-silver: #232744 - ArrayIndexOutOfBoundsException: Arra...

  • From: Milutin Kristofic < >
  • To: ,
  • Subject: [hg] main-silver: #232744 - ArrayIndexOutOfBoundsException: Arra...
  • Date: Thu, 18 Jul 2013 15:52:19 -0700

changeset bdc8e9c5320e in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/bdc8e9c5320e
description:
        #232744 - ArrayIndexOutOfBoundsException: Array index out of range: 24

diffstat:

 defaults/src/org/netbeans/modules/defaults/BlueTheme-editor.xml              
 |   3 +++
 defaults/src/org/netbeans/modules/defaults/CityLights-editor.xml             
 |   3 +++
 defaults/src/org/netbeans/modules/defaults/NetBeans55-editor.xml             
 |   3 +++
 defaults/src/org/netbeans/modules/defaults/NetBeansEarth-editor.xml          
 |   3 +++
 
options.editor/src/org/netbeans/modules/options/colors/HighlightingPanel.java 
|  10 +++++++---
 5 files changed, 19 insertions(+), 3 deletions(-)

diffs (78 lines):

diff --git a/defaults/src/org/netbeans/modules/defaults/BlueTheme-editor.xml 
b/defaults/src/org/netbeans/modules/defaults/BlueTheme-editor.xml
--- a/defaults/src/org/netbeans/modules/defaults/BlueTheme-editor.xml
+++ b/defaults/src/org/netbeans/modules/defaults/BlueTheme-editor.xml
@@ -76,4 +76,7 @@
     <fontcolor name="hyperlinks" foreColor="blue" underline="blue"/>
     <fontcolor name="synchronized-text-blocks-ext" foreColor="ffcc0099"/>
     <fontcolor name="synchronized-text-blocks-ext-slave" 
foreColor="ff996600"/>
+    <fontcolor name="indent-whitespace"/>
+    <fontcolor name="trailing-whitespace"/>
+    <fontcolor name="nbeditor-bracesMatching-sidebar"/>
  </fontscolors>
diff --git a/defaults/src/org/netbeans/modules/defaults/CityLights-editor.xml 
b/defaults/src/org/netbeans/modules/defaults/CityLights-editor.xml
--- a/defaults/src/org/netbeans/modules/defaults/CityLights-editor.xml
+++ b/defaults/src/org/netbeans/modules/defaults/CityLights-editor.xml
@@ -68,4 +68,7 @@
     <fontcolor name="hyperlinks" foreColor="blue" underline="blue"/>
     <fontcolor name="synchronized-text-blocks-ext" foreColor="ffCC0099"/>
     <fontcolor name="synchronized-text-blocks-ext-slave" 
foreColor="ff996600"/>
+    <fontcolor name="indent-whitespace"/>
+    <fontcolor name="trailing-whitespace"/>
+    <fontcolor name="nbeditor-bracesMatching-sidebar"/>
 </fontscolors>
diff --git a/defaults/src/org/netbeans/modules/defaults/NetBeans55-editor.xml 
b/defaults/src/org/netbeans/modules/defaults/NetBeans55-editor.xml
--- a/defaults/src/org/netbeans/modules/defaults/NetBeans55-editor.xml
+++ b/defaults/src/org/netbeans/modules/defaults/NetBeans55-editor.xml
@@ -68,4 +68,7 @@
     <fontcolor name="hyperlinks" foreColor="blue" underline="blue"/>
     <fontcolor name="synchronized-text-blocks-ext" foreColor="ffCC0099"/>
     <fontcolor name="synchronized-text-blocks-ext-slave" 
foreColor="ff996600"/>
+    <fontcolor name="indent-whitespace"/>
+    <fontcolor name="trailing-whitespace"/>
+    <fontcolor name="nbeditor-bracesMatching-sidebar"/>
 </fontscolors>
diff --git 
a/defaults/src/org/netbeans/modules/defaults/NetBeansEarth-editor.xml 
b/defaults/src/org/netbeans/modules/defaults/NetBeansEarth-editor.xml
--- a/defaults/src/org/netbeans/modules/defaults/NetBeansEarth-editor.xml
+++ b/defaults/src/org/netbeans/modules/defaults/NetBeansEarth-editor.xml
@@ -68,4 +68,7 @@
     <fontcolor name="hyperlinks" foreColor="blue" underline="blue"/>
     <fontcolor name="synchronized-text-blocks-ext" foreColor="ffCC0099"/>
     <fontcolor name="synchronized-text-blocks-ext-slave" 
foreColor="ff996600"/>
+    <fontcolor name="indent-whitespace"/>
+    <fontcolor name="trailing-whitespace"/>
+    <fontcolor name="nbeditor-bracesMatching-sidebar"/>
 </fontscolors>
diff --git 
a/options.editor/src/org/netbeans/modules/options/colors/HighlightingPanel.java
 
b/options.editor/src/org/netbeans/modules/options/colors/HighlightingPanel.java
--- 
a/options.editor/src/org/netbeans/modules/options/colors/HighlightingPanel.java
+++ 
b/options.editor/src/org/netbeans/modules/options/colors/HighlightingPanel.java
@@ -266,9 +266,6 @@
         currentProfile = colorModel.getCurrentProfile ();
         listen = false;
         setCurrentProfile (currentProfile);
-        lCategories.setListData (getCategories (currentProfile));
-        lCategories.setSelectedIndex (0);
-        refreshUI ();  
         listen = true;
         changed = false;
     }
@@ -309,6 +306,10 @@
             profileToCategories.put (currentProfile, new 
Vector<AttributeSet>(categories));
             toBeSaved.add (currentProfile);
         }
+        
+        lCategories.setListData (getCategories (currentProfile));
+        lCategories.repaint();
+        lCategories.setSelectedIndex (0);         
         refreshUI ();
     }
 
@@ -317,6 +318,9 @@
             profileToCategories.remove (profile);
         else {
             profileToCategories.put (profile, getDefaults (profile));
+            lCategories.setListData (getCategories (profile));
+            lCategories.repaint();
+            lCategories.setSelectedIndex (0);   
             refreshUI ();
         }
         toBeSaved.add (profile);

[hg] main-silver: #232744 - ArrayIndexOutOfBoundsException: Arra...

Milutin Kristofic 07/18/2013

Project Features

About this Project

Editor was started in November 2009, is owned by Martin Ryzl, and has 147 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close