|
Re: Single sourcing editors [message #910876 is a reply to message #910734] |
Mon, 10 September 2012 14:48 |
Ivan Furnadjiev Messages: 2429 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
Hi Frederic,
if you want to load a file from the client machine you have to upload
the file first to the server. Use the FileUpload bundles from the
incubator [1] for this purpose.
[1]
http://git.eclipse.org/c/rap/incubator/org.eclipse.rap.incubator.fileupload.git
HTH,
Ivan
On 9/10/2012 12:54 PM, Frederic Lionello wrote:
> Hello,
>
> I tried to port some FormEditor from RCP to RAP, but I fail figuring
> out how to do this: I do not find any FileEditorInput in the RAP
> bundles -- or even IFile -- , so I cannot trigger the opening of editors.
> I must be missing something, so can someone point me to an example /
> documentation on how to do that ?
>
> I understand that the concept of opening a file would be different
> within RAP, but I can't figure out what are the replacement options
> compared to RCP.
>
> Thanks, Regards,
>
--
Ivan Furnadjiev
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
|
|
Re: Single sourcing editors [message #910941 is a reply to message #910904] |
Mon, 10 September 2012 16:56 |
Ivan Furnadjiev Messages: 2429 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
Hi Frederic,
org.eclipse.ui.ide (FileEditorInput) is not part (not ported) of RAP
runtime and it can't be use directly in RAP. You need a custom solution
based on FileUpload. Please be aware that StyledText is missing in RAP
too. See bug
277346: StyledText is missing
https://bugs.eclipse.org/bugs/show_bug.cgi?id=277346
Best,
Ivan
On 9/10/2012 6:40 PM, Frederic Lionello wrote:
> Hello Ivan,
>
> Thanks for your response but that does not answer my question: once I
> get a file uploaded, how do I launch a specific editor with the file
> contents ?
> As mentionned in my initial question, I can't find the interfaces
> FileEditorInput in the RAP bundles, so I can't launch the editor with
> a file content...
>
> An example would be nice, here.
>
> Thanks,
--
Ivan Furnadjiev
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
|
Powered by
FUDForum. Page generated in 0.02707 seconds