Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Single sourcing editors
Single sourcing editors [message #910734] Mon, 10 September 2012 05:54 Go to next message
Frederic Lionello is currently offline Frederic Lionello
Messages: 3
Registered: September 2012
Junior Member
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,
Re: Single sourcing editors [message #910876 is a reply to message #910734] Mon, 10 September 2012 10:48 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1782
Registered: July 2009
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 #910904 is a reply to message #910876] Mon, 10 September 2012 11:40 Go to previous messageGo to next message
Frederic Lionello is currently offline Frederic Lionello
Messages: 3
Registered: September 2012
Junior Member
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,
Re: Single sourcing editors [message #910941 is a reply to message #910904] Mon, 10 September 2012 12:56 Go to previous message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1782
Registered: July 2009
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/
Previous Topic:MESSAGE Exception in org.eclipse.ui.internal.PageLayout.addView
Next Topic:com.google.gson doesn't work with RAP
Goto Forum:
  


Current Time: Wed Jul 30 03:04:13 EDT 2014

Powered by FUDForum. Page generated in 0.02431 seconds