importing a javascript project in eclipse

importing a javascript project in eclipse

I was wondering if it was possible to separate my javascript libraries in different eclipse project and then import them in another dynamic web project like I would normally do for regular java sub-projects ? 
This answer : Link JavaScript project with Java project in Eclipse
is what I want to do however I dont really like the answer ... I'd rather link to workspace projects rather than directly rely on the FileSystem .
It seems the JSDT ( http://www.eclipse.org/webtools/jsdt/ ) "adds a JavaScript project type and perspective to the Eclipse Workbench" but how do you use / import / link these JS projects in your java project ? 
Thanks for your help. 

Solutions/Answers:

Answer 1:

Add it to the JavaScript Include Path of your web project from the relevant Property Page:

JavaScript/Include Path property page for the project 'JS'

References

pydev interactive console always disappearing and other console questions

pydev interactive console always disappearing and other console questions

I've just started using pydev in Eclipse and I have a lot of questions about the way the interactive console works.
I have found out how to launch an interactive console and use it to run functions. My questions are this:

Every time I change my code and re-run it, my interactive console disappears. This is annoying as I have to reopen a console and I can't see/rerun my previous history. If I pin it, it stays, but then I can't run any code. Is there any way to keep the interactive console open all the time, but also be able to run your code? I currently spend a significant amount of my day closing and opening consoles!
How can I run a function from the interactive console, but still get the debugger to stop at breakpoints. I can use the debugger if I am running the code from a main function, but if I run the code from the console, it just skips right over break points.

thanks
Niall

Solutions/Answers:

Answer 1:

  1. Instead of clicking in “Python Run”, you may press Ctrl+Alt+Enter with the desired Python file active, and the console will call execfile on it. All your previous story stays there. You can also select some part of your code and run only it.

  2. As far as I know, you can’t. Check the pdb module instead.

Answer 2:

Not sure if the source of the problem is the same, but I encountered a similar issue in which the PyDev console kept disappearing as soon as I clicked in the script editor, even if the console’s Pin Console button was clicked.

I solved this simply by double-clicking on the script’s tab, which allowed the console to stay visible at all times.

References