Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » problems with upload widget
problems with upload widget [message #130821] Wed, 29 April 2009 18:08 Go to next message
B. Todorov is currently offline B. TodorovFriend
Messages: 8
Registered: July 2009
Junior Member
Hi,

I want to use widget.upload for our project. I downloaded
org.eclipse.rwt.widgets.upload.demo and org.eclipse.rwt.widgets.upload
from sandbox in CVSroot/rt. When I run the demo everything works fine, but
when I tried to integrate the widged in my project(EditorPart) I got the
following error:

'this._uploadField._button._input.style' is null or not an object

org.eclipse.swt.EventUtil.suspendEventHandling();var req =
org.eclipse.swt.Request.getInstance();req.setRequestCounter( "10" );var wm
= org.eclipse.swt.WidgetManager.getInstance();var w = wm.findWidgetById(
"w189" );
...........

I use RAP 1.2 and this is part of the source I`m trying to run:

public class CircuitEditor extends EditorPart
{
private static final GridData FILL = new
GridData(GridData.FILL_HORIZONTAL);
private Text txtName;
private Upload upload ;

public void init(IEditorSite site, IEditorInput input)
throws PartInitException
{
if (!(input instanceof CircuitEditorInput))
{
throw new RuntimeException("Input not of type "
+ CircuitEditorInput.class.getName());
}
setSite(site);
setInput(input);
setPartName(input.getName());
circuit = (Circuit) input.getAdapter(Circuit.class);
}
public void createPartControl(Composite parent)
{
FormToolkit tk = new FormToolkit(parent.getDisplay());
Composite body = new Composite(parent, SWT.NONE);
body.setLayout(new GridLayout(2, false));

tk.createLabel(body, "Name:");
txtName = new Text(body, SWT.BORDER);
txtName.setLayoutData(FILL);

tk.createLabel(body, "Upload:");
upload = new Upload( body, SWT.NONE, SWT.NONE);
..............

Do you have any idea what is the problem?
Thanks,
B.Todorov
Re: problems with upload widget [message #131190 is a reply to message #130821] Mon, 04 May 2009 16:08 Go to previous messageGo to next message
B. Todorov is currently offline B. TodorovFriend
Messages: 8
Registered: July 2009
Junior Member
Is the problem so difficult, that no one can help me solve it?
Re: problems with upload widget [message #131203 is a reply to message #131190] Mon, 04 May 2009 16:28 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi B. Todorov,

this looks like a bug. Feel free to file a bugzilla [1] about it.

[1] http://wiki.eclipse.org/RAP_Bug_Reporting_Howto

Best,
Ivan

B. Todorov wrote:
> Is the problem so difficult, that no one can help me solve it?
>
Previous Topic:Blurry images in latest firefox
Next Topic:Progress on do save
Goto Forum:
  


Current Time: Fri Apr 26 21:42:21 GMT 2024

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

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

Back to the top