ESTKにオリジナルのメニューを追加する

(function(global){ 'use strict'; if (global.cz_ESTK) return; /* argument1 (type) menu submenu command argument2 (text) view strings. can set japaneseCharacters argument3 (location) view position #identifer before ... after ... at the beginning of ... at the end of ... ---at the end of ... (--- is add sparator) #... is menuID or uniqueID #menuID file edit view debug profile window help argument4 (ID) uniqueID */ var myMenu = new MenuElement( 'menu', 'menu_string', 'after help', 'czESTK' ); var cmd1 = new MenuElement( 'command', 'command1_string', 'at the end of czESTK', 'czESTK/cmd1'); var mySubmenu = new MenuElement( 'submenu', 'submenu_string', 'at the end of czESTK', 'czESTK/mySubmenu'); var cmd2 = new MenuElement( 'command', 'command2_string', 'at the end of czESTK/mySubmenu', 'czESTK/mySubmenu/cmd2'); var cmd3 = new MenuElement( 'command', 'command3_string', '---at the end of czESTK/mySubmenu', 'czESTK/mySubmenu/cmd3'); cmd3.shortcutKey = 'Ctrl+L';  /* MenuElement properties checked; //add checkmark your command. enabled; //gray out your command. id; //return object id.  (MenuElement constructor argument4.) location; //return object location.  (MenuElement constructor argument3.) separatorAfter;  //separator is After the command separatorBefore; //separator is Before the command text; //return object text.  (MenuElement constructor argument2.) type; //return object type.  (MenuElement constructor argument1.) shortcutKey; onSelect; //do function. */   cmd1.onSelect = function(){ //your code here. cmd2.onSelect = function(){ //your code here. cmd3.onSelect = function(){ //your code here. global.cz_ESTK = { };})(this);

実行するとメニューに追加される

起動時に実行したい場合はESTKのインストールされているところにRequiredフォルダがあるので

そこにjsxをおいておけば良い。

セパレーターの追加がトリッキーなので使う場合は注意

IDは任意なので適当な文字でいいはずだが、階層的に表している例が多いのでそれに習ったほうがいいかも