Package org.eclipse.core.resources

Examples of org.eclipse.core.resources.IFile.refreshLocal()


  }

  private InputStream getText(IFileEditorInput input) {
    try {
      final IFile file = input.getFile();
      file.refreshLocal(IResource.DEPTH_ZERO, null);
      return file.getContents();
    } catch (CoreException e) {
      e.printStackTrace();
      return null;
    }
View Full Code Here


  protected void handleElementChanged(ResourceSetInfo info,
      Resource changedResource, IProgressMonitor monitor) {
    IFile file = WorkspaceSynchronizer.getFile(changedResource);
    if (file != null) {
      try {
        file.refreshLocal(IResource.DEPTH_INFINITE, monitor);
      } catch (CoreException ex) {
        DispelDiagramEditorPlugin
            .getInstance()
            .logError(
                Messages.DispelDocumentProvider_handleElementContentChanged,
View Full Code Here

  protected void handleElementChanged(ResourceSetInfo info,
      Resource changedResource, IProgressMonitor monitor) {
    IFile file = WorkspaceSynchronizer.getFile(changedResource);
    if (file != null) {
      try {
        file.refreshLocal(IResource.DEPTH_INFINITE, monitor);
      } catch (CoreException ex) {
        eu.admire.visual.pmml.neuralnetwork._40.diagram.part.PMMLDiagramEditorPlugin
            .getInstance()
            .logError(
                eu.admire.visual.pmml.neuralnetwork._40.diagram.part.Messages.PMMLDocumentProvider_handleElementContentChanged,
View Full Code Here

    }
    String validationResult = StringConstants.STRING_EMPTY;
    if (input instanceof IFileEditorInput) {
      final IFile iFile = ((IFileEditorInput) input).getFile();
      try {
        iFile.refreshLocal(IResource.DEPTH_ZERO,
            new NullProgressMonitor());
        validationResult = MeiResourceReader.validateMEIInstance(iFile
            .getContents());
        openNewEditorTab(iFile.getName(), validationResult,
            iFile.getContents());
View Full Code Here

  protected void handleElementChanged(ResourceSetInfo info,
      Resource changedResource, IProgressMonitor monitor) {
    IFile file = WorkspaceSynchronizer.getFile(changedResource);
    if (file != null) {
      try {
        file.refreshLocal(IResource.DEPTH_INFINITE, monitor);
      } catch (CoreException ex) {
        DispelDiagramEditorPlugin
            .getInstance()
            .logError(
                Messages.DispelDocumentProvider_handleElementContentChanged,
View Full Code Here

  protected void handleElementChanged(ResourceSetInfo info,
      Resource changedResource, IProgressMonitor monitor) {
    IFile file = WorkspaceSynchronizer.getFile(changedResource);
    if (file != null) {
      try {
        file.refreshLocal(IResource.DEPTH_INFINITE, monitor);
      } catch (CoreException ex) {
        eu.admire.visual.pmml._40.diagram.part.PMMLDiagramEditorPlugin
            .getInstance()
            .logError(
                eu.admire.visual.pmml._40.diagram.part.Messages.PMMLDocumentProvider_handleElementContentChanged,
View Full Code Here

  protected void handleElementChanged(ResourceSetInfo info,
      Resource changedResource, IProgressMonitor monitor) {
    IFile file = WorkspaceSynchronizer.getFile(changedResource);
    if (file != null) {
      try {
        file.refreshLocal(IResource.DEPTH_INFINITE, monitor);
      } catch (CoreException ex) {
        eu.admire.visual.pmml.treemodel._40.diagram.part.PMMLDiagramEditorPlugin
            .getInstance()
            .logError(
                eu.admire.visual.pmml.treemodel._40.diagram.part.Messages.PMMLDocumentProvider_handleElementContentChanged,
View Full Code Here

  protected void handleElementChanged(ResourceSetInfo info,
      Resource changedResource, IProgressMonitor monitor) {
    IFile file = WorkspaceSynchronizer.getFile(changedResource);
    if (file != null) {
      try {
        file.refreshLocal(IResource.DEPTH_INFINITE, monitor);
      } catch (CoreException ex) {
        eu.admire.visual.pmml.radviz._40.diagram.part.PMMLDiagramEditorPlugin
            .getInstance()
            .logError(
                eu.admire.visual.pmml.radviz._40.diagram.part.Messages.PMMLDocumentProvider_handleElementContentChanged,
View Full Code Here

  protected void handleElementChanged(ResourceSetInfo info,
      Resource changedResource, IProgressMonitor monitor) {
    IFile file = WorkspaceSynchronizer.getFile(changedResource);
    if (file != null) {
      try {
        file.refreshLocal(IResource.DEPTH_INFINITE, monitor);
      } catch (CoreException ex) {
        DispelDiagramEditorPlugin
            .getInstance()
            .logError(
                Messages.DispelDocumentProvider_handleElementContentChanged,
View Full Code Here

      resourceInfo.resetSynchronizeStamp();
    }
  }
  IFile file = resourceInfo.getFile();
  if (file.exists() && (!file.isLocal(IResource.DEPTH_ZERO) || !resourceInfo.getFile().isSynchronized(IResource.DEPTH_ZERO)))
    file.refreshLocal(IResource.DEPTH_ZERO, new NullProgressMonitor());
}
}
}
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.