Search in sources :

Example 1 with ContentManager

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

the class DescriptorMatcherTest method setUp.

@Override
protected void setUp() throws Exception {
    descriptor = new Descriptor();
    System.setProperty("org.springsource.sts", "abc");
    matcher = new DescriptorMatcher(new ContentManager());
    matcher.setVersion(null);
}
Also used : ContentManager(org.springsource.ide.eclipse.commons.content.core.ContentManager) Descriptor(org.springsource.ide.eclipse.commons.content.core.util.Descriptor)

Example 2 with ContentManager

use of org.springsource.ide.eclipse.commons.content.core.ContentManager 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

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