@Override public void apply(NexusStreamParser np) throws Exception {
  np.matchIgnoreCase(getSyntax());
  if (getParent() instanceof OverlapGraphViewer) {
    final OverlapGraphViewer overlapGraphViewer=(OverlapGraphViewer)getParent();
    final GraphView graphView=overlapGraphViewer.getGraphView();
    final NodeMap<String> node2ReadNameMap=overlapGraphViewer.getNode2ReadNameMap();
    final Set<String> previousSelection=ProjectManager.getPreviouslySelectedNodeLabels();
    if (previousSelection.size() > 0) {
      Graph graph=graphView.getGraph();
      NodeSet toSelect=new NodeSet(graph);
      for (Node v=graph.getFirstNode(); v != null; v=graph.getNextNode(v)) {
        String label=node2ReadNameMap.get(v);
        if (label != null && previousSelection.contains(label))         toSelect.add(v);
      }
      if (toSelect.size() > 0) {
        graphView.setSelected(toSelect,true);
        graphView.repaint();
      }
    }
  }
}

@ Override public void apply ( NexusStreamParser np ) throws Exception { np . matchIgnoreCase ( getSyntax ( ) ) ; if ( getParent ( ) instanceof OverlapGraphViewer ) { final OverlapGraphViewer overlapGraphViewer = ( OverlapGraphViewer ) getParent ( ) ; final GraphView graphView = overlapGraphViewer . getGraphView ( ) ; final NodeMap < String > node2ReadNameMap = overlapGraphViewer . getNode2ReadNameMap ( ) ; final Set < String > previousSelection = ProjectManager . getPreviouslySelectedNodeLabels ( ) ; if ( previousSelection . size ( ) > 0 ) { Graph graph = graphView . getGraph ( ) ; NodeSet toSelect = new NodeSet ( graph ) ; for ( Node v = graph . getFirstNode ( ) ; v != null ; v = graph . getNextNode ( v ) ) { String label = node2ReadNameMap . get ( v ) ; if ( label != null && previousSelection . contains ( label ) ) toSelect . add ( v ) ; } if ( toSelect . size ( ) > 0 ) { graphView . setSelected ( toSelect , true ) ; graphView . repaint ( ) ; } } } }
parses the given command and executes it
