Sheet sheet = (Sheet) SheetManager.getSelectedSheet();
Sheet sheet = SheetManager.getSelectedSheet();
    public Object getValueAt (Object node,                              int    col)    {        Column column = Column.values()[col];        switch (column) {        case LOGGER :            if (node instanceof UnitNode) {                UnitNode unit = (UnitNode) node;                Logger   logger = unit.getLogger();                if (logger != null) {                    return logger.getEffectiveLevel();                } else {                    return "";                }            } else if (node instanceof PackageNode) {                return "--";            } else {                return "";            }        case VALUE :            if (node instanceof Constant) {                Constant constant = (Constant) node;                if (constant instanceof Constant.Boolean) {                    Constant.Boolean cb = (Constant.Boolean) constant;                    return Boolean.valueOf(cb.getValue());                } else {                    return constant.currentString();                }            } else {                return "";            }        case TYPE :            if (node instanceof Constant) {                Constant constant = (Constant) node;                String   typeName = constant.getClass()                                            .getName();                int      dollar = typeName.lastIndexOf('$');                if (dollar != -1) {                    return typeName.substring(dollar + 1);                } else {                    return typeName;                }            } else {                return "";            }        case PIXEL :            if (node instanceof Constant) {                Constant constant = (Constant) node;                if (constant instanceof Scale.Fraction) {                    // Compute the equivalent in pixels of this interline                    // fraction, provided that we have a current sheet and its                    // scale is available.                    Sheet sheet = (Sheet) SheetManager.getSelectedSheet();                    if ((sheet != null) && sheet.SCALE.isDone()) {                        Scale          scale = sheet.getScale();                        Scale.Fraction fraction = (Scale.Fraction) constant;                        return new Integer(scale.toPixels(fraction));                    } else {                        return "?"; // Cannot compute the value                    }                }            }            return "";        case MODIF :            if (node instanceof Constant) {                Constant constant = (Constant) node;                return Boolean.valueOf(constant.isModified());            } else {                return null;            }        }        return null; // For the compiler    }