Commit 877fb3cb by Mark Wielaard Committed by Michael Koch

BeanDescriptor.java (BeanDescriptor): Set the FeatureDescriptor programmatic name.

2004-03-11  Mark Wielaard  <mark@klomp.org>

	* java/beans/BeanDescriptor.java (BeanDescriptor):
	Set the FeatureDescriptor programmatic name.

From-SVN: r79324
parent 254ea477
2004-03-11 Mark Wielaard <mark@klomp.org>
* java/beans/BeanDescriptor.java (BeanDescriptor):
Set the FeatureDescriptor programmatic name.
2004-03-11 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/channels/natFileChannelEcos.cc: Totally reworked.
......
/* java.beans.BeanDescriptor
Copyright (C) 1998 Free Software Foundation, Inc.
Copyright (C) 1998, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath.
......@@ -67,6 +67,14 @@ public class BeanDescriptor extends FeatureDescriptor {
public BeanDescriptor(Class beanClass, Class customizerClass) {
this.beanClass = beanClass;
this.customizerClass = customizerClass;
// Set the FeatureDescriptor programmatic name.
String name = beanClass.getName();
int lastInd = name.lastIndexOf('.');
if (lastInd != -1)
name = name.substring(lastInd + 1);
setName(name);
}
/** Get the Bean's class. **/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment