org.eclipse.emf.edit.ui.provider.ExtendedImageRegistry Java Examples

The following examples show how to use org.eclipse.emf.edit.ui.provider.ExtendedImageRegistry. 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: OutlinePage.java    From xtext-eclipse with Eclipse Public License 2.0 6 votes vote down vote up
protected void configureTree() {
	TreeViewer treeViewer = getTreeViewer();
	contentProvider.setFilterAndSorter(filterAndSorter);
	treeViewer.setUseHashlookup(true);
	// access EMF's image registry now, since it needs a UI-thread.
	ExtendedImageRegistry.getInstance();
	if (treeProvider instanceof IOutlineTreeProvider.Background) {
		showBusyStatus();
		new Job("Initializing Outline") {
			@Override
			protected IStatus run(IProgressMonitor monitor) {
				try {
					initializeTreeContent();
					return Status.OK_STATUS;
				} catch (Throwable e) {
					LOG.error("Error initializing outline", e);
					return Status.OK_STATUS; 
				}
			}
			
		}.schedule();
	} else {
		initializeTreeContent();
	}
}
 
Example #2
Source File: ChartModelWizard.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * This just records the information.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated
 */
@Override
public void init ( final IWorkbench workbench, final IStructuredSelection selection )
{
    this.workbench = workbench;
    this.selection = selection;
    setWindowTitle ( ChartEditorPlugin.INSTANCE.getString ( "_UI_Wizard_label" ) ); //$NON-NLS-1$
    setDefaultPageImageDescriptor ( ExtendedImageRegistry.INSTANCE
            .getImageDescriptor ( ChartEditorPlugin.INSTANCE
                    .getImage ( "full/wizban/NewChart" ) ) ); //$NON-NLS-1$
}
 
Example #3
Source File: ProcessDiagramEditorPlugin.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
public ImageDescriptor getItemImageDescriptor(Object item) {
	IItemLabelProvider labelProvider = (IItemLabelProvider) adapterFactory.adapt(item, IItemLabelProvider.class);
	if (labelProvider != null) {
		return ExtendedImageRegistry.getInstance().getImageDescriptor(labelProvider.getImage(item));
	}
	return null;
}
 
Example #4
Source File: ExtensionsModelWizard.java    From ifml-editor with MIT License 5 votes vote down vote up
/**
 * This just records the information.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void init(IWorkbench workbench, IStructuredSelection selection) {
	this.workbench = workbench;
	this.selection = selection;
	setWindowTitle(IFMLMetamodelEditorPlugin.INSTANCE.getString("_UI_Wizard_label"));
	setDefaultPageImageDescriptor(ExtendedImageRegistry.INSTANCE.getImageDescriptor(IFMLMetamodelEditorPlugin.INSTANCE.getImage("full/wizban/NewExtensions")));
}
 
Example #5
Source File: CoreModelWizard.java    From ifml-editor with MIT License 5 votes vote down vote up
/**
 * This just records the information. <!-- begin-user-doc --> <!--
 * end-user-doc -->
 * 
 * @generated
 */
public void init(IWorkbench workbench, IStructuredSelection selection) {
	this.workbench = workbench;
	this.selection = selection;
	setWindowTitle(IFMLMetamodelEditorPlugin.INSTANCE
			.getString("_UI_Wizard_label"));
	setDefaultPageImageDescriptor(ExtendedImageRegistry.INSTANCE
			.getImageDescriptor(IFMLMetamodelEditorPlugin.INSTANCE
					.getImage("full/wizban/NewCore")));
}
 
Example #6
Source File: EipModelWizard.java    From eip-designer with Apache License 2.0 5 votes vote down vote up
/**
   * This just records the information.
   * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
   * @generated
   */
public void init(IWorkbench workbench, IStructuredSelection selection) {
     this.workbench = workbench;
     this.selection = selection;
     setWindowTitle(EipEditorPlugin.INSTANCE.getString("_UI_Wizard_label"));
     setDefaultPageImageDescriptor(ExtendedImageRegistry.INSTANCE.getImageDescriptor(EipEditorPlugin.INSTANCE.getImage("full/wizban/NewEip")));
  }
 
