@ Override public String ideaOpenAndNavigate ( String fileName , int line , int column ) throws Exception { if ( line < 0 ) line = 0 ; if ( column < 0 ) column = 0 ; String xml = "<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\n" + "<methodCall>\n" + " <methodName>fileOpener.openAndNavigate</methodName>\n" + " <params>\n" + " <param><value><string>" + fileName + "</string></value></param>\n" + " <param><value><int>" + line + "</int></value></param>\n" + " <param><value><int>" + column + "</int></value></param>\n" + " </params>\n" + "</methodCall>\n" ; return ideaXmlRpc ( xml ) ; }
Uses Intellij s XmlRPC mechanism to open and navigate to a file