Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wtp-dev] JSDT Libraries and Java classes

Hi Sven,
Sounds interesting and like something we could also use.
I unfortunately don't know the best way to start however two things I think we would need are:
1) A "Rhino Library" we can add in the project settings. This would give us some of the base objects we need to reference java code like "Package" and "java"
2) Java "Project" support in project settings that automates (and likely hides behind the scenes) Java stub creation

I'd open bugs for those two issues to start things rolling.
-Simon

Inactive hide details for Sven Asp ---04/21/2010 10:24:36 AM---Hi Chris, Thanks for your rapid response.Sven Asp ---04/21/2010 10:24:36 AM---Hi Chris, Thanks for your rapid response.


From:

Sven Asp <asp.sven@xxxxxxxxx>

To:

"General discussion of project-wide or architectural issues." <wtp-dev@xxxxxxxxxxx>

Date:

04/21/2010 10:24 AM

Subject:

Re: [wtp-dev] JSDT Libraries and Java classes

Sent by:

wtp-dev-bounces@xxxxxxxxxxx




Hi Chris,
Thanks for your rapid response.

My problem is that I'm using a web-server (Cocoon) that makes a lot of jars available for _javascript_ server side evaluation. A lot of the logic is written in _javascript_ that imports packages from those jars. The jars in turn, are also part of the application.

Ideally, I'd like to be able to alter the name of a method a Java file, compile it, and get error in a _javascript_ file that references the old method name.

The situation (_javascript_ calling on custom java) can't be that uncommon, so perhaps some support for that would be worth considering?

Regards,
Sven

On 04/21/2010 03:38 PM, Christopher Jaun wrote:
      Hello Sven,

      JSDT does not understand jar or .class files.

      We do not have any tool to automatically generate prototypes.

      I don't quite understand what you are trying to do with your java files or how a classpath container would help your situation? There are examples containers in the JSDT plugins, for things such as the browser or firefox/IE libraries. You could look at those for some guidance.

      Thanks,
      Chris





      Inactive hide details for Sven Asp ---04/21/2010 09:33:47 AM---Hi,Sven Asp ---04/21/2010 09:33:47 AM---Hi,
      Please respond to
      "General discussion of project-wide or architectural issues." <wtp-dev@xxxxxxxxxxx>
      To

      wtp-dev@xxxxxxxxxxx
      cc
      Subject

      [wtp-dev] JSDT Libraries and Java classes

      Hi,
      I'm trying to make jsdt (editor, inference, etc.) understand that a lot
      of objects referenced from the _javascript_ code are Java classes provided
      by another project in my workspace. I haven't been able to figure out
      how to alter the global scope to include a jar or .class files. So my
      first question is, is that at all possible?

      If not, then I assume that I need to create prototypes for my Java
      classes. Is there any tool that can be used to automate that?

      I guess that a third option would be to write my own classpath
      container. Has anyone done something similar?

      Thanks,
      Sven Asp

      _______________________________________________
      wtp-dev mailing list

      wtp-dev@xxxxxxxxxxx
      https://dev.eclipse.org/mailman/listinfo/wtp-dev



      _______________________________________________
      wtp-dev mailing list
      wtp-dev@xxxxxxxxxxx
      https://dev.eclipse.org/mailman/listinfo/wtp-dev
       

_______________________________________________
wtp-dev mailing list
wtp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/wtp-dev


GIF image

GIF image


Back to the top