String label = getName() + " : " + this.column.getTypeName(); //$NON-NLS-1$
if (this.column.isNumeric()) {
if (this.column.getSize() > 0 || this.column.getNumberOfFractionalDigits() > 0) {
- label += "(" + Integer.toString(this.column.getSize()); //$NON-NLS-1$
+ label += "(" + Long.toString(this.column.getSize()); //$NON-NLS-1$
if (this.column.getNumberOfFractionalDigits() > 0) {
label += "," + Integer.toString(this.column.getNumberOfFractionalDigits()); //$NON-NLS-1$
}
label += ")"; //$NON-NLS-1$
}
} else if (this.column.getSize() > 0) {
- label += "(" + Integer.toString(this.column.getSize()) + ")"; //$NON-NLS-1$ //$NON-NLS-2$
+ label += "(" + Long.toString(this.column.getSize()) + ")"; //$NON-NLS-1$ //$NON-NLS-2$
}
return label;
}
return column;
}
+ void setColumn(Column column) {
+ if (this.column == null || !this.column.equals(column)) {
+ Column original = column;
+ this.column = column;
+ firePropertyChange("column", original, column);
+ }
+ }
}