Example #7
Source File: BeansModelWizard.java    From hybris-commerce-eclipse-plugin with Apache License 2.0 5 votes vote down vote up
/**
 * This just records the information.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void init(IWorkbench workbench, IStructuredSelection selection) {
	this.workbench = workbench;
	this.selection = selection;
	setWindowTitle(BeansEditorPlugin.INSTANCE.getString("_UI_Wizard_label"));
	setDefaultPageImageDescriptor(ExtendedImageRegistry.INSTANCE.getImageDescriptor(BeansEditorPlugin.INSTANCE.getImage("full/wizban/NewBeans")));
}
 
Example #8
Source File: GenconfModelWizard.java    From M2Doc with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * This just records the information.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated
 */
public void init(IWorkbench workbench, IStructuredSelection selection) {
    this.workbench = workbench;
    this.selection = selection;
    setWindowTitle(M2docconfEditorPlugin.INSTANCE.getString("_UI_Wizard_label"));
    setDefaultPageImageDescriptor(ExtendedImageRegistry.INSTANCE
            .getImageDescriptor(M2docconfEditorPlugin.INSTANCE.getImage("full/wizban/NewGenconf")));
}
 
Example #9
Source File: CrossflowDiagramEditorPlugin.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
public ImageDescriptor getItemImageDescriptor(Object item) {
	IItemLabelProvider labelProvider = (IItemLabelProvider) adapterFactory.adapt(item, IItemLabelProvider.class);
	if (labelProvider != null) {
		return ExtendedImageRegistry.getInstance().getImageDescriptor(labelProvider.getImage(item));
	}
	return null;
}
 
Example #10
Source File: CrossflowModelWizard.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * This just records the information.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void init(IWorkbench workbench, IStructuredSelection selection) {
	this.workbench = workbench;
	this.selection = selection;
	setWindowTitle(CrossflowEditorPlugin.INSTANCE.getString("_UI_Wizard_label"));
	setDefaultPageImageDescriptor(ExtendedImageRegistry.INSTANCE.getImageDescriptor(CrossflowEditorPlugin.INSTANCE.getImage("full/wizban/NewCrossflow")));
}
 
Example #11
Source File: ConfigurationModelWizard.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * This just records the information.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void init ( IWorkbench workbench, IStructuredSelection selection )
{
    this.workbench = workbench;
    this.selection = selection;
    setWindowTitle ( ExecEditorPlugin.INSTANCE.getString ( "_UI_Wizard_label" ) ); //$NON-NLS-1$
    setDefaultPageImageDescriptor ( ExtendedImageRegistry.INSTANCE.getImageDescriptor ( ExecEditorPlugin.INSTANCE.getImage ( "full/wizban/NewConfiguration" ) ) ); //$NON-NLS-1$
}
 
Example #12
Source File: ItemModelWizard.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * This just records the information.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void init ( IWorkbench workbench, IStructuredSelection selection )
{
    this.workbench = workbench;
    this.selection = selection;
    setWindowTitle ( ItemEditorPlugin.INSTANCE.getString ( "_UI_Wizard_label" ) ); //$NON-NLS-1$
    setDefaultPageImageDescriptor ( ExtendedImageRegistry.INSTANCE.getImageDescriptor ( ItemEditorPlugin.INSTANCE.getImage ( "full/wizban/NewItem" ) ) ); //$NON-NLS-1$
}
 
Example #13
Source File: ComponentModelWizard.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * This just records the information.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void init ( IWorkbench workbench, IStructuredSelection selection )
{
    this.workbench = workbench;
    this.selection = selection;
    setWindowTitle ( ComponentEditorPlugin.INSTANCE.getString ( "_UI_Wizard_label" ) ); //$NON-NLS-1$
    setDefaultPageImageDescriptor ( ExtendedImageRegistry.INSTANCE.getImageDescriptor ( ComponentEditorPlugin.INSTANCE.getImage ( "full/wizban/NewComponent" ) ) ); //$NON-NLS-1$
}
 
