Search in sources :

Example 1 with ContentItem

use of org.springsource.ide.eclipse.commons.content.core.ContentItem in project eclipse-integration-commons by spring-projects.

the class HelpPluginTest method testGetSampleProjects.

public void testGetSampleProjects() {
    ContentManager manager = ContentPlugin.getDefault().getManager();
    if (manager.isDirty()) {
        // refresh to download remote descriptors
        manager.refresh(null, true);
    }
    Collection<ContentItem> projects = manager.getItemsByKind(ContentManager.KIND_SAMPLE);
    assertEquals(3, projects.size());
}
Also used : ContentManager(org.springsource.ide.eclipse.commons.content.core.ContentManager) ContentItem(org.springsource.ide.eclipse.commons.content.core.ContentItem)

Aggregations

ContentItem (org.springsource.ide.eclipse.commons.content.core.ContentItem)1 ContentManager (org.springsource.ide.eclipse.commons.content.core.ContentManager)1