Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » How to insert widget from sandbox into RAP-Target
How to insert widget from sandbox into RAP-Target [message #880687] Sat, 02 June 2012 17:52 Go to next message
Anna Friedrich is currently offline Anna FriedrichFriend
Messages: 8
Registered: June 2012
Junior Member
Hi there,

I downloaded the RAP-Sandbox from ... oh! I cannot post links, because it is my first post... There is a git repository by Holger Staudacher online, where I downloaded Sandbox-Code.

I'm using Eclipse Indigo for RCP/RAP Developers and I copied the folder "org.eclipse.rwt.widgets.styledtext" (it is a folder, no jar) into "\eclipse\configuration\rap-runtime-1.4.2\eclipse\plugins".

I am working on a RAP-Project. In Manifest/dependencies I am able to add the styledtext plugin. But inside the sourcecode I'm trying to import the plugin using "import org.eclipse.swt.custom.StyledText;".
But that doesn't work. What am I missing?

I hope somebody can help me, I need a solution to continue my thesis...

Thanks in advance
Re: How to insert widget from sandbox into RAP-Target [message #881265 is a reply to message #880687] Mon, 04 June 2012 08:47 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Anna,

welcome to the RAP forum.

First off, the sandbox is not maintained anymore [1]. We recently moved
our source code to git, and decided to give up the sandbox module in
favor of the RAP Incubator project [2].

But we did not create an incubator component for this styled text
implementation yet. That's because we do not plan to further develop
this widget - it was an experiment, but followed an inferior approach.
It's not scalable, and there are much better ways to create a StyledText
in RAP.

However, you can still obtain the code from the CVS [3]. To use the
code, import the project into your workspace (Import > Projects from CVS).

Note that you should not copy any files into the eclipse directory. That
was a common practice back in the old days of eclipse but is not
supported anymore. To install software, use Help > Install New Software
or Help > Marketplace.

Regards,
Ralf


[1] Bug 309739 - Rename sandbox
https://bugs.eclipse.org/bugs/show_bug.cgi?id=309739

[2] http://eclipse.org/rap/incubator/

[3]
http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.rap/sandbox/?root=RT_Project

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: How to insert widget from sandbox into RAP-Target [message #881401 is a reply to message #881265] Mon, 04 June 2012 13:34 Go to previous messageGo to next message
Anna Friedrich is currently offline Anna FriedrichFriend
Messages: 8
Registered: June 2012
Junior Member
Thank you so much for your response, Ralf.

Importing styledtext into my workspace fixed my problems for now, I have to take a closer look at it.
What about the org.eclipse.rap.search? It is not in the incubator, right?
I imported search into my workspace as well, but it seems to have lots of errors. Has it just been the beginning of a RAP Search?

You said that "there are much better ways to create a StyledText
in RAP". I am trying to convert a RCP-application into a RAP-application. There is an editor component using styledText. What is your suggestion how to replace the styledText Plugin?

By the way, is there no need to have a RAP-based editor? I did read some topics about StyledText and they said it is too difficult and timeconsuming to implement it...

I hope it is not too annoying to talk about StyledText again and again...


Best regards
Anna
Re: How to insert widget from sandbox into RAP-Target [message #882322 is a reply to message #881401] Wed, 06 June 2012 08:55 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Anna,

Honestly, I don't remember the state of the search plugin. It hasn't
been touched for years, and I think it was more like a PoC.

As for the need for a styled text in RAP, it turns out that for most
business applications, simple text fields are sufficient. And it's not
hard to integrate one of the existing JavaScript-based rich text editors
with RAP. For an example, see the simple CKEditor widget [1].

A real StyledText implementation would be awesome, but as you've already
read, it would be a lot of effort.

Best regards,
Ralf

[1] https://github.com/eclipsesource/rap-ckeditor

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: How to insert widget from sandbox into RAP-Target [message #882540 is a reply to message #882322] Wed, 06 June 2012 17:11 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
Hi Anna,

let me put in what I remember about the search plug-in. It was initially
ported for a customer and maintained with low effort.
However it is part of my workspace and compiles just fine against RAP
from two or so weeks ago.
Note that it has some extra dependencies, org.eclipse.core.resources is
what I recall, but maybe more. Adding them will most likely resolve the
errors that you see.

HTH
RÜdiger

On 06.06.2012 10:55, Ralf Sternberg wrote:
> Hi Anna,
>
> Honestly, I don't remember the state of the search plugin. It hasn't
> been touched for years, and I think it was more like a PoC.
>
> As for the need for a styled text in RAP, it turns out that for most
> business applications, simple text fields are sufficient. And it's not
> hard to integrate one of the existing JavaScript-based rich text editors
> with RAP. For an example, see the simple CKEditor widget [1].
>
> A real StyledText implementation would be awesome, but as you've already
> read, it would be a lot of effort.
>
> Best regards,
> Ralf
>
> [1] https://github.com/eclipsesource/rap-ckeditor
>
--
Rüdiger Herrmann
http://codeaffine.com
Re: How to insert widget from sandbox into RAP-Target [message #885146 is a reply to message #882540] Tue, 12 June 2012 14:32 Go to previous messageGo to next message
Anna Friedrich is currently offline Anna FriedrichFriend
Messages: 8
Registered: June 2012
Junior Member
Hi Rüdiger,
thanks for your information!
I see, org.eclipse.core.resources is the point in org.eclipse.rap.search making trouble.
Can you explain a bit further how to add this plugin? I thought it is not possible to use "org.eclipse.core.resources" inside a RAP aplication?
This forum helps me so much, I like! Very Happy

Best regards,
Anna
Re: How to insert widget from sandbox into RAP-Target [message #885564 is a reply to message #885146] Wed, 13 June 2012 08:52 Go to previous message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
Anna,

from a purely technical point of view, core.resources can indeed be used
with RAP. It is only of limited use. All user sessions would share a
single workspace - whereas usually (in the IDE/RCP) a user has a
workspace of its own.

Though the search plug-in has a dependency on core.resources it isn't
limited to searching only in resources. You should be fine by adding the
dependency and then forgetting about it.

To add core.resources to you target, you could copy the necessary
plug-ins from your Eclipse installation folder to a separate folder and
add this folder to your target platform.
Besides core.resources itself, you'll need core.filesystem and
core.filesystem.win32 (or whichever OS you are working on).

HTH
Rüdiger

On 12.06.2012 16:32, Anna Friedrich wrote:
> Hi Rüdiger,
> thanks for your information!
> I see, org.eclipse.core.resources is the point in org.eclipse.rap.search
> making trouble.
> Can you explain a bit further how to add this plugin? I thought it is
> not possible to use "org.eclipse.core.resources" inside a RAP aplication?
> This forum helps me so much, I like! :d
> Best regards,
> Anna
--
Rüdiger Herrmann
http://codeaffine.com
Previous Topic:RAP Incubator Updatesite
Next Topic:Some JavaScript based widget examples/spinn offs
Goto Forum:
  


Current Time: Tue Apr 23 06:10:28 GMT 2024

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

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

Back to the top