Stay organized with collections
Save and categorize content based on your preferences.
blockly > ContextMenuRegistry > (constructor)
Resets the existing singleton instance of ContextMenuRegistry.
Signature:
constructor();
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eContextMenuRegistry\u003c/code\u003e constructor resets the existing singleton instance of the registry.\u003c/p\u003e\n"],["\u003cp\u003eIt is used to manage and control the context menus displayed within the Blockly workspace.\u003c/p\u003e\n"],["\u003cp\u003eCalling this constructor will clear any previously registered context menu items and options.\u003c/p\u003e\n"]]],["The `ContextMenuRegistry` constructor resets the existing singleton instance of the `ContextMenuRegistry`. This is the core action: resetting the singleton instance. The information provided specifies that `ContextMenuRegistry` is a class and that the `constructor()` method is responsible for this resetting action. The method takes no arguments, as indicated by the empty parentheses in the signature `constructor();`.\n"],null,[]]