01: /*******************************************************************************
02: * Copyright (c) 2000, 2007 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.pde.internal.core;
11:
12: import java.io.File;
13:
14: import org.eclipse.pde.core.plugin.IPluginModelBase;
15:
16: public class ModelFileAdapter extends FileAdapter {
17: private IPluginModelBase fModel;
18:
19: public ModelFileAdapter(IPluginModelBase model, File file,
20: IFileAdapterFactory factory) {
21: super (null, file, factory);
22: fModel = model;
23: }
24:
25: public IPluginModelBase getModel() {
26: return fModel;
27: }
28: }
|