Examples of JavaModelException


Examples of org.eclipse.jdt.core.JavaModelException

    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

Examples of org.eclipse.jdt.core.JavaModelException

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

Examples of org.eclipse.jdt.core.JavaModelException

        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

Examples of org.eclipse.jdt.core.JavaModelException

        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

Examples of org.eclipse.jdt.core.JavaModelException

        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

Examples of org.eclipse.jdt.core.JavaModelException

    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

Examples of org.eclipse.jdt.core.JavaModelException

      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

Examples of org.eclipse.jdt.core.JavaModelException

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

Examples of org.eclipse.jdt.core.JavaModelException

    IProject externalFoldersProject = null;
    try {
      externalFoldersProject = createExternalFoldersProject(monitor);
    }
    catch(CoreException e) {
      throw new JavaModelException(e);
    }
    Iterator iterator = this.pendingFolders.iterator();
    while (iterator.hasNext()) {
      Object folderPath = iterator.next();
      try {
View Full Code Here

Examples of org.eclipse.jdt.core.JavaModelException

          }
        }
      }
    }
  } catch (CoreException e) {
    throw new JavaModelException(e);
  }

  if (kind == IPackageFragmentRoot.K_SOURCE) {
    // add primary compilation units
    ICompilationUnit[] primaryCompilationUnits = getCompilationUnits(DefaultWorkingCopyOwner.PRIMARY);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.