/* * This software is subject to the terms of the Eclipse Public License v1.0 * Agreement, available at the following URL: * http://www.eclipse.org/legal/epl-v10.html. * You must accept the terms of that agreement to use this software. * * Copyright (c) 2002-2013 Pentaho Corporation.. All rights reserved. */ package mondrian.gui.validate.impl; import mondrian.gui.SchemaTreeModel; import mondrian.gui.validate.TreeModel; /** * Implementation of <code>TreeModel</code> for Workbench. * * @author mlowery */ public class WorkbenchTreeModel implements TreeModel { private SchemaTreeModel schemaTreeModel; public WorkbenchTreeModel(SchemaTreeModel schemaTreeModel) { super(); this.schemaTreeModel = schemaTreeModel; } public Object getChild(Object parent, int index) { return schemaTreeModel.getChild(parent, index); } public int getChildCount(Object parent) { return schemaTreeModel.getChildCount(parent); } public Object getRoot() { return schemaTreeModel.getRoot(); } } // End WorkbenchTreeModel.java