Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » How do take a java.io.File to a IFile?
How do take a java.io.File to a IFile? [message #141659] Thu, 11 October 2007 12:17 Go to next message
Eclipse UserFriend
Originally posted by: caye5200.yahoo.com.cn

Hello
i want create a IFileEditorInput ,but argument is a IFile;
i know the IFile can get by IProject, but i want a select a
System file not a Project file, How i can do ?
IFileEditorInput editorInupt=new FileEditorInput(outFile);
Re: How do take a java.io.File to a IFile? [message #141712 is a reply to message #141659] Sat, 13 October 2007 06:58 Go to previous messageGo to next message
Philippe Ombredanne is currently offline Philippe OmbredanneFriend
Messages: 386
Registered: July 2009
Senior Member
"zxc" <caye5200@yahoo.com.cn> wrote in message
news:fel48t$h4j$1@build.eclipse.org...
> Hello
> i want create a IFileEditorInput ,but argument is a IFile;
> i know the IFile can get by IProject, but i want a select a
> System file not a Project file, How i can do ?
> IFileEditorInput editorInupt=new FileEditorInput(outFile);
Use EFS and
openEditorOnFileStore
Look at the code in :
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.ui.ide/ src/org/eclipse/ui/internal/ide/actions/OpenLocalFileAction. java?revision=1.1&view=markup
for how it is used.
Re: How do take a java.io.File to a IFile? [message #142023 is a reply to message #141712] Sun, 14 October 2007 08:59 Go to previous message
Eclipse UserFriend
Originally posted by: caye5200.yahoo.com.cn

Philippe Ombredanne:

Thank you! i know.

"Philippe Ombredanne" <pombredanne@nexb.com> wrote in message
news:fepqbi$jdk$1@build.eclipse.org...
> "zxc" <caye5200@yahoo.com.cn> wrote in message
> news:fel48t$h4j$1@build.eclipse.org...
>> Hello
>> i want create a IFileEditorInput ,but argument is a IFile;
>> i know the IFile can get by IProject, but i want a select a
>> System file not a Project file, How i can do ?
>> IFileEditorInput editorInupt=new FileEditorInput(outFile);
> Use EFS and
> openEditorOnFileStore
> Look at the code in :
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.ui.ide/ src/org/eclipse/ui/internal/ide/actions/OpenLocalFileAction. java?revision=1.1&view=markup
> for how it is used.
>
>
Re: How do take a java.io.File to a IFile? [message #616764 is a reply to message #141659] Sat, 13 October 2007 06:58 Go to previous message
Philippe Ombredanne is currently offline Philippe OmbredanneFriend
Messages: 386
Registered: July 2009
Senior Member
"zxc" <caye5200@yahoo.com.cn> wrote in message
news:fel48t$h4j$1@build.eclipse.org...
> Hello
> i want create a IFileEditorInput ,but argument is a IFile;
> i know the IFile can get by IProject, but i want a select a
> System file not a Project file, How i can do ?
> IFileEditorInput editorInupt=new FileEditorInput(outFile);
Use EFS and
openEditorOnFileStore
Look at the code in :
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.ui.ide/ src/org/eclipse/ui/internal/ide/actions/OpenLocalFileAction. java?revision=1.1&view=markup
for how it is used.
Re: How do take a java.io.File to a IFile? [message #616769 is a reply to message #141712] Sun, 14 October 2007 08:59 Go to previous message
Eclipse UserFriend
Originally posted by: caye5200.yahoo.com.cn

Philippe Ombredanne:

Thank you! i know.

"Philippe Ombredanne" <pombredanne@nexb.com> wrote in message
news:fepqbi$jdk$1@build.eclipse.org...
> "zxc" <caye5200@yahoo.com.cn> wrote in message
> news:fel48t$h4j$1@build.eclipse.org...
>> Hello
>> i want create a IFileEditorInput ,but argument is a IFile;
>> i know the IFile can get by IProject, but i want a select a
>> System file not a Project file, How i can do ?
>> IFileEditorInput editorInupt=new FileEditorInput(outFile);
> Use EFS and
> openEditorOnFileStore
> Look at the code in :
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.ui.ide/ src/org/eclipse/ui/internal/ide/actions/OpenLocalFileAction. java?revision=1.1&view=markup
> for how it is used.
>
>
Previous Topic:How to parse the VE Model: XMI View.xmi
Next Topic:Use VE to generate UI Code for any widget library
Goto Forum:
  


Current Time: Thu Apr 25 03:47:05 GMT 2024

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

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

Back to the top