Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Refresh workspace on switching perspective
Refresh workspace on switching perspective [message #330199] Sat, 19 July 2008 09:55 Go to next message
Eclipse UserFriend
Originally posted by: dhavan.jani.yahoo.com

Hi
i need to refresh my workspace on finish of create new project, I have
tried to do it by using following code

project.getWorkspace().getRoot().refreshLocal(IResource.DEPT H_INFINITE,
null);

but it was not instrumental.

I need to refresh workspace because, I create new project in java
perspective, on finish of create project wizard I switch to other
respective, to see newly created project in this perspective I need to
refresh it, at present I have to manually refresh but I want it to refresh
as soon as new perspective is open.

Can you suggest some way to do it.
Re: Refresh workspace on switching perspective [message #330200 is a reply to message #330199] Sat, 19 July 2008 17:44 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
Your code seems to be correct. Where are you calling it? Probably this
is never called?



- Prakash

www.eclipse-tips.com

DJani wrote:
> Hi
> i need to refresh my workspace on finish of create new project, I have
> tried to do it by using following code
>
> project.getWorkspace().getRoot().refreshLocal(IResource.DEPT H_INFINITE,
> null);
>
> but it was not instrumental.
>
> I need to refresh workspace because, I create new project in java
> perspective, on finish of create project wizard I switch to other
> respective, to see newly created project in this perspective I need to
> refresh it, at present I have to manually refresh but I want it to
> refresh as soon as new perspective is open.
>
> Can you suggest some way to do it.
>
>
Re: Refresh workspace on switching perspective [message #330229 is a reply to message #330200] Tue, 22 July 2008 04:50 Go to previous message
Eclipse UserFriend
Originally posted by: dhavan.jani.yahoo.com

Hi I am calling it on the finish button of my project wizard. I am calling
some other operations that are doing fine before trying to refreshing
workspace.
Previous Topic:P2 and unresolved dependencies
Next Topic:Common Navigator Framework: how to get benefit from standard Navigator menus?
Goto Forum:
  


Current Time: Sat Jul 13 00:21:03 GMT 2024

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

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

Back to the top