Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Refresh workspace on switching perspective
Refresh workspace on switching perspective [message #330199] Sat, 19 July 2008 05: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 13:44 Go to previous messageGo to next message
Eclipse UserFriend
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 00: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: Wed Apr 30 14:37:06 EDT 2025

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

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

Back to the top