Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Refresh Workspace
Refresh Workspace [message #667361] Thu, 28 April 2011 10:36 Go to next message
JeTBLaCK  is currently offline JeTBLaCK Friend
Messages: 41
Registered: March 2011
Member
Hi!!

I need refresh my workspace after creating a new file using io.File.

I used the next code:

IWorkspace workspace = ResourcesPlugin.getWorkspace();
workspace.getRoot().refreshLocal(IResource.DEPTH_INFINITE, null);

But not found.

I used too:

IWorkspace workspace = ResourcesPlugin.getWorkspace(); 
IPath location = Path.fromOSString(temp.getAbsolutePath()); 
IFile file = workspace.getRoot().getFileForLocation(location); 
file.refreshLocal(IResource.DEPTH_INIFINITE,null);

But not found.

Any suggestion?? Crying or Very Sad

Re: Refresh Workspace [message #668505 is a reply to message #667361] Thu, 05 May 2011 21:25 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4492
Registered: July 2009
Senior Member

Any reason you're not just using IFile.create() to create the file instead?

--
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:Small CommandContributionItem improvement
Next Topic:Need advice for testing builders
Goto Forum:
  


Current Time: Mon Sep 23 15:45:12 GMT 2024

Powered by FUDForum. Page generated in 0.02918 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top