01: /*******************************************************************************
02: * Copyright (c) 2005, 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.text.bundle;
11:
12: import java.io.PrintWriter;
13:
14: import org.eclipse.pde.internal.core.bundle.BundleObject;
15:
16: public class PackageFriend extends BundleObject {
17:
18: private static final long serialVersionUID = 1L;
19:
20: private String fName;
21:
22: private transient PackageObject fPackageObject;
23:
24: public PackageFriend(PackageObject object, String name) {
25: fName = name;
26: fPackageObject = object;
27: }
28:
29: public String getName() {
30: return fName;
31: }
32:
33: public String toString() {
34: return fName;
35: }
36:
37: public ManifestHeader getHeader() {
38: return fPackageObject.getHeader();
39: }
40:
41: /**
42: * @param object
43: */
44: public void reconnect(PackageObject object) {
45: fPackageObject = object;
46: }
47:
48: /* (non-Javadoc)
49: * @see org.eclipse.pde.internal.core.bundle.BundleObject#writeDelimeter(java.io.PrintWriter)
50: */
51: public void writeDelimeter(PrintWriter writer) {
52: writer.print(',');
53: }
54:
55: }
|