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

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); 

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: 2554
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 WTP, IBM
Previous Topic:Small CommandContributionItem improvement
Next Topic:Need advice for testing builders
Goto Forum:

Current Time: Wed Oct 07 02:37:03 GMT 2015

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

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