Skip to content

Instantly share code, notes, and snippets.

@romanogit
Created March 17, 2013 04:14
Show Gist options
  • Save romanogit/d8d03d04a1b48751539c to your computer and use it in GitHub Desktop.
Save romanogit/d8d03d04a1b48751539c to your computer and use it in GitHub Desktop.
diff --git a/src/main/java/edu/mit/blocks/renderable/BlockLabel.java b/src/main/java/edu/mit/blocks/renderable/BlockLabel.java
index 2a79974..23a7728 100644
--- a/src/main/java/edu/mit/blocks/renderable/BlockLabel.java
+++ b/src/main/java/edu/mit/blocks/renderable/BlockLabel.java
@@ -268,6 +268,7 @@
Block oldBlock = workspace.getEnv().getBlock(blockID);
oldBlock.changeGenusTo(genus);
RenderableBlock rb = workspace.getEnv().getRenderableBlock(blockID);
+ rb.setBlockToolTip(oldBlock.getBlockDescription());
rb.repaintBlock();
workspace.notifyListeners(new WorkspaceEvent(workspace, rb.getParentWidget(), blockID, WorkspaceEvent.BLOCK_GENUS_CHANGED));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment