Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Can a plug-in automatically refresh a project?
Can a plug-in automatically refresh a project? [message #291022] Tue, 06 September 2005 13:53 Go to next message
Eclipse UserFriend
Originally posted by: micah.hainline.cerner.com

I have created a plug-in for Eclipse that, among other tasks, creates a
new file in my project. It uses standard java file I/O commands to do
this. The problem is that the file doesn't show up in the project until I
refresh the project. This is a little annoying. Is there a way to either
a) create the file in such a way that Eclipse registers it in the project
automatically, or b) create the file normally, then somehow register it
with Eclipse so that it shows up in the project, or c) create the file
normally, then cause Eclipse to refresh the project and find the file in
the file system?
Re: Can a plug-in automatically refresh a project? [message #291031 is a reply to message #291022] Tue, 06 September 2005 15:27 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Micah Hainline wrote:
> I have created a plug-in for Eclipse that, among other tasks, creates a
> new file in my project. It uses standard java file I/O commands to do
> this. The problem is that the file doesn't show up in the project until
> I refresh the project. This is a little annoying. Is there a way to
> either a) create the file in such a way that Eclipse registers it in the
> project automatically


Since you can get the IProject, you can use IProject#getFile(String) and
IFile#create(...) to create it. Then eclipse automatically knows about it.

Later,
PW


Re: Can a plug-in automatically refresh a project? [message #291086 is a reply to message #291022] Wed, 07 September 2005 15:30 Go to previous messageGo to next message
NiS is currently offline NiSFriend
Messages: 58
Registered: July 2009
Member
call:
project.refreshLocal(project.DEPTH_INFINITE, null);

NiS
Re: Can a plug-in automatically refresh a project? [message #291223 is a reply to message #291086] Mon, 12 September 2005 14:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: yossi_leon.hotmail.com

Nicolas,

How do i get ot the project from my plugin? (i'm quite new to this).

Thanks,
YL

"Nicolas Silb" <NiSJunk@DigitalAirways.com> wrote in message
news:dfn12k$qpa$1@news.eclipse.org...
> call:
> project.refreshLocal(project.DEPTH_INFINITE, null);
>
> NiS
>
Re: Can a plug-in automatically refresh a project? [message #291225 is a reply to message #291223] Mon, 12 September 2005 15:31 Go to previous message
Eclipse UserFriend
Originally posted by: automatic.javalobby.org

ResourcesPlugin.getWorkspace().getRoot().getProject("ProjectName ");
Previous Topic:CVS plugin quirks
Next Topic:Active project on the workspace
Goto Forum:
  


Current Time: Fri Apr 26 23:18:04 GMT 2024

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

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

Back to the top