updateProfile.userActions 參數

請利用 updateProfile.userActions 參數來設定或查詢 updateProfile 指令所要使用的使用者動作。 使用者動作是當您發出 updateProfile 指令時,所要定義之動作/類別名稱配對的清單。

可用性

query 指令
set 指令
current 參數
default 參數
install 參數

範圍

updateProfile.userActions 會將範圍設在現行視圖。
current.updateProfile.userActions 會將範圍設在現行視圖。
default.updateProfile.userActions 會廣域性地設定範圍。
install.updateProfile.userActions 會廣域性地設定範圍。

語法

query updateProfile.userActions
set updateProfile.userActions { default
                              | [ action className ] [...]
                              }
query current.updateProfile.userActions
query default.updateProfile.userActions
set default.updateProfile.userActions { install
                                      | [ action className ] [...]
                                      }
query install.updateProfile.userActions 

參數

default 如果您在 set updateProfile.userActions 指令中指定 default 參數,現行視圖會以 default.updateProfile.userActions 的值當成 updateProfile 指令的使用者動作。
[ action className ] [...] 如果您指定 set updateProfile.userActions 指令的動作/類別名稱配對清單,updateProfile 指令會在現行視圖內使用這份使用者動作清單。 如果您在 set default.updateProfile.userActions 指令中指定 userActions 參數,updateProfile 會在 updateProfile.userActions 設為 default 的所有文件視圖內,使用這份使用者動作清單。

action 參數應該是您要定義的編輯器動作的名稱。 className 參數應該是實作 com.ibm.lpex.core.LpexAction 介面之 Java 類別的名稱。
install 如果您在 set default.updateProfile.userActions 指令中指定 install 參數,則所有將 updateProfile.userActions 設為 default 的視圖,都將使用 install.updateProfile.userActions 的值,來判斷 updateProfile 指令要使用的使用者動作。

說明

query current.updateProfile.userActions 指令會傳回在現行視圖內,updateProfile 指令將使用的動作/類別名稱配對。

範例

query updateProfile.userActions
set updateProfile.userActions test com.ibm.lpex.samples.TestAction
query current.updateProfile.userActions
query default.updateProfile.userActions
set default.updateProfile.userActions install
query install.updateProfile.userActions 

相關參照
updateProfile 指令
query 指令
set 指令
actionClass 參數
actions 參數
current 參數
default 參數
install 參數
updateProfile.baseProfile 參數
updateProfile.parser 參數
updateProfile.userCommands 參數
updateProfile.userKeyActions 參數
updateProfile.userMouseActions 參數
updateProfile.userProfile 參數