Package org.eclipse.jdt.internal.core

Examples of org.eclipse.jdt.internal.core.SourceField


        if (ia != null && ia.exists()) {
          IField[] fields = r.getFields();
          for (IField f : fields) {
            IField sf = (IField) f;
            if (sf instanceof SourceField) {
              SourceField ssf = (SourceField) sf;
              String sigString = ssf.getTypeSignature();
              IAnnotation[] ias = sf.getAnnotations();
              if (ias == null || ias.length == 0 && true) {
                sigString = Signature.getTypeErasure(sigString);
                String simpleName = Signature
                    .toString(sigString);

                String name = sf.getElementName();
                if (isSupportedType(simpleName)) {
                  fieldss.put(name, getSupported(simpleName));
                } else {
                  fieldss.put(name, Blob.class);
                }

              }
            }
          }
        } else {
          IAnnotation ib = r.getAnnotation("PersistenceCapable");
          if (ib != null && ib.exists()) {
            IField[] fields = r.getFields();
            for (IField f : fields) {
              IField sf = (IField) f;
              if (sf instanceof SourceField) {
                SourceField ssf = (SourceField) sf;
                String sigString = ssf.getTypeSignature();
                IAnnotation iaf = sf
                    .getAnnotation("Persistent");
                IAnnotation iaPk = sf
                    .getAnnotation("PrimaryKey");
                if (iaf != null && iaf.exists()
View Full Code Here


    }

    if (fakeField != null)
      existingFields.remove(fakeField);
   
    fakeField = new SourceField(null, fieldName) {};
    existingFields.add(fakeField);
   
    viewer.refresh();
   
    return fakeField;
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.core.SourceField

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.