Пример #1
0
    @Override
    protected boolean selectFile(IFile element) {

      if ("pom.xml".equals(element.getName())) {
        return false;
      }

      IBeansProject project = BeansCorePlugin.getModel().getProject(element.getProject());
      if (project != null) {
        IBeansConfig beansConfig = project.getConfig(element);
        return beansConfig == null;
      }
      return false;
    }
Пример #2
0
 public Object[] getElements(Object obj) {
   return new LinkedHashSet<IBeansConfig>(project.getConfigs()).toArray();
 }