Math2mat
|
00001 00017 package m2m.frontend.dynamicview.editPart; 00018 00019 import m2m.frontend.dynamicview.model.Schema; 00020 00021 import org.eclipse.gef.EditPart; 00022 import org.eclipse.gef.EditPartFactory; 00023 00024 00025 public class PropertyEditPartFactory implements EditPartFactory 00026 { 00033 public EditPart createEditPart(EditPart context, Object model) 00034 { 00035 EditPart part = null; 00036 00037 if (model instanceof Schema) 00038 part = new PropertyPart(); 00039 00040 if (part != null) 00041 part.setModel(model); 00042 00043 return part; 00044 } 00045 }