Package org.eclipse.core.resources

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


    File file = new File(iFile.getLocation().toOSString());
    FileOutputStream fileOutputStream;
    try {
      fileOutputStream = new FileOutputStream(file);
      properties.store(fileOutputStream, "wotaglib");
      iFile.refreshLocal(IResource.DEPTH_ONE, new NullProgressMonitor());
    } catch (FileNotFoundException e) {
      e.printStackTrace();
    } catch (IOException e) {
      e.printStackTrace();
    } catch (CoreException e) {
View Full Code Here


      IFile file = workspaceRoot.getFile(new Path(platformResourcePath));
      try
      {
        if (!file.isSynchronized(IResource.DEPTH_ONE))
        {
          file.refreshLocal(IResource.DEPTH_ONE, null);
        }
        InputStream result = file.getContents();
        if (options != null)
        {
          @SuppressWarnings("unchecked")
View Full Code Here

    public void reload() {
      this.projectClassLoader = null;
        IFile file = project.getFile(".freemarker-ide.xml"); //$NON-NLS-1$
        if (file.exists()) {
          try { file.refreshLocal(1, null); } catch (CoreException e) {}
            try {
                Document document = DocumentBuilderFactory.newInstance()
                        .newDocumentBuilder().parse(file.getContents());
                NodeList nl = document.getDocumentElement()
                        .getElementsByTagName("context-values"); //$NON-NLS-1$
View Full Code Here

    IWorkspace workspace = ResourcesPlugin.getWorkspace();
    IFile file = workspace.getRoot().getFileForLocation(resultPath);

    if (!file.isSynchronized(IResource.DEPTH_ZERO)) {
      try {
        file.refreshLocal(IResource.DEPTH_ZERO, new NullProgressMonitor());
      } catch (CoreException e) {
        RutaAddonsPlugin.error(e);
      }
    }
    try {
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) {
        Fd2DiagramEditorPlugin
            .getInstance()
            .logError(
                Messages.Fd2DocumentProvider_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) {
        es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.diagram.part.JadexAgentsDiagramEditorPlugin
            .getInstance()
            .logError(
                es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.diagram.part.Messages.JadexAgentsDocumentProvider_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) {
        es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.diagram.part.JadexAgentsDiagramEditorPlugin
            .getInstance()
            .logError(
                es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.diagram.part.Messages.JadexAgentsDocumentProvider_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) {
        es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.diagram.part.JadexAgentsDiagramEditorPlugin
            .getInstance()
            .logError(
                es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.diagram.part.Messages.JadexAgentsDocumentProvider_handleElementContentChanged,
View Full Code Here

        IMavenProjectFacade facade = importMavenProject( "projects/maven-bundle-plugin/bundle-packaging", "pom.xml" );
        assertPDEPluginProject( facade, "META-INF/MANIFEST.MF" );

        // make sure full bundle is not packaged during workspace build
        IFile bundle = facade.getProject().getFile( "target/bundle-packaging-0.0.1-SNAPSHOT.jar" );
        bundle.refreshLocal( IResource.DEPTH_ZERO, monitor );
        assertFalse( bundle.exists() );
    }

    public void testDefaultManifestLocation()
        throws Exception
View Full Code Here

        {
            final IFile newFileHandle = operation.getFile().target();
           
            try
            {
                newFileHandle.refreshLocal( IResource.DEPTH_ZERO, new NullProgressMonitor() );
               
                create( newFileHandle.getParent() );
               
                if( newFileHandle.exists() )
                {
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.