2005/10/01 -eclipse plugin memo- 独自のイメージを使用する。

AbstractUIPlugin に以下を実装
/**
 * Returns an image descriptor for the image file at the given plug-in
 * relative path.
 * 
 * @param path
 *            the path
 * @return the image descriptor
 */
public static ImageDescriptor getImageDescriptor(String path) {
	return AbstractUIPlugin.imageDescriptorFromPlugin("プラグインのID", path);
}
呼び出しはこんな感じ。
ImageDescriptor imgdesc = AbstractUIPlugin.getImageDescriptor("icons/sample.png");
結構はまったので備忘録。