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 NewButtonListener(OpenblocksFrame frame) {
    Context.getContext();

    this.parentFrame = frame;
  }
 public ArdublockWorkspaceListener(OpenblocksFrame frame) {
   context = Context.getContext();
   this.frame = frame;
 }