4import isystem.connect
as ic
7def test_enumerateWinIDEAInstances():
8 print(
"Enumerating all available local winIDEA instances...")
9 connMgr = ic.ConnectionMgr()
10 cfg = ic.CConnectionConfig()
11 winIDEAInstances = ic.VectorWinIDEAInstanceInfo()
12 connMgr.enumerateWinIDEAInstances(
"", cfg, winIDEAInstances)
14 for instance
in winIDEAInstances:
15 instance: ic.WinIDEAInstanceInfo
16 print(f
"ID: {instance.getInstanceId()}")
17 print(f
"\tWorkspace: {instance.getWorkspace()}")
18 print(f
"\tTCP port: {instance.getTcpPort()}")
21if __name__ ==
"__main__":
22 test_enumerateWinIDEAInstances()