[Pydev-code] Unable to navigate from python file to java method using "self" in Pydev
Brought to you by:
fabioz
|
From: Naman p. <pat...@cs...> - 2014-12-02 15:45:59
|
Hi,
I have a file.py as follows :
*import unittest*
*from com.bahmanm import Greeter*
*class A(unittest.TestCase, Greeter):*
* def test_A(self):*
* self.greet("Bahman")*
*if __name__ == "__main__": *
* unittest.main()*
In above case, Greeter is a java file as:
*package com.bahmanm;*
*public class Greeter {*
* private String msg;*
* public Greeter() {*
* msg = "Hello, ";*
* }*
* public void greet(String name) {*
* System.out.println(msg + name);*
* }*
*}*
The code runs successfully, but I am not able to navigate from python code
to java code at line *self.greet("Bahman") *in the file.py code.
I am able to view the contents of Greeter file from line
*from com.bahmanm import Greeter. * But am not able to check the code flow
at the function call.
I am using jython interpreter. I have also added the Java src path to
PYTHONPATH in Eclipse.
Any suggestion regarding the above navigation will be of great help.
Please find the corresponding attached source files.
|