Search in sources :

Example 1 with ColumnViewAdapter

use of org.hibernate.eclipse.graph.model.ColumnViewAdapter in project jbosstools-hibernate by jbosstools.

the class ColumnEditPart method createFigure.

protected IFigure createFigure() {
    IColumn column = ((ColumnViewAdapter) getModel()).getcolumn();
    String label = column.getName();
    Label columnLabel = new EditableLabel(label);
    // columnLabel.setIcon(((ColumnViewAdapter)getModel()).getImage());
    return columnLabel;
}
Also used : ColumnViewAdapter(org.hibernate.eclipse.graph.model.ColumnViewAdapter) EditableLabel(org.hibernate.eclipse.graph.figures.EditableLabel) IColumn(org.jboss.tools.hibernate.runtime.spi.IColumn) EditableLabel(org.hibernate.eclipse.graph.figures.EditableLabel) Label(org.eclipse.draw2d.Label)

Aggregations

Label (org.eclipse.draw2d.Label)1 EditableLabel (org.hibernate.eclipse.graph.figures.EditableLabel)1 ColumnViewAdapter (org.hibernate.eclipse.graph.model.ColumnViewAdapter)1 IColumn (org.jboss.tools.hibernate.runtime.spi.IColumn)1