KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > ui > model > bundle > PackageFriend


1 /*******************************************************************************
2  * Copyright (c) 2005 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 package org.eclipse.pde.internal.ui.model.bundle;
12
13 import org.eclipse.pde.internal.core.bundle.BundleObject;
14
15 public class PackageFriend extends BundleObject {
16
17     private static final long serialVersionUID = 1L;
18
19     private String JavaDoc fName;
20
21     private PackageObject fPackageObject;
22     
23     public PackageFriend(PackageObject object, String JavaDoc name) {
24         fName = name;
25         fPackageObject = object;
26     }
27
28     public String JavaDoc getName() {
29         return fName;
30     }
31     
32     public String JavaDoc toString() {
33         return fName;
34     }
35     
36     public ManifestHeader getHeader() {
37         return fPackageObject.getHeader();
38     }
39
40 }
41
Popular Tags