added perspective shortcuts for debug and resource to php perspective
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / view / bookmark / ColumnNode.java
index 2894c03..3455de3 100644 (file)
@@ -34,14 +34,14 @@ public class ColumnNode extends TreeNode {
         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;
     }
@@ -61,4 +61,11 @@ public class ColumnNode extends TreeNode {
         return column;
     }
 
+    void setColumn(Column column) {
+       if (this.column == null || !this.column.equals(column)) {
+               Column original = column;
+               this.column = column;
+               firePropertyChange("column", original, column);
+       }
+    }
 }