Package org.eclipse.jdt.core

Examples of org.eclipse.jdt.core.JavaModelException


            {
                return (IType) child;
            }
        }

        throw new JavaModelException(
            new IllegalStateException("Missing type for " + root), IStatus.ERROR);
    }
View Full Code Here


      binaryType = getBinaryInfo(classFile, classFile.resource());
    } catch (CoreException e) {
      if (e instanceof JavaModelException) {
        throw (JavaModelException) e;
      } else {
        throw new JavaModelException(e);
      }
    }
  }
  BinaryTypeBinding binding = this.lookupEnvironment.cacheBinaryType(binaryType, null /*no access restriction*/);
  if (binding == null) { // it was already cached as a result of a previous query
View Full Code Here

    return info;
  } catch (ClassFormatException e) {
    //e.printStackTrace();
    return null;
  } catch (java.io.IOException e) {
    throw new JavaModelException(e, IJavaModelStatusConstants.IO_EXCEPTION);
  }
}
View Full Code Here

              report(match);
            }
          } catch (JavaModelException e) {
            throw e;
          } catch (CoreException e) {
            throw new JavaModelException(e);
          }
        }
      }
    }
  }
View Full Code Here

        computeTypeRange();
      }
    }
   
    if (this.typeDocRange != null) {
      if (this.typeDocRange == UNKNOWN_FORMAT) throw new JavaModelException(new JavaModelStatus(IJavaModelStatusConstants.UNKNOWN_JAVADOC_FORMAT, this.type));
      return String.valueOf(CharOperation.subarray(this.content, this.typeDocRange[0], this.typeDocRange[1]));
    }
    return null;
  }
View Full Code Here

        this.fieldDocRanges.put(child, range);
      }
    }
   
    if (range != null) {
      if (range == UNKNOWN_FORMAT) throw new JavaModelException(new JavaModelStatus(IJavaModelStatusConstants.UNKNOWN_JAVADOC_FORMAT, child));
      return String.valueOf(CharOperation.subarray(this.content, range[0], range[1]));
    }
    return null;
  }
View Full Code Here

        this.methodDocRanges.put(child, range);
      }
    }
   
    if (range != null) {
      if (range == UNKNOWN_FORMAT) throw new JavaModelException(new JavaModelStatus(IJavaModelStatusConstants.UNKNOWN_JAVADOC_FORMAT, child));
      return String.valueOf(CharOperation.subarray(this.content, range[0], range[1]));
    }
    return null;
  }
View Full Code Here

    char[] genericSignature = info.getGenericSignature();
    String anchor = null;
    if (genericSignature != null) {
      genericSignature = CharOperation.replaceOnCopy(genericSignature, '/', '.');
      anchor = Util.toAnchor(0, genericSignature, methodName, Flags.isVarargs(method.getFlags()));
      if (anchor == null) throw new JavaModelException(new JavaModelStatus(IJavaModelStatusConstants.UNKNOWN_JAVADOC_FORMAT, method));
    } else {
      anchor = Signature.toString(method.getSignature().replace('/', '.'), methodName, null, true, false, Flags.isVarargs(method.getFlags()));
    }
    IType declaringType = this.type;
    if (declaringType.isMember()) {
View Full Code Here

      Object folderPath = iterator.next();
      if (oldFolders == null || !oldFolders.remove(folderPath) || foldersManager.removePendingFolder(folderPath)) {
        try {
          foldersManager.createLinkFolder((IPath) folderPath, refreshIfExistAlready, monitor);
        } catch (CoreException e) {
          throw new JavaModelException(e);
        }
      }
    }
    // removal of linked folders is done during save
  }
View Full Code Here

          collection.add(r);
          collectAllSubfolders((IFolder)r, collection);
        }
      }
    } catch (CoreException e) {
      throw new JavaModelException(e);
    }
  }
View Full Code Here

TOP

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

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.