Entering valid code

Guidewire Studio provides several different ways of obtaining information about PolicyCenter objects and APIs to assist you in writing valid rules and Gosu code. These include:

Dot completion

Opens a context-sensitive pop-up window that contains all the subobjects and methods that are valid for this object, in this context. Dot completion works with both Gosu or Java packages.

SmartHelp

Displays a list of valid fields and subobjects for the current object.

Keyboard commands provide code completion, code navigation, and code editing shortcuts. See Using Studio keyboard shortcuts for information on keyboard shortcuts.

Using dot completion

You can use Studio to complete your code by placing the cursor (or caret) at the end of a valid PolicyCenter object or subobject and typing a dot (.). This action causes Studio to open a pop-up window that contains all the subobjects, methods, and properties that are valid for this object, in this context.

As you type, Studio filters this list to include only those choices that match what you have typed thus far. Use the down arrow to highlight the item you want and press Enter, the space bar, or Tab to select it. After you select an item, Studio inserts it in the correct location in the code.

Gosu and Java package name completion

Dot completion also works with Gosu or Java packages. You can enter a package name and press dot to get a list of packages and types within the package name before the dot. Studio can complete all packages and namespaces within the Studio type system including product model and PCF types. Studio filters the list as you type to include only those choices that match what you have typed thus far.