Home | History | Annotate | Download | only in editor
      1 /*******************************************************************************
      2  * Copyright (c) 2011 Google, Inc.
      3  * All rights reserved. This program and the accompanying materials
      4  * are made available under the terms of the Eclipse Public License v1.0
      5  * which accompanies this distribution, and is available at
      6  * http://www.eclipse.org/legal/epl-v10.html
      7  *
      8  * Contributors:
      9  *    Google, Inc. - initial API and implementation
     10  *******************************************************************************/
     11 package org.eclipse.wb.internal.core.model.property.editor;
     12 
     13 import java.beans.PropertyDescriptor;
     14 
     15 /**
     16  * Provider for creating {@link PropertyEditor}'s.
     17  *
     18  * @author lobas_av
     19  * @coverage core.model.property.editor
     20  */
     21 public class PropertyEditorProvider {
     22   /**
     23    * @return the {@link PropertyEditor} for given property type or <code>null</code>.
     24    */
     25   public PropertyEditor getEditorForType(Class<?> propertyType) throws Exception {
     26     return null;
     27   }
     28 
     29   /**
     30    * @return the {@link PropertyEditor} for given {@link java.beans.PropertyEditor} editor type or
     31    *         <code>null</code>.
     32    */
     33   public PropertyEditor getEditorForEditorType(Class<?> editorType) throws Exception {
     34     return null;
     35   }
     36 
     37   /**
     38    * @return the {@link PropertyEditor} for given {@link PropertyDescriptor} or <code>null</code>.
     39    */
     40   public PropertyEditor getEditorForPropertyDescriptor(PropertyDescriptor descriptor)
     41       throws Exception {
     42     return null;
     43   }
     44 }