globalMenuCallback

User-defined callback operation for Menu Plug-In options in the IDE main menu.

public operation globalMenuCallback
  params
    string  pRedirectionUrl:  out
    numeric pRefresh: out
  endparams

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

end

Parameters

  • pRedirectionUrl—specify the URL of the object that should get focus.

    The URL is normally for a main development object, for example cpt:MYCOMPONENT or ent:MYENTITY, but it could be for a subobject, or even a specific worksheet, window, or location in the Script Editor. For more information, see U-Bar Syntax.

    If this parameter is left empty, the focus is not changed after the menu action completes. If a URL is specified, the associated editor is opened, or gets focus if it was already open.

  • pRefresh—indicates whether editors should be refreshed; one of 0, 1, or 2.
    • 0—do not refresh
    • 1—refresh the editor that has or gets the focus after the menu action completes.

      By default, the current editor is refreshed, but if the pNavigateTo parameter specifies a URL to an editor, that editor will get refreshed.

      Note: Use this option only if a Repository update was done for the specific main development object. Otherwise, it is preferable to avoid the extra performance overhead that a refresh entails.

    • 2—refresh all editors.

      Note: Use this option with care, as it may cause unnecessary delays when giving focus to editors that are not affected by the updates.

Description

The parameters of global menu callback operations can be used to request behavior from the IDE on completion of the option.

getSysInfo

public operation getSysInfo
  params
    string pRedirectionUrl: out ; if needed, specify a URL to change the focus
    numeric pRefresh: out ; 0=no refresh, 1=current/requested editor, 2=all editors
  endparams
  

  FLD_USER = $processinfo("user")
  FLD_PROCESS = $processinfo("pid")
  FLD_HOST = $processinfo("host")
  FLD_HEAP = processinfo("heapsize")				
  
  show
				
  return 0

end ; getStatistics