MCPcopy Create free account
hub / github.com/beanshell/beanshell / showHistoryLine

Method showHistoryLine

src/bsh/util/AWTConsole.java:248–258  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

246 }
247
248 private void showHistoryLine() {
249 String showline;
250 if ( histLine == 0 )
251 showline = startedLine;
252 else
253 showline = (String)history.elementAt( history.size() - histLine );
254
255 replaceRange( showline, textLength-line.length(), textLength );
256 line = new StringBuffer(showline);
257 textLength = getText().length();
258 }
259
260 private void acceptLine( String line ) {
261 if (outPipe == null )

Callers 2

historyUpMethod · 0.95
historyDownMethod · 0.95

Calls 3

replaceRangeMethod · 0.80
getTextMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected