Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » Setting up Libraries
Setting up Libraries [message #30506] Mon, 25 August 2008 00:35 Go to next message
Eclipse UserFriend
Originally posted by: dcarver.starstandard.org

I'm doing some prototype work for the XSL Tools incubator project, using
DLTK as a possible replacement for our current launching and
debugging support for XSL development. XSL doesn't really have a
library concept, but java interpreters like Xalan or Saxon may require
some external jar files to be included when they are executed. In
particluar since the command lines for these interpreters are Java,
they'll execute the java command, but will require their appropriate jar
or folder that contains the classes to be included.

I haven't been able to see a way to specify that a library contains a
set of "jar's" As the library for the parser may not be in a specific
folder, it could be in any user folder, is there a way to get the
Libraries concept to recognize Java Jar files?

Any hints or help would be appreciated. I've been modeling off of the
Ruby implementation.

Dave
Re: Setting up Libraries [message #30575 is a reply to message #30506] Mon, 25 August 2008 06:03 Go to previous messageGo to next message
Alex Panchenko is currently offline Alex PanchenkoFriend
Messages: 342
Registered: July 2009
Senior Member
Hi David,

User library management is implemented in DLTK but it was not enabled
for ruby yet (it was added for TCL first) - I have just committed the
changes, mostly it is:

<page
name="Libraries"
category="org.eclipse.dltk.ruby.preferences"
class=" org.eclipse.dltk.ruby.internal.ui.preferences.RubyLibraryPre ferencePage "
id="org.eclipse.dltk.ruby.preferences.UserLibraryPreferencePage ">
</page>

and

<extension point="org.eclipse.dltk.ui.buildpathContainerPage">
<buildpathContainerPath
nature="org.eclipse.dltk.ruby.core.nature"
name="User Library"
class=" org.eclipse.dltk.internal.ui.wizards.buildpath.UserLibraryWi zardPage "
id="org.eclipse.dltk.USER_LIBRARY">
</buildpathContainerPath>
</extension>

Also you should override "public boolean languageSupportZIPBuildpath() {
return true; }" in your LanguageToolkit to be able to select files too
(without this change you can select only folders). Most of the time it
works with *.zip files - in your case you probably want it to operate on
*.jar files instead - probably some places should be extended in DLTK.

Regards,
Alex


David Carver wrote:
> I'm doing some prototype work for the XSL Tools incubator project, using
> DLTK as a possible replacement for our current launching and debugging
> support for XSL development. XSL doesn't really have a library
> concept, but java interpreters like Xalan or Saxon may require some
> external jar files to be included when they are executed. In particluar
> since the command lines for these interpreters are Java, they'll execute
> the java command, but will require their appropriate jar or folder that
> contains the classes to be included.
>
> I haven't been able to see a way to specify that a library contains a
> set of "jar's" As the library for the parser may not be in a specific
> folder, it could be in any user folder, is there a way to get the
> Libraries concept to recognize Java Jar files?
>
> Any hints or help would be appreciated. I've been modeling off of the
> Ruby implementation.
>
> Dave
Re: Setting up Libraries [message #30609 is a reply to message #30575] Mon, 25 August 2008 13:48 Go to previous message
Eclipse UserFriend
Originally posted by: dcarver.starstandard.org

Alex Panchenko wrote:
> Hi David,
>
> User library management is implemented in DLTK but it was not enabled
> for ruby yet (it was added for TCL first) - I have just committed the
> changes, mostly it is:
>
> <page
> name="Libraries"
> category="org.eclipse.dltk.ruby.preferences"
> class=" org.eclipse.dltk.ruby.internal.ui.preferences.RubyLibraryPre ferencePage "
>
> id="org.eclipse.dltk.ruby.preferences.UserLibraryPreferencePage ">
> </page>

User Libraries aren't necessarily what I'm looking for as each processor
has it's own ways to add extension functionality. What I was looking
for was when adding an interpreter was a way to specify the format of
the External Libraries...it seems those on the interpret can only be
folders.


>
> Also you should override "public boolean languageSupportZIPBuildpath() {
> return true; }" in your LanguageToolkit to be able to select files too
> (without this change you can select only folders). Most of the time it
> works with *.zip files - in your case you probably want it to operate on
> *.jar files instead - probably some places should be extended in DLTK.

That is one thing I hadn't done was implement all the language toolkits.
I'll play around with this a bit more, but I think you are right that
I'll need to do a few extensions and overrides in some places. I'm
close to getting it going, just need to tweak in a few places.

Dave
Previous Topic:installing Javascript IDE with integration build
Next Topic:[BUILD] R1.0-I
Goto Forum:
  


Current Time: Sat Jul 27 10:18:11 GMT 2024

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

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

Back to the top