1 19 20 package org.netbeans.upgrade.systemoptions; 21 import java.lang.Object ; 22 import java.util.Iterator ; 23 24 25 28 class ColorProcessor extends PropertyProcessor { 29 ColorProcessor() { 30 super("java.awt.Color"); } 32 33 34 void processPropertyImpl(String propertyName, Object value) { 35 StringBuffer sb = new StringBuffer (); 36 if ("connectionBorderColor".equals(propertyName)|| 37 "dragBorderColor".equals(propertyName)|| 38 "formDesignerBackgroundColor".equals(propertyName)|| 39 "formDesignerBorderColor".equals(propertyName)|| 40 "guidingLineColor".equals(propertyName)|| 41 "selectionBorderColor".equals(propertyName)) { for (Iterator it = ((SerParser.ObjectWrapper)value).data.iterator(); it.hasNext();) { 43 Object o = it.next(); 44 if (o instanceof SerParser.NameValue && "value".equals(((SerParser.NameValue)o).name.name)) { addProperty(propertyName, ((SerParser.NameValue)o).value.toString()); 46 } 47 } 48 } else { 49 throw new IllegalStateException (); 50 } 51 } 52 } 53 | Popular Tags |