Package org.eclipse.core.resources

Examples of org.eclipse.core.resources.IResourceDelta.accept()


            return true;
          }
        };

        delta.accept(visitor);
      } catch (CoreException e) {
        CasEditorPlugin.log(e);
      }
    }
  }
View Full Code Here


    private void collectSourcesToCompile(IProgressMonitor monitor) throws CoreException {
        IResourceDelta delta= getDelta(getProject());
        // boolean emitDiags= getDiagPreference();

        if (delta != null) {
            delta.accept(fDeltaVisitor);
            for (IFile chg : fChangedSources) {
              fDependencies.put(chg, new HashSet<IFile>())// clear dependencies of changed files
            }
          collectDependencies(monitor, fChangedSources);    // re-collect dependencies of changed files
        } else {
View Full Code Here

     */
    public void resourceChanged(IResourceChangeEvent e) {
      IResourceDelta delta= e.getDelta();
      try {
        if (delta != null && fIsInstalled)
          delta.accept(this);
      } catch (CoreException x) {
        handleCoreException(x, "FileDocumentProvider.resourceChanged"); //$NON-NLS-1$
      }
    }

View Full Code Here

        // Close the editor if its resource was deleted/moved
        if ((event.getType() == IResourceChangeEvent.POST_CHANGE)) {
            IResourceDelta delta = event.getDelta();
            try {
                delta.accept(new IResourceDeltaVisitor() {
                    public boolean visit(IResourceDelta iResourceDelta) {
                        if (file.equals(iResourceDelta.getResource()) &&
                                (iResourceDelta.getKind() ==
                                                IResourceDelta.REMOVED ||
                                 iResourceDelta.getKind() ==
View Full Code Here

     */
    public void resourceChanged(IResourceChangeEvent e) {
        IResourceDelta delta = e.getDelta();
        try {
            if (delta != null && installed) {
                delta.accept(this);
            }
        } catch (CoreException x) {
            EclipseCommonPlugin.handleError(ABPlugin.getDefault(), x);
        }
    }
View Full Code Here

                        }
                        return true;
                    }
                };
                try {
                    delta.accept(visitor);
                } catch (CoreException e) {
                    DesignerLogger.logErrorWithoutDialog("Visit on delete", e);
                }
            }
        }
View Full Code Here

            return true;
          }
        };

        delta.accept(visitor);
      } catch (CoreException e) {
        CasEditorPlugin.log(e);
      }
    }
  }
View Full Code Here

   */
  public void resourceChanged(IResourceChangeEvent event) {

    IResourceDelta delta = event.getDelta();
    try {
      delta.accept(this);
    } catch (CoreException e) {
      ToolPlugin.log(IStatus.ERROR,"Error in resourceChange.", e);
    }
  }

View Full Code Here

   */
  public void resourceChanged(IResourceChangeEvent event) {

    IResourceDelta delta = event.getDelta();
    try {
      delta.accept(this);
    } catch (CoreException e) {
      ToolPlugin.log(IStatus.ERROR,"Error in resourceChange.", e);
    }
  }

View Full Code Here

  @Override
  public void resourceChanged(IResourceChangeEvent event) {

    IResourceDelta delta = event.getDelta();
    try {
      delta.accept(this);
    } catch (CoreException e) {
      ToolNavigatorActivator.showError("Error in resourceChange.", e);
    }
  }
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.