コード例 #1
0
  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");

  }
コード例 #2
0
  public NewButtonListener(OpenblocksFrame frame) {
    Context.getContext();

    this.parentFrame = frame;
  }
コード例 #3
0
 public ArdublockWorkspaceListener(OpenblocksFrame frame) {
   context = Context.getContext();
   this.frame = frame;
 }