question: @ Override public void apply ( NexusStreamParser np ) throws Exception { ChartViewer viewer = ( ChartViewer ) getViewer ( ) ; np . matchIgnoreCase ( "show what=" ) ; String what = np . getWordMatchesIgnoringCase ( "all none selected" ) ; final LabelsJList list ; if ( np . peekMatchIgnoreCase ( "target=" ) ) { np . matchIgnoreCase ( "target=" ) ; list = viewer . getLabelsJList ( np . getWordMatchesIgnoringCase ( "series classes attributes" ) ) ; } else { list = viewer . getActiveLabelsJList ( ) ; } np . matchIgnoreCase ( ";" ) ; if ( what . equalsIgnoreCase ( "none" ) ) { list . disableLabels ( list . getAllLabels ( ) ) ; } else if ( what . equalsIgnoreCase ( "selected" ) ) { list . enableLabels ( list . getSelectedLabels ( ) ) ; } else { list . enableLabels ( list . getAllLabels ( ) ) ; } }
target:  parses the given command and executes it