public void workspaceEventOccurred(WorkspaceEvent event) {
    // System.out.println("Event: " + event.getEventType());
    if (!context.isWorkspaceChanged()) {
      context.setWorkspaceChanged(true);
      context.setWorkspaceEmpty(false);
      String title = frame.makeFrameTitle();
      if (frame != null) {
        frame.setTitle(title);
      }
    }
    context.resetHightlightBlock();

    //		Iterable<Block> blocks = context.getWorkspace().getBlocks();
    //		for (Block block : blocks)
    //		{
    // System.out.println(block.getBlockID() + ": " + block.getBlockLabel());
    //		}
    // System.out.println("======================\n\n");

  }
 public void actionPerformed(ActionEvent e) {
   parentFrame.doNewArduBlockFile();
 }