org.eclipse.emf.common
Class EMFPlugin.InternalHelper

java.lang.Object
  extended byorg.eclipse.emf.common.EMFPlugin.InternalHelper
Enclosing class:
EMFPlugin

public static class EMFPlugin.InternalHelper
extends Object

This just provides a common delegate for non-UI and UI plug-in classes. It is not considered API and should not be used by clients.


Field Summary
protected  Plugin plugin
           
protected  ResourceBundle resourceBundle
           
protected  ResourceBundle untranslatedResourceBundle
           
 
Constructor Summary
EMFPlugin.InternalHelper(Plugin plugin)
           
 
Method Summary
 URL getBaseURL()
           
protected  org.osgi.framework.Bundle getBundle()
           
 Object getImage(String key)
          Fetches the image associated with the given key.
protected  ILog getLog()
           
 String getString(String key, boolean translate)
           
 String getString(String key, Object[] substitutions, boolean translate)
           
 String getSymbolicName()
          Return the plugin ID.
 void log(Object logEntry)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

plugin

protected Plugin plugin

resourceBundle

protected ResourceBundle resourceBundle

untranslatedResourceBundle

protected ResourceBundle untranslatedResourceBundle
Constructor Detail

EMFPlugin.InternalHelper

public EMFPlugin.InternalHelper(Plugin plugin)
Method Detail

getBundle

protected org.osgi.framework.Bundle getBundle()

getLog

protected ILog getLog()

getSymbolicName

public String getSymbolicName()
Return the plugin ID.


getBaseURL

public URL getBaseURL()

getImage

public Object getImage(String key)
                throws IOException
Fetches the image associated with the given key. It ensures that the image exists.

Parameters:
key - the key of the image to fetch.
Returns:
the description of the image associated with the key.
Throws:
IOException - if an image doesn't exist.

getString

public String getString(String key,
                        boolean translate)

getString

public String getString(String key,
                        Object[] substitutions,
                        boolean translate)

log

public void log(Object logEntry)

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.