Example usage for org.springframework.ide.eclipse.core.model IModelElement NO_CHILDREN

List of usage examples for org.springframework.ide.eclipse.core.model IModelElement NO_CHILDREN

Introduction

In this page you can find the example usage for org.springframework.ide.eclipse.core.model IModelElement NO_CHILDREN.

Prototype

IModelElement[] NO_CHILDREN

To view the source code for org.springframework.ide.eclipse.core.model IModelElement NO_CHILDREN.

Click 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) };
    }/*from   ww w . ja v a 2s  .  c o  m*/

    return IModelElement.NO_CHILDREN;
}