Package org.aspectj.org.eclipse.jdt.core

Examples of org.aspectj.org.eclipse.jdt.core.JavaModelException


          Throwable e= ce.getStatus().getException();
          if (e instanceof JavaModelException) {
            throw (JavaModelException) e;
          }
        }
        throw new JavaModelException(ce);
      }
    }
  }
View Full Code Here


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

      description.setDynamicReferences(requiredProjectArray);
      projectResource.setDescription(description, null);
 
    } catch(CoreException e){
      if (!ExternalJavaProject.EXTERNAL_PROJECT_NAME.equals(this.project.getElementName()))
        throw new JavaModelException(e);
    }
  }
View Full Code Here

            e.printStackTrace();
          }
          if (e instanceof JavaModelException) {
            throw (JavaModelException)e;
          } else {
            throw new JavaModelException(e);
          }
        }
      }
    } finally {   
      done();
View Full Code Here

    ASTNode node = parser.createAST(this.progressMonitor);
    String createdNodeSource;
    if (node.getNodeType() != ASTNode.TYPE_DECLARATION) {
      createdNodeSource = generateSyntaxIncorrectAST();
      if (this.createdNode == null)
        throw new JavaModelException(new JavaModelStatus(IJavaModelStatusConstants.INVALID_CONTENTS));
    } else {
      TypeDeclaration typeDeclaration = (TypeDeclaration) node;
      this.createdNode = (ASTNode) typeDeclaration.bodyDeclarations().iterator().next();
      createdNodeSource = this.source;
    }
View Full Code Here

        if (JavaModelManager.CP_RESOLVE_VERBOSE)
          verbose_failure(e);
        if (e instanceof JavaModelException) {
          throw (JavaModelException)e;
        } else {
          throw new JavaModelException(e);
        }
      } finally {
        for (int i = 0; i < projectLength; i++) {
          if (this.respectiveContainers[i] == null) {
            manager.containerPut(this.affectedProjects[i], this.containerPath, null); // reset init in progress marker
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 {
            // create new marker
            project.createClasspathProblemMarker(
              new JavaModelStatus(IJavaModelStatusConstants.CLASSPATH_CYCLE, project));
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

   * @see IJavaProject#findElement(IPath, WorkingCopyOwner)
   */
  public IJavaElement findElement(IPath path, WorkingCopyOwner owner) throws JavaModelException {
   
    if (path == null || path.isAbsolute()) {
      throw new JavaModelException(
        new JavaModelStatus(IJavaModelStatusConstants.INVALID_PATH, path));
    }
    try {

      String extension = path.getFileExtension();
View Full Code Here

        resolvedClasspath = perProjectInfo.resolvedClasspath;
        unresolvedEntryStatus = perProjectInfo.unresolvedEntryStatus;
      }
    }
    if (!ignoreUnresolvedEntry && unresolvedEntryStatus != null && !unresolvedEntryStatus.isOK())
      throw new JavaModelException(unresolvedEntryStatus);
    return resolvedClasspath;
  }
View Full Code Here

TOP

Related Classes of org.aspectj.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.