1 11 package org.eclipse.pde.internal.core.plugin; 12 13 import org.eclipse.core.resources.IFile; 14 import org.eclipse.pde.core.plugin.IPlugin; 15 import org.eclipse.pde.core.plugin.IPluginBase; 16 import org.eclipse.pde.core.plugin.IPluginModel; 17 18 public class WorkspacePluginModel extends WorkspacePluginModelBase implements 19 IPluginModel { 20 21 private static final long serialVersionUID = 1L; 22 23 public WorkspacePluginModel(IFile file, boolean abbreviated) { 24 super(file, abbreviated); 25 } 26 27 public IPluginBase createPluginBase() { 28 Plugin plugin = new Plugin(); 29 plugin.setModel(this); 30 return plugin; 31 } 32 33 public IPlugin getPlugin() { 34 return (IPlugin) getPluginBase(); 35 } 36 } 37 | Popular Tags |