Search in sources :

Example 1 with PropertySheetProperty

use of org.eclipse.reddeer.eclipse.ui.views.properties.PropertySheetProperty in project jbosstools-openshift by jbosstools.

the class ProjectPropertiesTest method getCurrentAnnotationProperties.

private List<TreeItem> getCurrentAnnotationProperties() {
    try {
        PropertySheetProperty annotationPropertiesRoot = propertiesView.getProperty("Annotations");
        List<TreeItem> annotationProperties = annotationPropertiesRoot.getTreeItem().getItems();
        assertTrue("There should be some annotation properties in the tab", annotationProperties != null && annotationProperties.size() > 0);
        return annotationProperties;
    } catch (CoreLayerException e) {
        fail(e.getMessage());
        return null;
    }
}
Also used : TreeItem(org.eclipse.reddeer.swt.api.TreeItem) CoreLayerException(org.eclipse.reddeer.core.exception.CoreLayerException) PropertySheetProperty(org.eclipse.reddeer.eclipse.ui.views.properties.PropertySheetProperty)

Aggregations

CoreLayerException (org.eclipse.reddeer.core.exception.CoreLayerException)1 PropertySheetProperty (org.eclipse.reddeer.eclipse.ui.views.properties.PropertySheetProperty)1 TreeItem (org.eclipse.reddeer.swt.api.TreeItem)1