Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » copy file by programming
copy file by programming [message #605655] Thu, 22 April 2010 10:04 Go to next message
Yu Sun is currently offline Yu Sun
Messages: 58
Registered: July 2009
Member
Hi everyone,

I want to make a copy of a file in the project folder by programming (e.g., in my plugin, I want to select a file and run a popup menu option, which triggers an action - making a copy of the file first and then do some modifications). I need to know how to copy a file in Java so that I can write the ActionHandler.

Is there an API or sample code to do this?

Thanks a lot.

Yu
Re: copy file by programming [message #605657 is a reply to message #605655] Thu, 22 April 2010 10:13 Go to previous message
Jan Reimann is currently offline Jan Reimann
Messages: 127
Registered: July 2009
Senior Member
Hi Yu,
have a look at the IFile API:
http://help.eclipse.org/galileo/topic/org.eclipse.platform.d oc.isv/reference/api/org/eclipse/core/resources/IFile.html

best regards,
Jan


> Hi everyone,
>
> I want to make a copy of a file in the project folder by programming
> (e.g., in my plugin, I want to select a file and run a popup menu
> option, which triggers an action - making a copy of the file first and
> then do some modifications). I need to know how to copy a file in Java
> so that I can write the ActionHandler.
> Is there an API or sample code to do this?
>
> Thanks a lot.
>
> Yu
Previous Topic:using compare apis without the plugin environment
Next Topic:launching JUnit plugin-test from command Prompt
Goto Forum:
  


Current Time: Sat Jul 26 15:27:56 EDT 2014

Powered by FUDForum. Page generated in 0.01604 seconds