Package org.eclipse.core.resources

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


        final IFile file = ResourceUtil.getFile(page.getEditorInput());
        if (file != null && file.exists()) {
            WorkspaceJob job = new WorkspaceJob("Reload Plugins") {
                @Override
                public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException {
                    file.touch(monitor);
                    return Status.OK_STATUS;
                }
            };
            job.setUser(true);
            job.schedule();
View Full Code Here


      HandleDelta _newDelta = this.newDelta();
      HandleDelta _insertAdded = _newDelta.insertAdded(erlProject2);
      ErlNotificationTest.assertEquality(_insertAdded, this.listener.delta);
      final IErlSource erlFile1 = erlProject1.getSourceFile("src/nop.erl");
      IFile _file = erlFile1.getFile();
      _file.touch(null);
      HandleDelta _newDelta_1 = this.newDelta();
      HandleDelta _insertChanged = _newDelta_1.insertChanged(erlFile1, HandleDelta.F_CONTENT);
      ErlNotificationTest.assertEquality(_insertChanged, this.listener.delta);
      IFile _file_1 = erlFile1.getFile();
      Path _path = new Path("/Test002/test1.erl");
View Full Code Here

            window.run(true, false, new IRunnableWithProgress() {
                public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
                    try {
                        buildFile.getWorkspace().run(new IWorkspaceRunnable() {
                            public void run(IProgressMonitor monitor) throws CoreException {
                                buildFile.touch(monitor);
                            }
                        }, monitor);
                    } catch (CoreException e) {
                        throw new InvocationTargetException(e);
                    }
View Full Code Here

                                            logger.logError("Failed to refresh repository: " + i.getName(), ex);
                                        }
                                    }
                                }

                                buildFile.touch(monitor);
                            }
                        }, monitor);
                    } catch (CoreException e) {
                        throw new InvocationTargetException(e);
                    }
View Full Code Here

      createFile(file, getInitialContents());
    }
    try
    {
      IDE.openEditor(UIPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage(), file, true);
      file.touch(null);
      file.refreshLocal(IResource.DEPTH_ONE, null);
    } catch (CoreException e)
    {

    }
View Full Code Here

        // and recalculate PDE classpath

        IFile manifest = PDEProjectHelper.getBundleManifest( project );
        if ( manifest.isAccessible() )
        {
            manifest.touch( monitor );
        }
    }
}
View Full Code Here

                ITypeHierarchy typeHierarchy = SuperTypeHierarchyCache.getTypeHierarchy(type, progressMonitor);
                if (typeHierarchy != null && typeHierarchy.contains(woElementType)) {
                  LocalizedComponentsLocateResult results = LocatePlugin.getDefault().getLocalizedComponentsLocateResult(resource);
                  IFile wodFile = results.getFirstWodFile();
                  if (wodFile != null && wodFile.exists()) {
                    wodFile.touch(progressMonitor);
                    validateWodFile(wodFile, progressMonitor);
                  }
                }
              }
            }
View Full Code Here

            // reset to offset zero allows to reuse internal byte[]
            // no need to convert the string twice
            content.reset();
            file.setContents(content, true, true, monitor);
          } else {
            file.touch(getMonitor());
          }
          if (file.isDerived() != outputConfig.isSetDerivedProperty())
            setDerived(file, outputConfig.isSetDerivedProperty());
          if (callBack != null)
            callBack.afterFileUpdate(file);
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.