-
-
Save romanogit/d8d03d04a1b48751539c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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