use of org.eclipse.ui.internal.dialogs.PropertyPageContributorManager in project eclipse.platform.ui by eclipse-platform.
the class PropertyPageTests method testPropertyPageContribution.
@Test
public void testPropertyPageContribution() {
PropertyPageContributorManager cManager = PropertyPageContributorManager.getManager();
PropertyPageManager manager;
DynamicTestType type = new DynamicTestType();
cManager.contribute(manager = new PropertyPageManager(), type);
assertNull(manager.find(PROPERTYPAGE));
getBundle();
cManager.contribute(manager = new PropertyPageManager(), type);
IPreferenceNode result = manager.find(PROPERTYPAGE);
assertNotNull(result);
// muck around and ensure we've created some potential garbage
result.createPage();
result.disposeResources();
removeBundle();
cManager.contribute(manager = new PropertyPageManager(), type);
assertNull(manager.find(PROPERTYPAGE));
}
use of org.eclipse.ui.internal.dialogs.PropertyPageContributorManager in project eclipse.platform.ui by eclipse-platform.
the class PropertyPageTests method testPropertyPageCount.
@Test
public void testPropertyPageCount() {
PropertyPageContributorManager manager = PropertyPageContributorManager.getManager();
int size = manager.getContributors().size();
getBundle();
assertEquals(size + 1, manager.getContributors().size());
removeBundle();
assertEquals(size, manager.getContributors().size());
}
Aggregations