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

Current Time: Sun Apr 22 18:46:25 GMT 2018

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

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