Example #14
Source File: GlobalizeModelWizard.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * This just records the information.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void init ( IWorkbench workbench, IStructuredSelection selection )
{
    this.workbench = workbench;
    this.selection = selection;
    setWindowTitle ( GlobalizeEditorPlugin.INSTANCE.getString ( "_UI_Wizard_label" ) ); //$NON-NLS-1$
    setDefaultPageImageDescriptor ( ExtendedImageRegistry.INSTANCE.getImageDescriptor ( GlobalizeEditorPlugin.INSTANCE.getImage ( "full/wizban/NewGlobalize" ) ) ); //$NON-NLS-1$
}
 
Example #15
Source File: ComponentLabelProvider.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public Image getImage ( final Object element )
{
    final IItemLabelProvider labelProvider = (IItemLabelProvider)this.adapterFactory.adapt ( element, IItemLabelProvider.class );
    if ( labelProvider != null )
    {
        return ExtendedImageRegistry.getInstance ().getImage ( labelProvider.getImage ( element ) );
    }
    else
    {
        return super.getImage ( element );
    }
}
 
Example #16
Source File: SecurityModelWizard.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * This just records the information.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void init ( IWorkbench workbench, IStructuredSelection selection )
{
    this.workbench = workbench;
    this.selection = selection;
    setWindowTitle ( SecurityEditorPlugin.INSTANCE.getString ( "_UI_Wizard_label" ) ); //$NON-NLS-1$
    setDefaultPageImageDescriptor ( ExtendedImageRegistry.INSTANCE.getImageDescriptor ( SecurityEditorPlugin.INSTANCE.getImage ( "full/wizban/NewSecurity" ) ) ); //$NON-NLS-1$
}
 
Example #17
Source File: InfrastructureModelWizard.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * This just records the information.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void init ( IWorkbench workbench, IStructuredSelection selection )
{
    this.workbench = workbench;
    this.selection = selection;
    setWindowTitle ( InfrastructureEditorPlugin.INSTANCE.getString ( "_UI_Wizard_label" ) ); //$NON-NLS-1$
    setDefaultPageImageDescriptor ( ExtendedImageRegistry.INSTANCE.getImageDescriptor ( InfrastructureEditorPlugin.INSTANCE.getImage ( "full/wizban/NewInfrastructure" ) ) ); //$NON-NLS-1$
}
 
Example #18
Source File: RecipeModelWizard.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * This just records the information.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated
 */
@Override
public void init ( final IWorkbench workbench, final IStructuredSelection selection )
{
    this.workbench = workbench;
    this.selection = selection;
    setWindowTitle ( RecipeEditorPlugin.INSTANCE.getString ( "_UI_Wizard_label" ) ); //$NON-NLS-1$
    setDefaultPageImageDescriptor ( ExtendedImageRegistry.INSTANCE.getImageDescriptor ( RecipeEditorPlugin.INSTANCE.getImage ( "full/wizban/NewRecipe" ) ) ); //$NON-NLS-1$
}
 
Example #19
Source File: MemoryModelWizard.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * This just records the information.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated
 */
@Override
public void init ( final IWorkbench workbench, final IStructuredSelection selection )
{
    this.workbench = workbench;
    this.selection = selection;
    setWindowTitle ( MemoryEditorPlugin.INSTANCE.getString ( "_UI_Wizard_label" ) ); //$NON-NLS-1$
    setDefaultPageImageDescriptor ( ExtendedImageRegistry.INSTANCE.getImageDescriptor ( MemoryEditorPlugin.INSTANCE.getImage ( "full/wizban/NewMemory" ) ) ); //$NON-NLS-1$
}
 
Example #20
Source File: WorldModelWizard.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * This just records the information.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated
 */
@Override
public void init ( final IWorkbench workbench, final IStructuredSelection selection )
{
    this.workbench = workbench;
    this.selection = selection;
    setWindowTitle ( WorldEditorPlugin.INSTANCE.getString ( "_UI_Wizard_label" ) ); //$NON-NLS-1$
    setDefaultPageImageDescriptor ( ExtendedImageRegistry.INSTANCE.getImageDescriptor ( WorldEditorPlugin.INSTANCE.getImage ( "full/wizban/NewConfiguration" ) ) ); //$NON-NLS-1$
}
 
