org.eclipse.xtext.ui.PluginImageHelper Java Examples

The following examples show how to use org.eclipse.xtext.ui.PluginImageHelper. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MrsGrantsSecretCompartmentsProject.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
private Pair<String, Image> image(final String id) {
  PluginImageHelper _pluginImageHelper = new PluginImageHelper();
  StringConcatenation _builder = new StringConcatenation();
  _builder.append("platform:/plugin/");
  _builder.append(FowlerdslActivator.PLUGIN_ID);
  _builder.append("/");
  _builder.append(id);
  Image _image = _pluginImageHelper.getImage(_builder.toString());
  return Pair.<String, Image>of(id, _image);
}
 
Example #2
Source File: EmfUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IImageHelper> bindIImageHelper() {
	return PluginImageHelper.class;
}
 
Example #3
Source File: AbstractSARLUiModule.java    From sarl with Apache License 2.0 4 votes vote down vote up
public Class<? extends IImageHelper.IImageDescriptorHelper> bindIImageDescriptorHelper() {
	return PluginImageHelper.class;
}
 
Example #4
Source File: AbstractSARLUiModule.java    From sarl with Apache License 2.0 4 votes vote down vote up
public Class<? extends IImageHelper> bindIImageHelper() {
	return PluginImageHelper.class;
}
 
Example #5
Source File: XtextSpyModule.java    From dsl-devkit with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Bind IImageHelper.
 * 
 * @return PluginImageHelper
 */
public Class<? extends IImageHelper> bindImageHelper() {
  return PluginImageHelper.class;
}