Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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:com.google.gson doesn't work with RAP
Next Topic:MESSAGE Exception in org.eclipse.ui.internal.PageLayout.addView
Goto Forum:
  


Current Time: Sun Jul 06 17:22:01 EDT 2025

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

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

Back to the top