
Understanding the CodeStore Macro Structure
This document focuses on what a Macro effectively is, in the CodeStore perspective. It is organized in short sections in the question , answer format
Q) What is a macro with respect to CodeStore
A) According to CodeStore, A macro is any piece of text that could be anything from a block of Java code or an SQL query or even a reminder that needs to be messaged to your friend. It is meant to store frequently used code/scripts/Queries and anything else.
Q) What are the 2 types of macros in CodeStore ?
A) CodeStore supports two types of macros. 1) Slotted and 2)Unslotted
Q) What is a Slotted Macro ?
A) A Slotted Macro is a macro that can be customized. The word 'Slot' represents a piece of replaceable text that is part of your code snippet. It is represented by #SLOT# in the code, so that CodeStore can distinguish between a slot and normal text.
To understand slots better, let us look at the following Slotted Macro

The above is a Slotted Macro. As it can be seen, it contains some #SLOT# along with other text. (The above was taken from the customizing mode. Hence one of the slots remains highlighted, showing the current editing slot.). When this macro is customized, CodeStore prompts you to enter a value for each of the slots. This code snippet can hence be made into :
by simply entering test for the first, third, fifth and seventh slots ; "Test" for the second slot, EXIT_ON_CLOSE for the fourth slot and true for the sixth and eighth slots. Like this, one can create their own macros that can be provided with slots as required.
Q) What is an unslotted Macro?
A) An unslotted macro is a simple piece of text that cannot be customized. An unslotted macro may be an unchanging but frequently used bit of code. ex : System.out.println(); (Event this can be customized to System.out.println(#SLOT#); to set the parameter.
Here ends the description of the macro structure of CodeStore.
For clarifications, mail me @ ramanujam_off@hotmail.com