Package org.eclipse.jdt.core

Examples of org.eclipse.jdt.core.IJavaElementDelta


  }

  // IJavaElementListener

  public void elementChanged(ElementChangedEvent event) {
    IJavaElementDelta delta = event.getDelta();
    IResourceDelta[] resourceDeltas = delta.getResourceDeltas();
    for (int i = 0; resourceDeltas != null && i < resourceDeltas.length; i++) {
      try {
        resourceDeltas[i].accept(this);
      } catch (CoreException e) {
      }
View Full Code Here


    public void elementChanged(ElementChangedEvent event) {
      if (event.getType() == ElementChangedEvent.POST_CHANGE) {
        Object obj = event.getSource();
        if (obj instanceof IJavaElementDelta) {
          IJavaElementDelta delta = (IJavaElementDelta) obj;
          iterateChildren(new IJavaElementDelta[] { delta }, new IJavaProject[1]);
        }
      }
    }
View Full Code Here

    return true;
  }
 
  @Override
  public void reconcile(ReconcileContext context) {
    IJavaElementDelta delta = context.getDelta();
    if( delta != null ) {
      if( delta.getElement() instanceof ICompilationUnit ) {
       
        ICompilationUnit u = (ICompilationUnit) delta.getElement();
        try {
          for( IType t : u.getTypes() ) {
            FXPlugin.getClassmodel().clearCache(t);
          }
        } catch (JavaModelException e) {
View Full Code Here

TOP

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

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.