KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > equinox > internal > app > ProviderExtensionBranding


1 package org.eclipse.equinox.internal.app;
2
3 import org.osgi.framework.Bundle;
4
5 public class ProviderExtensionBranding implements IBranding {
6     Object JavaDoc product;
7     public ProviderExtensionBranding(Object JavaDoc product) {
8         this.product = product;
9     }
10
11     public String JavaDoc getApplication() {
12         return (String JavaDoc) EclipseAppContainer.callMethod(product, "getApplication", null, null); //$NON-NLS-1$
13
}
14
15     public Bundle getDefiningBundle() {
16         return (Bundle) EclipseAppContainer.callMethod(product, "getDefiningBundle", null, null); //$NON-NLS-1$
17
}
18
19     public String JavaDoc getDescription() {
20         return (String JavaDoc) EclipseAppContainer.callMethod(product, "getDescription", null, null); //$NON-NLS-1$
21
}
22
23     public String JavaDoc getId() {
24         return (String JavaDoc) EclipseAppContainer.callMethod(product, "getId", null, null); //$NON-NLS-1$
25
}
26
27     public String JavaDoc getName() {
28         return (String JavaDoc) EclipseAppContainer.callMethod(product, "getName", null, null); //$NON-NLS-1$
29
}
30
31     public String JavaDoc getProperty(String JavaDoc key) {
32         return (String JavaDoc) EclipseAppContainer.callMethod(product, "getProperty", new Class JavaDoc[] {String JavaDoc.class}, new Object JavaDoc[] {key}); //$NON-NLS-1$
33
}
34
35     public Object JavaDoc getProduct() {
36         return product;
37     }
38
39 }
40
Popular Tags