Example #21
Source File: ProfileModelWizard.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * This just records the information.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void init ( IWorkbench workbench, IStructuredSelection selection )
{
    this.workbench = workbench;
    this.selection = selection;
    setWindowTitle ( WorldEditorPlugin.INSTANCE.getString ( "_UI_Wizard_label" ) ); //$NON-NLS-1$
    setDefaultPageImageDescriptor ( ExtendedImageRegistry.INSTANCE.getImageDescriptor ( WorldEditorPlugin.INSTANCE.getImage ( "full/wizban/NewProfile" ) ) ); //$NON-NLS-1$
}
 
Example #22
Source File: SetupModelWizard.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * This just records the information.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void init ( IWorkbench workbench, IStructuredSelection selection )
{
    this.workbench = workbench;
    this.selection = selection;
    setWindowTitle ( WorldEditorPlugin.INSTANCE.getString ( "_UI_Wizard_label" ) ); //$NON-NLS-1$
    setDefaultPageImageDescriptor ( ExtendedImageRegistry.INSTANCE.getImageDescriptor ( WorldEditorPlugin.INSTANCE.getImage ( "full/wizban/NewSetup" ) ) ); //$NON-NLS-1$
}
 
Example #23
Source File: DeploymentModelWizard.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * This just records the information.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void init ( IWorkbench workbench, IStructuredSelection selection )
{
    this.workbench = workbench;
    this.selection = selection;
    setWindowTitle ( WorldEditorPlugin.INSTANCE.getString ( "_UI_Wizard_label" ) ); //$NON-NLS-1$
    setDefaultPageImageDescriptor ( ExtendedImageRegistry.INSTANCE.getImageDescriptor ( WorldEditorPlugin.INSTANCE.getImage ( "full/wizban/NewDeployment" ) ) ); //$NON-NLS-1$
}
 
Example #24
Source File: VisualInterfaceModelWizard.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * This just records the information.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 *
 * @generated NOT
 */
@Override
public void init ( final IWorkbench workbench, final IStructuredSelection selection )
{
    this.workbench = workbench;
    this.selection = selection;
    setWindowTitle ( VisualInterfaceEditorPlugin.INSTANCE.getString ( "_UI_Wizard_label" ) ); //$NON-NLS-1$
    setDefaultPageImageDescriptor ( ExtendedImageRegistry.INSTANCE.getImageDescriptor ( VisualInterfaceEditorPlugin.INSTANCE.getImage ( "full/wizban/NewVisualInterface.png" ) ) ); //$NON-NLS-1$
}
 
Example #25
Source File: DetailViewModelWizard.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * This just records the information.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void init ( IWorkbench workbench, IStructuredSelection selection )
{
    this.workbench = workbench;
    this.selection = selection;
    setWindowTitle ( DetailViewEditorPlugin.INSTANCE.getString ( "_UI_Wizard_label" ) ); //$NON-NLS-1$
    setDefaultPageImageDescriptor ( ExtendedImageRegistry.INSTANCE.getImageDescriptor ( DetailViewEditorPlugin.INSTANCE.getImage ( "full/wizban/NewDetailView" ) ) ); //$NON-NLS-1$
}
 
Example #26
Source File: ProtocolModelWizard.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * This just records the information.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void init ( IWorkbench workbench, IStructuredSelection selection )
{
    this.workbench = workbench;
    this.selection = selection;
    setWindowTitle ( NextGenerationProtocolEditorPlugin.INSTANCE.getString ( "_UI_Wizard_label" ) ); //$NON-NLS-1$
    setDefaultPageImageDescriptor ( ExtendedImageRegistry.INSTANCE.getImageDescriptor ( NextGenerationProtocolEditorPlugin.INSTANCE.getImage ( "full/wizban/NewProtocol" ) ) ); //$NON-NLS-1$
}
 
Example #27
Source File: ProcessArtifact.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Image getIcon() {
    return ExtendedImageRegistry.INSTANCE.getImage(ProcessEditPlugin.INSTANCE.getPluginResourceLocator().getImage("full/obj16/Pool"));
}