Package org.eclipse.jdt.core

Examples of org.eclipse.jdt.core.IAnnotation


      for (Object element : ((StructuredSelection) selection).toArray()) {
        if (element instanceof IType) {
          IType type = (IType) element;
          IProject project = type.getJavaProject().getProject();
          if (isBeansProject(project) && !isBeansConfig(type)) {
            IAnnotation configurationAnnotation = type.getAnnotation("Configuration");
            IAnnotation componentAnnotation = type.getAnnotation("Component");
            IAnnotation beanAnnotation = type.getAnnotation("Bean");
            IAnnotation importAnnotation = type.getAnnotation("Import");
            IAnnotation eacAnnotation = type.getAnnotation("EnableAutoConfiguration");
            if ((configurationAnnotation != null && configurationAnnotation.exists())
              || (componentAnnotation != null && componentAnnotation.exists())
              || (beanAnnotation != null && beanAnnotation.exists())
              || (importAnnotation != null && importAnnotation.exists())
              || (eacAnnotation != null && eacAnnotation.exists())) {
              selectedItems.add(type);
            }
          }
        } else if (element instanceof IFile) {
          IFile file = (IFile) element;
View Full Code Here


  }
 
  @Override
  public IFXProperty getDefaultProperty() {
    if( ! checkStatemask(state, STATE_DEFAULT_RESOLVED) ) {
      IAnnotation annotation = type.getAnnotation("javafx.beans.DefaultProperty");
      if( annotation.exists() ) {
        try {
          String v = getAnnotationMemberValue(annotation, "value");
          if( v != null ) {
            defaultProperty = getProperty(v)
          }
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.core.IAnnotation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.