Package org.eclipse.jdt.core

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


          }
        }
      }
    }
  } 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

  pathBuffer.append(packPath).append('/').append(JavadocConstants.PACKAGE_FILE_NAME);

  if (monitor != null && monitor.isCanceled()) throw new OperationCanceledException();
  final String contents = getURLContents(String.valueOf(pathBuffer));
  if (monitor != null && monitor.isCanceled()) throw new OperationCanceledException();
  if (contents == null) throw new JavaModelException(new JavaModelStatus(IJavaModelStatusConstants.CANNOT_RETRIEVE_ATTACHED_JAVADOC, this));
  synchronized (projectInfo.javadocCache) {
    projectInfo.javadocCache.put(this, contents);
  }
  return contents;
}
View Full Code Here

}
/*
* @see ISourceManipulation
*/
public void copy(IJavaElement container, IJavaElement sibling, String rename, boolean force, IProgressMonitor monitor) throws JavaModelException {
  throw new JavaModelException(new JavaModelStatus(IJavaModelStatusConstants.READ_ONLY, this));
}
View Full Code Here

}
/*
* @see ISourceManipulation
*/
public void move(IJavaElement container, IJavaElement sibling, String rename, boolean force, IProgressMonitor monitor) throws JavaModelException {
  throw new JavaModelException(new JavaModelStatus(IJavaModelStatusConstants.READ_ONLY, this));
}
View Full Code Here

}
/*
* @see ISourceManipulation
*/
public void rename(String newName, boolean force, IProgressMonitor monitor) throws JavaModelException {
  throw new JavaModelException(new JavaModelStatus(IJavaModelStatusConstants.READ_ONLY, this));
}
View Full Code Here

/*
* Sets the contents of this element.
* Throws an exception as this element is read only.
*/
public void setContents(String contents, IProgressMonitor monitor) throws JavaModelException {
  throw new JavaModelException(new JavaModelStatus(IJavaModelStatusConstants.READ_ONLY, this));
}
View Full Code Here

  super((PackageFragment) classFile.getParent(), ((BinaryType) classFile.getType()).getSourceFileName(null/*no info available*/), owner);
  this.classFile = classFile;
}

public void commitWorkingCopy(boolean force, IProgressMonitor monitor) throws JavaModelException {
  throw new JavaModelException(new JavaModelStatus(IJavaModelStatusConstants.INVALID_ELEMENT_TYPES, this));
}
View Full Code Here

              int existingSeverity = ((Integer)cycleMarker.getAttribute(IMarker.SEVERITY)).intValue();
              if (existingSeverity != circularCPSeverity) {
                cycleMarker.setAttribute(IMarker.SEVERITY, circularCPSeverity);
              }
            } catch (CoreException e) {
              throw new JavaModelException(e);
            }
          } else {
            IJavaProject[] projectsInCycle;
            String cycleString = "";   //$NON-NLS-1$
            if (cycleParticipants.isEmpty()) {
View Full Code Here

      xmlWriter.endTag(ClasspathEntry.TAG_CLASSPATH, indent, true/*insert new line*/);
      writer.flush();
      writer.close();
      return s.toString("UTF8");//$NON-NLS-1$
    } catch (IOException e) {
      throw new JavaModelException(e, IJavaModelStatusConstants.IO_EXCEPTION);
    }
  }
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.