KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > nightlabs > editor2d > properties > IntPropertyDescriptor


1 /**
2  * <p> Project: com.nightlabs.editor2d </p>
3  * <p> Copyright: Copyright (c) 2004 </p>
4  * <p> Company: NightLabs GmbH (Germany) </p>
5  * <p> Creation Date: 03.11.2004 </p>
6  * <p> Author: Daniel Mazurek </p>
7 **/

8 package com.nightlabs.editor2d.properties;
9
10 import org.eclipse.jface.viewers.CellEditor;
11 import org.eclipse.swt.widgets.Composite;
12 import org.eclipse.ui.views.properties.PropertyDescriptor;
13
14
15 public class IntPropertyDescriptor
16 extends PropertyDescriptor
17 {
18
19   /**
20    * @param id
21    * @param displayName
22    */

23   public IntPropertyDescriptor(Object JavaDoc id, String JavaDoc displayName) {
24     super(id, displayName);
25   }
26   
27   public CellEditor createPropertyEditor(Composite parent)
28   {
29     CellEditor editor = new IntCellEditor(parent);
30     if (getValidator() != null)
31         editor.setValidator(getValidator());
32     return editor;
33   }
34   
35 }
36
Popular Tags