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