Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » How to import the UploadWidget in another Project?
How to import the UploadWidget in another Project? [message #96531] Thu, 03 July 2008 16:52 Go to next message
Eclipse UserFriend
Originally posted by: s1700552.inf.tu-dresden.de

Hello,

I'm new in writing in RAP.
I want to use the widget of the File-Upload from sandbox.
It works good, if I refer from my Project to the CVS-Project of
File-Upload in the Build Path.

Now I tried to export the Upload-Project as Plug-In and import the
jar-file in my Project.
I also imported the needed packages
commons-fileupload-1.2.1.jar, commons-io-1.4.jar
in the Classpath and
javax.servlet
in the Required Plug-ins.

But there is still this error:
Could not evaluate javascript response:
Objekt erwartet

org.eclipse.swt.EventUtil.suspendEventHandling();var req =
org.eclipse.swt.Request.getInstance();req.setRequestCounter( "3" );var wm
= org.eclipse.swt.WidgetManager.getInstance();var w = wm.findWidgetById(
"w29" );
.......
[ "Segoe UI", "Corbel", "Calibri", "Tahoma", "Lucida Sans Unicode",
"sans-serif" ], 11, false, false, -1 ] ] );
I have no more idea what it is and where it comes from.
What I'm doing wrong?

thanks in advance
Torsten

