Example usage for org.springframework.ide.eclipse.beans.core.internal.model BeanClassReferences BeanClassReferences

List of usage examples for org.springframework.ide.eclipse.beans.core.internal.model BeanClassReferences BeanClassReferences

Introduction

In this page you can find the example usage for org.springframework.ide.eclipse.beans.core.internal.model BeanClassReferences BeanClassReferences.

Prototype

public BeanClassReferences(IType beanClass, Set<IBean> beans) 

Source Link

Usage

From source file:org.synyx.hades.eclipse.beans.ui.model.HadesModelContentProvider.java

@Override
protected Object[] getJavaTypeChildren(IType type) {

    IProject project = type.getJavaProject().getProject();
    Set<IBean> beans = HadesUtils.getDaoBeansFor(project, type);

    if (!beans.isEmpty()) {
        return new Object[] { new BeanClassReferences(type, beans) };
    }/* w w  w . j  a  v a 2 s.c  om*/

    return IModelElement.NO_CHILDREN;
}