01: /*******************************************************************************
02: * Copyright (c) 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 java.io.InputStream;
13:
14: import org.eclipse.core.resources.IFile;
15: import org.eclipse.core.runtime.CoreException;
16:
17: /**
18: * AbbreviatedFragmentModel
19: *
20: */
21: public class AbbreviatedFragmentModel extends WorkspaceFragmentModel {
22:
23: /**
24: *
25: */
26: private static final long serialVersionUID = 1L;
27:
28: private String[] fExtensionPointIDs;
29:
30: /**
31: * @param file
32: * @param abbreviated
33: */
34: public AbbreviatedFragmentModel(IFile file,
35: String[] extensionPointIDs) {
36: super (file, true);
37:
38: fExtensionPointIDs = extensionPointIDs;
39: }
40:
41: /**
42: * @param file
43: * @param extensionPointID
44: */
45: public AbbreviatedFragmentModel(IFile file, String extensionPointID) {
46: super (file, true);
47:
48: fExtensionPointIDs = new String[] { extensionPointID };
49: }
50:
51: /* (non-Javadoc)
52: * @see org.eclipse.pde.internal.core.plugin.AbstractPluginModelBase#load(java.io.InputStream, boolean)
53: */
54: public void load(InputStream stream, boolean outOfSync)
55: throws CoreException {
56: load(stream, outOfSync, new AbbreviatedPluginHandler(
57: fExtensionPointIDs));
58: }
59:
60: }
|