// This macro executes the 'svn add' command in the Console plugin. String target = buffer.getPath(); String command = "svn add " + target; runInSystemShell(view, command); waitForConsole(view); buffer.reload(view);