This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
/** Creates a new instance of SmartAttributeSet */
private Immutable(HashMap<Object, Object> attribs) {
this.attribs = attribs == null ? new HashMap<Object, Object>() : attribs;
Object resolver = this.attribs.get(AttributeSet.ResolveAttribute);
if(resolver instanceof AttributeSet){
setResolveParent((AttributeSet)resolver);
}else{
//broken or null resolver key. Ignore (log if different class maybe ?)
}
public synchronized void setResolveParent(AttributeSet parent) {
for(AttributeSet delegate : delegates) {
if (delegate.isDefined(key)) {
AttributeSet current = delegate;
return delegate.getAttribute(key);
while (current != null) {
if (current.isDefined(key)) {
return current.getAttribute(key);
current = current.getResolveParent();
return null;