01: /*
02: * uDig - User Friendly Desktop Internet GIS client
03: * http://udig.refractions.net
04: * (C) 2004, Refractions Research Inc.
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation;
09: * version 2.1 of the License.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: */
17: package net.refractions.udig.project.ui.internal.properties;
18:
19: import org.eclipse.jface.viewers.DialogCellEditor;
20: import org.eclipse.swt.widgets.Composite;
21: import org.eclipse.swt.widgets.Control;
22: import org.geotools.feature.FeatureType;
23:
24: /**
25: * Allows FeatureType schemas to be edited.
26: *
27: * @author jeichar
28: * @since 0.3
29: */
30: public class SchemaEditor extends DialogCellEditor {
31:
32: private FeatureType type;
33:
34: /**
35: * Creates a new instance of SchemaEditor
36: *
37: * @param parent The parent of this editor widget
38: * @param type The feature type to edit.
39: */
40: public SchemaEditor(Composite parent, FeatureType type) {
41: super (parent);
42: this .type = type;
43: }
44:
45: /**
46: * @see org.eclipse.jface.viewers.DialogCellEditor#openDialogBox(org.eclipse.swt.widgets.Control)
47: */
48: protected Object openDialogBox(Control cellEditorWindow) {
49: type.getTypeName(); // does nothing yet.
50: // TODO Auto-generated method stub
51: return null;
52: }
53: }
|