KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > core > internal > runtime > Product


1 /*******************************************************************************
2  * Copyright (c) 2004, 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 package org.eclipse.core.internal.runtime;
12
13 import org.eclipse.core.runtime.IProduct;
14 import org.eclipse.equinox.internal.app.IBranding;
15 import org.osgi.framework.Bundle;
16
17 public class Product implements IProduct {
18     IBranding branding;
19     public Product(IBranding branding) {
20         this.branding = branding;
21     }
22
23     public String JavaDoc getApplication() {
24         return branding.getApplication();
25     }
26
27     public Bundle getDefiningBundle() {
28         return branding.getDefiningBundle();
29     }
30
31     public String JavaDoc getDescription() {
32         return branding.getDescription();
33     }
34
35     public String JavaDoc getId() {
36         return branding.getId();
37     }
38
39     public String JavaDoc getName() {
40         return branding.getName();
41     }
42
43     public String JavaDoc getProperty(String JavaDoc key) {
44         return branding.getProperty(key);
45     }
46 }
47
Popular Tags