void (final FormSourceCodeGenerator generator, final int value) { final String className = GridConstraints.class.getName(); @NonNls String presentation; if (GridConstraints.SIZEPOLICY_FIXED == value) { presentation = className + ".SIZEPOLICY_FIXED"; } else { if ((value & GridConstraints.SIZEPOLICY_CAN_SHRINK) != 0) { presentation = className + ".SIZEPOLICY_CAN_SHRINK"; } else { presentation = null; } if ((value & GridConstraints.SIZEPOLICY_WANT_GROW) != 0) { if (presentation == null) { presentation = className + ".SIZEPOLICY_WANT_GROW"; } else { presentation += "|" + className + ".SIZEPOLICY_WANT_GROW"; } } else if ((value & GridConstraints.SIZEPOLICY_CAN_GROW) != 0) { if (presentation == null) { presentation = className + ".SIZEPOLICY_CAN_GROW"; } else { presentation += "|" + className + ".SIZEPOLICY_CAN_GROW"; } } else { // ? generator.push(value); return; } } generator.pushVar(presentation); }