Search in sources :

Example 1 with IArchimateElementUIProvider

use of com.archimatetool.editor.ui.factory.IArchimateElementUIProvider in project archi by archimatetool.

the class FigureImagePreviewFactoryTests method testGetFigurePreviewImageForClass.

@Test
public void testGetFigurePreviewImageForClass() {
    for (IObjectUIProvider provider : ObjectUIFactory.INSTANCE.getProviders()) {
        if (provider instanceof IArchimateElementUIProvider) {
            Image image = FigureImagePreviewFactory.getFigurePreviewImageForClass(provider.providerFor());
            assertNotNull(image);
        }
    }
}
Also used : IArchimateElementUIProvider(com.archimatetool.editor.ui.factory.IArchimateElementUIProvider) Image(org.eclipse.swt.graphics.Image) IObjectUIProvider(com.archimatetool.editor.ui.factory.IObjectUIProvider) Test(org.junit.Test)

Aggregations

IArchimateElementUIProvider (com.archimatetool.editor.ui.factory.IArchimateElementUIProvider)1 IObjectUIProvider (com.archimatetool.editor.ui.factory.IObjectUIProvider)1 Image (org.eclipse.swt.graphics.Image)1 Test (org.junit.Test)1