ws_refresh

Defines the behavior of the worksheet plug-in component when the IDE issues a request to refresh the current main object editor.

operation ws_refresh

  ; <... Your code here ...>

end; operation refresh		

Description

The IDE activates this operation when something in the editor has changed that requires a refresh.

For example, if you have added a field in the Define Structure worksheet, the IDE issues a refresh request to the editor's views, such as the Property Inspector and worksheets, including the user-defined worksheet. The ws_refresh command enables you to respond to the refresh request appropriately.

The operation is optional.

Example

For example, in a worksheet that generates statistics about the current development object, the ws_refresh operation could regenerate the statistics by calling the appropriate operation:

operation ws_refresh
  variables
    string vOutput
  endvariables

  $instancehandle->getStatistics($URL$, vOutput)

  return 0
end ; ws_refresh