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.
'''
Created on Dec 2, 2014

@author: priyanka
'''
import unittest
from  com.bahmanm import Greeter



class A(unittest.TestCase, Greeter):
    def test_A(self):
        self.greet("Bahman")

if __name__ == "__main__":  
   
    unittest.main()
package  com.bahmanm;
public class Greeter {

 private String msg;

 public Greeter() {
  msg = "Hello, ";
 }
 
 public void greet(String name) {
  System.out.println(msg + name);
 }
}
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
pydev-code mailing list
pydev-code@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-code

Reply via email to