[jboss-cvs] jbosside/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/workbench ...

Max Rydahl Andersen mandersen at jboss.com
Thu Aug 10 03:01:52 EDT 2006


  User: mandersen
  Date: 06/08/10 03:01:52

  Modified:    hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/workbench 
                        GenericPropertySource.java
  Log:
  customizing properties for exporter
  
  Revision  Changes    Path
  1.3       +3 -1      jbosside/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/workbench/GenericPropertySource.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: GenericPropertySource.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbosside/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/workbench/GenericPropertySource.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- GenericPropertySource.java	7 Jul 2006 13:51:10 -0000	1.2
  +++ GenericPropertySource.java	10 Aug 2006 07:01:51 -0000	1.3
  @@ -55,7 +55,7 @@
   	}
   
   	public Object getEditableValue() {
  -		return null;
  +		return real;
   	}
   
   	public IPropertyDescriptor[] getPropertyDescriptors() {
  @@ -64,6 +64,8 @@
   	}
   
   	private IPropertyDescriptor[] buildPropertyDescriptors() {
  +		if (real==null) return new IPropertyDescriptor[0];
  +		
   		try {
   			BeanInfo beanInfo = Introspector.getBeanInfo( real.getClass(), Object.class );
   			PropertyDescriptor[] propertyDescriptors = beanInfo.getPropertyDescriptors();
  
  
  



More information about the jboss-cvs-commits mailing list