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: 2860
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
Previous Topic:Problem with updating the plugin created by me
Next Topic:Help not too helpful
Goto Forum:

Current Time: Wed May 24 06:18:12 GMT 2017

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

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