PS: Please excuse my bad English terms.
Re: How to import the UploadWidget in another Project? [message #96672 is a reply to message #96531] Fri, 04 July 2008 06:15 Go to previous messageGo to next message
Stefan   is currently offline Stefan Friend
Messages: 316
Registered: July 2009
Senior Member
Hi Torsten,

can you post some snippet which causes the JS-error?

Anyway, I don't think that you need to export the upload plug-in. You
can add this bundle to your application and must assure, that the import
package dependencies can be resolved (apache commons libs).

One way to achieve this is to download the apache fileupload and io
plug-ins from the eclipse cvs (cvsroot/tools/org.eclipse.orbit).

Regards,
Stefan.


Torsten schrieb:
> Hello,
>
> I'm new in writing in RAP.
> I want to use the widget of the File-Upload from sandbox.
> It works good, if I refer from my Project to the CVS-Project of
> File-Upload in the Build Path.
>
> Now I tried to export the Upload-Project as Plug-In and import the
> jar-file in my Project.
> I also imported the needed packages
> commons-fileupload-1.2.1.jar, commons-io-1.4.jar
> in the Classpath and
> javax.servlet
> in the Required Plug-ins.
>
> But there is still this error:
> Could not evaluate javascript response:
> Objekt erwartet
>
> org.eclipse.swt.EventUtil.suspendEventHandling();var req =
> org.eclipse.swt.Request.getInstance();req.setRequestCounter( "3" );var
> wm = org.eclipse.swt.WidgetManager.getInstance();var w =
> wm.findWidgetById( "w29" );
> ......
> [ "Segoe UI", "Corbel", "Calibri", "Tahoma", "Lucida Sans Unicode",
> "sans-serif" ], 11, false, false, -1 ] ] );
> I have no more idea what it is and where it comes from.
> What I'm doing wrong?
>
> thanks in advance
> Torsten
>
> PS: Please excuse my bad English terms.
>
Re: How to import the UploadWidget in another Project? [message #96787 is a reply to message #96672] Fri, 04 July 2008 09:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: s1700552.inf.tu-dresden.de

Hi Stefan,

thank you for answering.

I think that's my real problem. Which options I have to add the bundle to
my application?
The option I also tried was to copy the /src – content in my project. And
import the needed libraries (apache fileupload, io (as .jars) and
javax.servlet (as plug-in)) till eclipse shows no errors.
Are there other options?

The problem, why I can't use two projects is, that I have to share my
project per SVN. So the project has to contain all referred libraries that
are not standart.

Regards,
Torsten




Stefan Roeck wrote:

> Hi Torsten,

> can you post some snippet which causes the JS-error?

> Anyway, I don't think that you need to export the upload plug-in. You
> can add this bundle to your application and must assure, that the import
> package dependencies can be resolved (apache commons libs).

> One way to achieve this is to download the apache fileupload and io
> plug-ins from the eclipse cvs (cvsroot/tools/org.eclipse.orbit).

> Regards,
> Stefan.


> Torsten schrieb:
>> Hello,
>>
>> I'm new in writing in RAP.
>> I want to use the widget of the File-Upload from sandbox.
>> It works good, if I refer from my Project to the CVS-Project of
>> File-Upload in the Build Path.
>>
>> Now I tried to export the Upload-Project as Plug-In and import the
>> jar-file in my Project.
>> I also imported the needed packages
>> commons-fileupload-1.2.1.jar, commons-io-1.4.jar
>> in the Classpath and
>> javax.servlet
>> in the Required Plug-ins.
>>
>> But there is still this error:
>> Could not evaluate javascript response:
>> Objekt erwartet
>>
>> org.eclipse.swt.EventUtil.suspendEventHandling();var req =
>> org.eclipse.swt.Request.getInstance();req.setRequestCounter( "3" );var
>> wm = org.eclipse.swt.WidgetManager.getInstance();var w =
>> wm.findWidgetById( "w29" );
>> ......
>> [ "Segoe UI", "Corbel", "Calibri", "Tahoma", "Lucida Sans Unicode",
>> "sans-serif" ], 11, false, false, -1 ] ] );
>> I have no more idea what it is and where it comes from.
>> What I'm doing wrong?
>>
>> thanks in advance
>> Torsten
>>
>> PS: Please excuse my bad English terms.
>>
Re: How to import the UploadWidget in another Project? [message #96857 is a reply to message #96787] Fri, 04 July 2008 10:24 Go to previous messageGo to next message
Stefan   is currently offline Stefan Friend
Messages: 316
Registered: July 2009
Senior Member
Hi,


> I think that's my real problem. Which options I have to add the bundle
> to my application?

You can simply add a bundle dependency from your application plugin to
the upload-plugin. As the later exports all relevant classes, those can
be imported from your classes.
When you start your app, make sure that the upload bundle is in your
launch config.


However, you still have to satisfy the upload plugin's import
dependencies. Have you tried to download the apache-commons bundles from
eclipse orbit as suggested in my previous posting?

There should be no need to modify code within the upload plugin itself...

Hope this helps,
Stefan.

> The option I also tried was to copy the /src content in my project.
> And import the needed libraries (apache fileupload, io (as .jars) and
> javax.servlet (as plug-in)) till eclipse shows no errors.
> Are there other options?
>
> The problem, why I can't use two projects is, that I have to share my
> project per SVN. So the project has to contain all referred libraries
> that are not standart.
>
> Regards,
> Torsten
>
>
>
>
> Stefan Roeck wrote:
>
>> Hi Torsten,
>
>> can you post some snippet which causes the JS-error?
>
>> Anyway, I don't think that you need to export the upload plug-in. You
>> can add this bundle to your application and must assure, that the
>> import package dependencies can be resolved (apache commons libs).
>
>> One way to achieve this is to download the apache fileupload and io
>> plug-ins from the eclipse cvs (cvsroot/tools/org.eclipse.orbit).
>
>> Regards,
>> Stefan.
>
>
>> Torsten schrieb:
>>> Hello,
>>>
>>> I'm new in writing in RAP.
>>> I want to use the widget of the File-Upload from sandbox.
>>> It works good, if I refer from my Project to the CVS-Project of
>>> File-Upload in the Build Path.
>>>
>>> Now I tried to export the Upload-Project as Plug-In and import the
>>> jar-file in my Project.
>>> I also imported the needed packages
>>> commons-fileupload-1.2.1.jar, commons-io-1.4.jar
>>> in the Classpath and
>>> javax.servlet
>>> in the Required Plug-ins.
>>>
>>> But there is still this error:
>>> Could not evaluate javascript response:
>>> Objekt erwartet
>>>
>>> org.eclipse.swt.EventUtil.suspendEventHandling();var req =
>>> org.eclipse.swt.Request.getInstance();req.setRequestCounter( "3"
>>> );var wm = org.eclipse.swt.WidgetManager.getInstance();var w =
>>> wm.findWidgetById( "w29" );
>>> ......
>>> [ "Segoe UI", "Corbel", "Calibri", "Tahoma", "Lucida Sans Unicode",
>>> "sans-serif" ], 11, false, false, -1 ] ] );
>>> I have no more idea what it is and where it comes from.
>>> What I'm doing wrong?
>>>
>>> thanks in advance
>>> Torsten
>>>
>>> PS: Please excuse my bad English terms.
>>>
>
>
Re: How to import the UploadWidget in another Project? [message #97082 is a reply to message #96857] Sat, 05 July 2008 14:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: s1700552.inf.tu-dresden.de

Hi again,

many thanks, it works.
I've downloaded the apache.commons and javax.servlet from the repository.
Then I linked them and the upload-bundle in my plugin.xml in “Requird
Plug-ins”.
And activated the bundles in my launch config (do you mean the
Run_As-dialog).
If I have got you right, that's ok.

But now there are 5 projects in my workspace (mine(SVN-shared), upload and
the 3 depended (all shared with CVS)). How could I share them efficient
with my SVN teammates?

Regards,
Torsten
Re: How to import the UploadWidget in another Project? [message #97248 is a reply to message #97082] Tue, 08 July 2008 07:07 Go to previous message
Stefan   is currently offline Stefan Friend
Messages: 316
Registered: July 2009
Senior Member
Hi Torsten,

I see two possibilities:

1. Create a team project set (psf-File) which can contains all links to
your necessary projects. This psf-file can be used to setup a working
space by your colleagues.

2. Copy the CVS-projects to your SVN. This ensures, that everyone uses
the same version.

Regards,
Stefan.

Torsten schrieb:
> Hi again,
>
> many thanks, it works.
> I've downloaded the apache.commons and javax.servlet from the repository.
> Then I linked them and the upload-bundle in my plugin.xml in �Requird
> Plug-ins�.
> And activated the bundles in my launch config (do you mean the
> Run_As-dialog).
> If I have got you right, that's ok.
>
> But now there are 5 projects in my workspace (mine(SVN-shared), upload
> and the 3 depended (all shared with CVS)). How could I share them
> efficient with my SVN teammates?
>
> Regards,
> Torsten
>
Previous Topic:A small hint: new styling feature and borders
Next Topic:RAP 1.2
Goto Forum:
  


Current Time: Thu Apr 25 21:41:21 GMT 2024

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

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

Back to the top