Fabio Zadrozny wrote:
Actually, you probably want to ask the status manager to the editor. Something as below (untested):

statusLine = editor.getAdapter(IEditorStatusLine.class);
if statusLine is not None:
    statusLine.setMessage(False, "foo", None)

Fabio:

My code looks like this:

if cmd == 'onCreateActions':
    from org.eclipse.jface.action import Action
    from org.python.pydev.core.docutils import PySelection
    from org.eclipse.ui.texteditor import IEditorStatusLine

#-Paragrapher---------------------------------------------------------------
    class Paragrapher:
''' Provides tools to process a paragraph of text in the Pydev editor.

        '''
        def __init__(self):

            self.selection = PySelection(editor)
            self.document = editor.getDocument()

            self.statusLine = editor.getAdapter(IEditorStatusLine)
            print "statusLine %s" % self.statusLine
            if self.statusLine is not None:
                self.statusLine.setMessage(False, "foo", None)


When I run this I get:

statusLine [EMAIL PROTECTED]

on the console - which I think is good?

But I don't see my message showing up anywhere.

DOn.


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
pydev-code mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-code

Reply via email to