使用 updateProfile 命令来更新当前文档视图的概要文件。
updateProfile [ all ]
all | 使用可选参数 all 来指示要更新当前已打开的所有文档视图的概要文件。注意,如果从来没有对文档视图发出 updateProfile,则发出 updateProfile all 不会影响该文档视图。 |
status 参数不受此命令影响。
通常在创建文档视图时发出 updateProfile 命令,但也可以在任何时候发出此命令以使文档视图能够反映对概要文件所作的更改。
以下是在对文档视图发出 updateProfile 命令时发生的事件序列:
- 将 readonly 参数设置为 off。
- 设置 includedClasses 参数,以便包括所有的类。
- 设置 excludedClasses 参数,以便不排除任何类。
- 注销任何已注册的类。
- 清除由 styleAttributes 参数设置的样式字符。
- 将 popup 参数重置为 default。
- 将 expandTabs 参数重置为 default。
- 重置 fields 参数,使得不存在任何编辑字段。
- 将 tabs 参数重置为 default。
- 将基本概要文件设置为由 current.updateProfile.baseProfile 返回的值。
- 如果基本概要文件是 ispf、seu 或 xedit,则:
否则:
- 将 prefixArea 设置为 on
- prefixProtect 设置为 off。
- 将 prefixArea 重置为 default
- 将 prefixProtect 设置为 on
- 显示任何由先前基本概要文件中的前置命令排除的行。
- 如果基本概要文件是 vi,则:
否则:
- 将 commandLine 设置为 off
- 将 autoCheck 设置为 off。
- 将 commandLine 重置为 default
- 将 autoCheck 设置为 on
- 删除此视图的所有显示元素。
- 重置当前视图的所有文档元素视图的 style 参数。
- 重置当前视图的所有文档元素视图的 elementClasses 参数。
- 将调色板设置为由 current.updateProfile.palette 返回的值。
- 根据 current.updateProfile.paletteAttributes.style.palette 返回的值对内置样式指定样式属性,其中,将 style 替换为每一个内置样式,而 palette 是 palette 参数返回的值。有关内置样式的信息,请参考 styleAttributes 参数。
- 清除所有 keys 设置。
- 清除所有 mouseEvents 设置。
- 清除所有 actions 设置。
- 根据 baseProfile 设置新的 keys 设置。
- 根据 baseProfile 来设置新的 mouseEvents 设置。
- 根据 current.updateProfile.userActions 来设置新的 actions 设置。
- 根据 current.updateProfile.userKeyActions 来设置附加的 keys 设置。
- 根据 current.updateProfile.userMouseActions 来设置其他 mouseEvents 设置。
- 清除所有 commands 设置。
- 根据 current.updateProfile.userCommands 来设置新的 commands 设置。
- 发出来自 current.updateProfile.userProfile 的用户概要文件。
- 如果当前视图带有解析器,则发出 LpexParser 接口的 resetParser 方法,并废弃该解析器。
- 清除语法分析暂挂列表。
- 如果 current.updateProfile.noParser 设置为 off,则从 current.updateProfile.parser 检索新的解析器名称。
- 如果解析器名称是 associated,则从 current.updateProfile.parserAssociation.extension 参数检索解析器名称。
- 从 current.updateProfile.parserClass.parserName 检索解析器类。
- 创建解析器的实例。
- 发出 LpexParser 接口的 totalParse 方法。
- 如果文档带有 name,则查询底层文件的只读属性。如果该文件是只读的,则将此文档视图的 readonly 参数设置为 on。
- 如果有任何 LpexViewListener 对象正在监听此视图,则发出 updateProfile 方法。
在对一个或多个 updateProfile. 参数进行任何更改之后,必须发出 updateProfile 命令,以便让更改反映在任何活动文档视图中。
注意,如果您正在构造自己的 LpexView 对象,并且通过添加操作、命令、键设置或鼠标事件设置来对其进行定制,则除非您在 LpexViewListener 的 updateProfile 方法内执行这些定制,否则 updateProfile 命令将除去这些设置。
updateProfile all以下序列将当前文档视图的基本概要文件更改为 xedit:set updateProfile.baseProfile xedit updateProfile
load 命令
parse 命令
actionClass 参数
actions 参数
autoCheck 参数
baseProfile 参数
class 参数
classes 参数
commandClass 参数
commandLine 参数
commands 参数
elementClasses 参数
expandTabs 参数
fields 参数
keyAction 参数
keys 参数
mouseAction 参数
mouseEvents 参数
name 参数
palette 参数
parser 参数
popup 参数
prefixArea 参数
prefixAreaText 参数
prefixProtect 参数
readonly 参数
show 参数
style 参数
styleAttributes 参数
tabs 参数
setParser 操作
updateProfile.baseProfile 参数
updateProfile.extensions 参数
updateProfile.noParser 参数
updateProfile.palette 参数
updateProfile.paletteAttributes 参数
updateProfile.palettes 参数
updateProfile.parser 参数
updateProfile.parserAssociation 参数
updateProfile.parserClass 参数
updateProfile.parsers 参数
updateProfile.userActions 参数
updateProfile.userCommands 参数
updateProfile.userKeyActions 参数
updateProfile.userMouseActions 参数
updateProfile.userProfile 参数
Copyright IBM Corporation 1992, 2006. All Rights Reserved.