uimaj-ep-deployeditor/src/main/java/org/apache/uima/tools/images/internal/ImageRegistryUtil.java [170:180]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    protected ImageRegistry createImageRegistry() 
    {        
        // If we are in the UI Thread use that
        if (Display.getCurrent() != null) {
            return new ImageRegistry(Display.getCurrent());
        } else {
            // Invalid thread access if it is not the UI Thread 
            // and the workbench is not created.
            throw new SWTError(SWT.ERROR_THREAD_INVALID_ACCESS);
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



uimaj-ep-deployeditor/src/main/java/org/apache/uima/tools/images/internal/ImageLoader.java [166:176]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    protected ImageRegistry createImageRegistry() 
    {        
        // If we are in the UI Thread use that
        if (Display.getCurrent() != null) {
            return new ImageRegistry(Display.getCurrent());
        } else {
            // Invalid thread access if it is not the UI Thread 
            // and the workbench is not created.
            throw new SWTError(SWT.ERROR_THREAD_INVALID_ACCESS);
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



