Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Use RAP widgets as WST
Use RAP widgets as WST [message #4519] Thu, 08 March 2007 09:55 Go to next message
Eclipse UserFriend
Originally posted by: pedro.s.silva.criticalsoftware.com

Hi,
I' trying to create custom RAP widgets to extend VE so its possible to
create some interfaces with drag and drop but I have some doubts it will
work.

For instance a simple SWT that creates a container goes like this:

package test.ui;

import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.widgets.Composite;

public class Teste extends Composite {

public Teste(Composite parent, int style) {
super(parent, style);
initialize();
}

private void initialize() {
setSize(new Point(300, 200));
setLayout(new GridLayout());
}
}


But if I do the same with RAP get an error in the VE. The code for RAP
is like this:

package test.ui;

import org.eclipse.rap.rwt.graphics.Point;
import org.eclipse.rap.rwt.layout.GridLayout;
import org.eclipse.rap.rwt.widgets.Composite;


public class Teste extends Composite {

public Teste(Composite parent, int style) {
super(parent, style);
initialize();
}

private void initialize() {
setSize(new Point(300, 200));
setLayout(new GridLayout());
}
}

The error I got is a red cross in the VE preview pane saying:
java.lang.NoSuchethodException(org.eclipse.rap.rwt.widgets.C omposite. <init>())
Re: Use RAP widgets as WST [message #4659 is a reply to message #4519] Thu, 08 March 2007 12:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

thanks for testing RAP. Unfortunately I am not familiar with VE. I have
tested your class within the RAP demo and it seemed to work fine. Does VE
support to use a library like RAP?

Regards
Frank Appel


"Pedro Silva" <pedro.s.silva@criticalsoftware.com> schrieb im Newsbeitrag
news:esomir$od6$1@utils.eclipse.org...
> Hi,
> I' trying to create custom RAP widgets to extend VE so its possible to
> create some interfaces with drag and drop but I have some doubts it will
> work.
>
> For instance a simple SWT that creates a container goes like this:
>
> package test.ui;
>
> import org.eclipse.swt.layout.GridLayout;
> import org.eclipse.swt.graphics.Point;
> import org.eclipse.swt.widgets.Composite;
>
> public class Teste extends Composite {
>
> public Teste(Composite parent, int style) {
> super(parent, style);
> initialize();
> }
>
> private void initialize() {
> setSize(new Point(300, 200));
> setLayout(new GridLayout());
> }
> }
>
>
> But if I do the same with RAP get an error in the VE. The code for RAP is
> like this:
>
> package test.ui;
>
> import org.eclipse.rap.rwt.graphics.Point;
> import org.eclipse.rap.rwt.layout.GridLayout;
> import org.eclipse.rap.rwt.widgets.Composite;
>
>
> public class Teste extends Composite {
>
> public Teste(Composite parent, int style) {
> super(parent, style);
> initialize();
> }
>
> private void initialize() {
> setSize(new Point(300, 200));
> setLayout(new GridLayout());
> }
> }
>
> The error I got is a red cross in the VE preview pane saying:
> java.lang.NoSuchethodException(org.eclipse.rap.rwt.widgets.C omposite. <init>())
>
Re: Use RAP widgets as WST [message #4796 is a reply to message #4659] Thu, 08 March 2007 14:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pedro.s.silva.criticalsoftware.com

Visual Editor Project is a eclipse plugin that allows the build of GUI
in a drag and drop manner. It supports AWT, SWING, SWT and RCP. It comes
very handy to develop the basic interface and manage the several
widgets, placement, etc ...

In the meanwhile I've been thinking that probably it doesn't :( Because
the VE expects java classes and not a library that converts java into
JavaScript, right? The preview pane that draws the different widgets and
allows the interaction with them, would have to be capable of loading
some servlet server in the background in order to preview the RWT
components. At least I think...

What do you think?

Any plans to have a designer plugin or support of RWT by Visual Editor
Project ?

Pedro Silva

Frank Appel wrote:
> Hi,
>
> thanks for testing RAP. Unfortunately I am not familiar with VE. I have
> tested your class within the RAP demo and it seemed to work fine. Does VE
> support to use a library like RAP?
>
> Regards
> Frank Appel
>
>
> "Pedro Silva" <pedro.s.silva@criticalsoftware.com> schrieb im Newsbeitrag
> news:esomir$od6$1@utils.eclipse.org...
>> Hi,
>> I' trying to create custom RAP widgets to extend VE so its possible to
>> create some interfaces with drag and drop but I have some doubts it will
>> work.
>>
>> For instance a simple SWT that creates a container goes like this:
>>
>> package test.ui;
>>
>> import org.eclipse.swt.layout.GridLayout;
>> import org.eclipse.swt.graphics.Point;
>> import org.eclipse.swt.widgets.Composite;
>>
>> public class Teste extends Composite {
>>
>> public Teste(Composite parent, int style) {
>> super(parent, style);
>> initialize();
>> }
>>
>> private void initialize() {
>> setSize(new Point(300, 200));
>> setLayout(new GridLayout());
>> }
>> }
>>
>>
>> But if I do the same with RAP get an error in the VE. The code for RAP is
>> like this:
>>
>> package test.ui;
>>
>> import org.eclipse.rap.rwt.graphics.Point;
>> import org.eclipse.rap.rwt.layout.GridLayout;
>> import org.eclipse.rap.rwt.widgets.Composite;
>>
>>
>> public class Teste extends Composite {
>>
>> public Teste(Composite parent, int style) {
>> super(parent, style);
>> initialize();
>> }
>>
>> private void initialize() {
>> setSize(new Point(300, 200));
>> setLayout(new GridLayout());
>> }
>> }
>>
>> The error I got is a red cross in the VE preview pane saying:
>> java.lang.NoSuchethodException(org.eclipse.rap.rwt.widgets.C omposite. <init>())
>>
>
>
Re: Use RAP widgets as WST [message #5722 is a reply to message #4796] Mon, 12 March 2007 23:21 Go to previous message
Eclipse UserFriend
Originally posted by: jkrause.innoopract.com

Hi Pedro,

Having VE support for RAP would be really cool. We will look into this
topic in the next couple of weeks.

Jochen


Pedro Silva wrote:
> Visual Editor Project is a eclipse plugin that allows the build of GUI
> in a drag and drop manner. It supports AWT, SWING, SWT and RCP. It comes
> very handy to develop the basic interface and manage the several
> widgets, placement, etc ...
>
> In the meanwhile I've been thinking that probably it doesn't :( Because
> the VE expects java classes and not a library that converts java into
> JavaScript, right? The preview pane that draws the different widgets and
> allows the interaction with them, would have to be capable of loading
> some servlet server in the background in order to preview the RWT
> components. At least I think...
>
> What do you think?
>
> Any plans to have a designer plugin or support of RWT by Visual Editor
> Project ?
>
> Pedro Silva
>
> Frank Appel wrote:
>> Hi,
>>
>> thanks for testing RAP. Unfortunately I am not familiar with VE. I
>> have tested your class within the RAP demo and it seemed to work fine.
>> Does VE support to use a library like RAP?
>>
>> Regards
>> Frank Appel
>>
>>
>> "Pedro Silva" <pedro.s.silva@criticalsoftware.com> schrieb im
>> Newsbeitrag news:esomir$od6$1@utils.eclipse.org...
>>> Hi,
>>> I' trying to create custom RAP widgets to extend VE so its possible
>>> to create some interfaces with drag and drop but I have some doubts
>>> it will work.
>>>
>>> For instance a simple SWT that creates a container goes like this:
>>>
>>> package test.ui;
>>>
>>> import org.eclipse.swt.layout.GridLayout;
>>> import org.eclipse.swt.graphics.Point;
>>> import org.eclipse.swt.widgets.Composite;
>>>
>>> public class Teste extends Composite {
>>>
>>> public Teste(Composite parent, int style) {
>>> super(parent, style);
>>> initialize();
>>> }
>>>
>>> private void initialize() {
>>> setSize(new Point(300, 200));
>>> setLayout(new GridLayout());
>>> }
>>> }
>>>
>>>
>>> But if I do the same with RAP get an error in the VE. The code for
>>> RAP is like this:
>>>
>>> package test.ui;
>>>
>>> import org.eclipse.rap.rwt.graphics.Point;
>>> import org.eclipse.rap.rwt.layout.GridLayout;
>>> import org.eclipse.rap.rwt.widgets.Composite;
>>>
>>>
>>> public class Teste extends Composite {
>>>
>>> public Teste(Composite parent, int style) {
>>> super(parent, style);
>>> initialize();
>>> }
>>>
>>> private void initialize() {
>>> setSize(new Point(300, 200));
>>> setLayout(new GridLayout());
>>> }
>>> }
>>>
>>> The error I got is a red cross in the VE preview pane saying:
>>> java.lang.NoSuchethodException(org.eclipse.rap.rwt.widgets.C omposite. <init>())
>>>
>>>
>>
>>
Previous Topic:Some doubts
Next Topic:Getting URL Paramter
Goto Forum:
  


Current Time: Fri Apr 26 10:47:44 GMT 2024

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

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

Back to the top