Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipse-dev] execing a file python file which is part of a Plugin

HI all,
I haven't seen a good example of this in discussions or tutorials (perhaps
because it's an uncommon useage), but here's what I would like to do:
1. I am working on completion proposals for a pythonic Eclipse editor.
2. I have a python code introspector writen in python (inspector.py) that
emits potential completions to standard out;
3. On encountering the autoactivation characters ( dot or left paren ) I
would like to getRuntime().exec() the python file which is in the plugin's
path.
I can figure out where the python interpreter is on the user's system, I
know hoe to wire the content assitant thanks to the very excellent article
"Equipping SWT applications with content assistants" at
http://www-106.ibm.com/developerworks/opensource/library/os-ecca/?ca=dgr-lnx
w09SWTContentAssist%22 .I can do the exec, I can return (but exec of _what_
exactly is the problem)

What I don't know how to do precisely is how I:
A. Configure Eclipse to know it has this resource and build the resource
with the Plugin
B. Get a runtime handle to the file relative to its containment in the
Plugin.
I sort of assume I should do something similar to the way ANT uses the
build.xml attached to a project, but thus far my software spelunking has
been unproductive. Any help will be great appreciated and will result in a
more full featured Python IDE for Eclipse

Thanks in advance.
Dana Moore,
BBN Technologies




Back to the top