Re: [Pydev-code] Getting started with PyDev scripting
Brought to you by:
fabioz
|
From: Don T. <nos...@gm...> - 2006-04-15 01:30:18
|
Joel Hedlund wrote:
> Hi!
>
> I've cooked up a new version of my 'Assign method parameters to
> attributes of
> self' script.
Hi Joel:
I installed and played a little with your script - looking good.
Since I am congenitally unable to accept any compiler error messages I
changed the initial guard block from:
if False:
from org.python.pydev.editor import PyEdit #@UnresolvedImport
cmd = 'command string'
editor = PyEdit
to:
if False: #@UndefinedVariable
# None of this code will be executed, but it will stop Pydev
# extensions from complaining about undefined variables.
cmd = cmd #@UndefinedVariable
editor = editor #@UndefinedVariable
document = document #@UndefinedVariable
False = False #@UndefinedVariable
True = True #@UndefinedVariable
Note that bogus document = document assignment and that I have dropped
the bogus import statement and used a bogus assignment for editor. At
least there is only one trick being used here to resolve all of these
undefined variables.
Fabio: is this OK?
Don.
|