01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 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.plugin;
11:
12: import org.eclipse.core.resources.IFile;
13: import org.eclipse.pde.core.plugin.IPlugin;
14: import org.eclipse.pde.core.plugin.IPluginBase;
15: import org.eclipse.pde.core.plugin.IPluginModel;
16:
17: public class WorkspacePluginModel extends WorkspacePluginModelBase
18: implements IPluginModel {
19:
20: private static final long serialVersionUID = 1L;
21:
22: public WorkspacePluginModel(IFile file, boolean abbreviated) {
23: super (file, abbreviated);
24: }
25:
26: public IPluginBase createPluginBase() {
27: Plugin plugin = new Plugin(!isEditable());
28: plugin.setModel(this );
29: return plugin;
30: }
31:
32: public IPlugin getPlugin() {
33: return (IPlugin) getPluginBase();
34: }
35: }
|