KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > core > plugin > AbbreviatedPluginModel


1 /*******************************************************************************
2  * Copyright (c) 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.pde.internal.core.plugin;
13
14 import java.io.InputStream JavaDoc;
15
16 import org.eclipse.core.resources.IFile;
17 import org.eclipse.core.runtime.CoreException;
18
19 /**
20  * AbbreviatedPluginModel
21  *
22  */

23 public class AbbreviatedPluginModel extends WorkspacePluginModel {
24
25     /**
26      *
27      */

28     private static final long serialVersionUID = 1L;
29
30     private String JavaDoc[] fExtensionPointIDs;
31     
32     /**
33      * @param file
34      * @param abbreviated
35      */

36     public AbbreviatedPluginModel(IFile file, String JavaDoc[] extensionPointIDs) {
37         super(file, true);
38         
39         fExtensionPointIDs = extensionPointIDs;
40     }
41
42     /**
43      * @param file
44      * @param extensionPointID
45      */

46     public AbbreviatedPluginModel(IFile file, String JavaDoc extensionPointID) {
47         super(file, true);
48         
49         fExtensionPointIDs = new String JavaDoc[] {extensionPointID};
50     }
51     
52     /* (non-Javadoc)
53      * @see org.eclipse.pde.internal.core.plugin.AbstractPluginModelBase#load(java.io.InputStream, boolean)
54      */

55     public void load(InputStream JavaDoc stream, boolean outOfSync)
56             throws CoreException {
57         load(stream, outOfSync, new AbbreviatedPluginHandler(fExtensionPointIDs));
58     }
59     
60 }
61
Popular Tags