use of org.hibernate.eclipse.graph.model.PropertyViewAdapter in project jbosstools-hibernate by jbosstools.
the class PropertyEditPart method createFigure.
protected IFigure createFigure() {
IProperty property = ((PropertyViewAdapter) getModel()).getProperty();
String label = property.getName();
Label propertyLabel = new EditableLabel(label);
propertyLabel.setIcon(((PropertyViewAdapter) getModel()).getImage());
return propertyLabel;
}
use of org.hibernate.eclipse.graph.model.PropertyViewAdapter in project jbosstools-hibernate by jbosstools.
the class PersistentClassEditPart method getModelChildren.
protected List<PropertyViewAdapter> getModelChildren() {
List<PropertyViewAdapter> list = new ArrayList<PropertyViewAdapter>();
IProperty identifierProperty = getPersistentClass().getIdentifierProperty();
if (identifierProperty != null) {
list.add(new PropertyViewAdapter(getPersistentClassViewAdapter(), identifierProperty));
}
Iterator<IProperty> propertyIterator = getPersistentClass().getPropertyIterator();
while (propertyIterator.hasNext()) {
list.add(new PropertyViewAdapter(getPersistentClassViewAdapter(), propertyIterator.next()));
}
return list;
}
Aggregations