View Javadoc

1   /*
2    * Created on May 10, 2005, Copyright UC Regents
3    */
4   package org.telscenter.pas.steps;
5   
6   import java.util.logging.Logger;
7   
8   import java.beans.IntrospectionException;
9   import java.beans.PropertyDescriptor;
10  import java.beans.SimpleBeanInfo;
11  
12  /***
13   * BeanInfo common to all Pas step types that extend AbstractUrlStep.
14   * 
15   * @author turadg
16   */
17  public class AbstractUrlStepBeanInfo extends SimpleBeanInfo {
18  	/***
19  	 * Logger for this class
20  	 */
21  	private static final Logger logger = Logger
22  			.getLogger(AbstractUrlStepBeanInfo.class.getName());
23  
24  	public PropertyDescriptor[] getPropertyDescriptors() {
25  		try {
26  			PropertyDescriptor[] d = new PropertyDescriptor[1];
27  			d[0] = new PropertyDescriptor("url", BrowseWeb.class); //$NON-NLS-1$
28  			d[0].setDisplayName(Messages.getString("AbstractUrlStepBeanInfo.1")); //$NON-NLS-1$
29  			d[0]
30  					.setShortDescription(Messages.getString("AbstractUrlStepBeanInfo.2")); //$NON-NLS-1$
31  			return d;
32  		} catch (IntrospectionException e) {
33  			// TODO Auto-generated catch block
34  			logger.severe("exception: " + e); //$NON-NLS-1$
35  			return null;
36  		}
37  	}
38  
39  }