| 
| problems with upload widget [message #130821] | Wed, 29 April 2009 14:08  |  | 
| Eclipse User  |  |  |  |  | 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
 |  |  |  | 
|  | 
|  | 
Powered by 
FUDForum. Page generated in 0.03621 seconds