| /******************************************************************************* |
| * Copyright (c) 2017 1C-Soft LLC. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Vladimir Piskarev (1C) - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.handly.model.impl; |
| |
| import org.eclipse.handly.model.IModel; |
| |
| /** |
| * A simple model manager for tests. |
| */ |
| class SimpleModelManager |
| implements IModelManager |
| { |
| IModel model = new SimpleModel(); |
| ElementManager elementManager = new ElementManager(new NullBodyCache()); |
| |
| @Override |
| public IModel getModel() |
| { |
| return model; |
| } |
| |
| @Override |
| public ElementManager getElementManager() |
| { |
| return elementManager; |
| } |
| } |