// svn log from projectviewer node _svn_log(view) { // get project viewer and console dwm = view.getDockableWindowManager(); if (dwm == null) { return; } pv = dwm.getDockable("projectviewer"); con = dwm.getDockable("console"); // must have both -- pv to get the node, and console to run svn if (( pv == null ) || ( con == null )) { return; } // make them both visible dwm.showDockableWindow("console"); dwm.showDockableWindow("projectviewer"); // get the node from pv, either folder or file, either will work node = pv.getSelectedNode(); f = new File( node.getNodePath() ); path = f.getAbsolutePath(); // run svn log on the selected item try { command = "svn log " + path; runInSystemShell( view, command); waitForConsole(view); } catch (Exception e) {} } _svn_log(view);