Developer Guide for jEdit
Contents
- Pre-requisites
- Setting up the Office Scripting plugin
- Using the Office Scripting plugin
- 選択s
- Step by step 活動/戦闘s
- Troubleshooting
Pre-requisites
- The plugin only runs in jEdit 4.0.3 (利用できる from jedit.org)
- You MUST have the に引き続いて plugins 任命する/導入するd: AntFarm, Console
(see below for 指示/教授/教育s on 任命する/導入するing them) - If you wish to have code 完成 when 令状ing Office scripts you also need to 任命する/導入する the SpeedJava plugin
Setting up the Office Scripting plugin
See the 取り付け・設備 Guide for 指示/教授/教育s on 任命する/導入するing the Office Scripting plugin.Setting up the http proxy
- Browse to 公共事業(料金)/有用性s/全世界の 選択s...
- Browse in the 全世界の 選択s dialog box to the Proxy Servers.
- Check "Use HTTP proxy Servers" and 始める,決める all (警察などへの)密告,告訴(状) needed for jEdit to 接近 the web.
- Click on 承認する.
任命する/導入するing 要求するd plugins
- Browse to Plugins/Plugin 経営者/支配人...
- Click on 任命する/導入する Plugins (If you get erors then your Proxy is not 井戸/弁護士席 体制/機構)
- Then you get a 名簿(に載せる)/表(にあげる) of plugins.
- The plugins needed by the Office Scripting plugin are AntFarm and Console.
- So just select them if you cant find them on the 名簿(に載せる)/表(にあげる) then you have them already 任命する/導入するd.
- Click on 任命する/導入する
- Click on 承認する if needed then の近くに.
- 出口 jEdit.
Setting up the Office Scripting plugin for jEdit
If you did not 任命する/導入する the Office Scripting plugin によれば the 指示/教授/教育s in the 取り付け・設備 Guide you need to do so first.
- Browse to 公共事業(料金)/有用性s/全世界の 選択s...
- Select Plugins/Office Scripting
- Select which Office 見解/翻訳/版 you want to work with
- You must click 承認する to 立証する your choice even if there is only one Office 見解/翻訳/版 名簿(に載せる)/表(にあげる)d.
- Select Plugins/AntFarm/Build 選択s
- Select Run Ant 的s in the same JVM.
Recommended layout for the jEdit window
- Browse to 公共事業(料金)/有用性s/全世界の 選択s...
- Select ドッキングする/減らす/ドックに入れるing
- Activity スピードを出す/記録につける ドッキングする/減らす/ドックに入れるing position: 底(に届く)
- Ant Farm ドッキングする/減らす/ドックに入れるing position: 権利
- Console ドッキングする/減らす/ドックに入れるing position: 底(に届く)
- Error 名簿(に載せる)/表(にあげる) ドッキングする/減らす/ドックに入れるing position: 底(に届く)
- とじ込み/提出する System Browser ドッキングする/減らす/ドックに入れるing position: left
- Scripting 枠組み ドッキングする/減らす/ドックに入れるing position: 権利
- Click on 承認する.
Using the Office Scripting plugin
Popup Menu 活動/戦闘s
The Scripting plugin 供給するs a dockable window 名簿(に載せる)/表(にあげる)ing your scripts. A number of 活動/戦闘s are 利用できる in this window:
On the ROOT (All 小包s node)
- Open... : This will open a とじ込み/提出する chooser dialog box. You can select an .sxp とじ込み/提出する, directory or Office 文書.
- New... : This will 誘発する you for a 小包 指名する and then create by default everything needed for a scripting 小包
- 小包 Wizard...: 肉親,親類d of the same than 小包 Template except you choose the java とじ込み/提出するs you want to 含む in the 小包.
On a Script 小包
If the 小包 is a directory (created from 小包 template or 小包 wizard):
- 追加する Directory: This will 誘発する you for a Directory 指名する and it will create it under the selected Node.
- 追加する とじ込み/提出する: This will 誘発する you with a とじ込み/提出する chooser dialog box and you can select the とじ込み/提出するs you want to 追加する to the selected node.
- 改名する: This 誘発する you for the new 指名する and 改名する the 小包.
- 除去する: This will 除去する the 小包.
- 生成する Build.xml: This menu is only 陳列する,発揮するd if no build.xml とじ込み/提出する 存在するs in the 小包 directory. To avail the 選択s below you need to 生成する this build.xml とじ込み/提出する.
- Reload 小包: This will reload the 小包 if the content on disk changed.
- Edit Build とじ込み/提出する: This will open the build.xml とじ込み/提出する that you can edit. This とじ込み/提出する is 生成するd automatically when using wizard or 小包 template.
- Ant 的s: The Ants 的s will automatically be 陳列する,発揮するd and by selecting them you will run the Ant 命令(する) (要求するs AntFarms).
- ScriptCompile: Default Ant 的 to 収集する the 十分な 小包.
- ScriptClean: Deafult Ant 的 to clean all 編集 生産(高) とじ込み/提出するs.
- Build SXP: This will 収集する and create the .sxp 小包 とじ込み/提出する.
- Configure 小包...: This will 陳列する,発揮する the 利用できる methods 指名する in the 小包 and you can select which methods can be 利用できる in OpenOffice.org.
If the 小包 selected is 含む/封じ込めるd in an Office 文書 the 活動/戦闘s 利用できる are:
- 除去する: This will 除去する the 小包 from the 文書
On a とじ込み/提出する/Directory
Some typical menu items are 利用できる on とじ込み/提出する and directory Items:
- 追加する Directory: Only on directory. This will 追加する a directory under the selected directory.
- 追加する とじ込み/提出する: Only on directory. This will 誘発する you with a とじ込み/提出する chooser and 追加する the selected とじ込み/提出するs in the selected directory.
- 改名する: this will 改名する 肉体的に the selected 入ること/参加(者).
- 除去する: this will 除去する 肉体的に the selected 入ること/参加(者).
On a Script 小包 (.sxp) とじ込み/提出する
The に引き続いて 活動/戦闘s are 利用できる on Script 小包 とじ込み/提出するs:
- (軍隊を)展開する,配備する to
- Office 見解/翻訳/版s: this will (軍隊を)展開する,配備する the 小包 to an 任命する/導入するd 見解/翻訳/版 of OpenOffice.org. If you have OpenOffice.org running, you need to use the 道具s/Refresh 使用者 Scripts (Java) menu item in OpenOffice.org for the script to appear in the 割り当てる Script dialog in Office.
- Office 文書: this will (軍隊を)展開する,配備する the 小包 to an Office 文書.
- 除去する SXP: will 除去する 肉体的に the .sxp とじ込み/提出する 生成するd by the build 命令(する).
Menu 活動/戦闘s
Menu 活動/戦闘s 利用できる are:
- New...
- 追加する...
- 小包 Wizard...
選択s
You may configure some 選択s in 公共事業(料金)/有用性s/全世界の 選択s/Plugin 選択s/Scripting Most of them are self-explanatory, but some need その上の explanation:
- OpenOffice.org Directory: 場所s of all OpenOffice.org 取り付け・設備s. You need to select one.
- Show tooltips in tree: Show tooltips in the tree of 小包s in the Office Scripting window
- 警告する before 除去するing とじ込み/提出する from 小包: Will 陳列する,発揮する a 確定/確認 box before 除去するing a とじ込み/提出する.
- 警告する before 除去するing Directory from 小包: Will 陳列する,発揮する a 確定/確認 box before 除去するing a directory.
- 含む source code: This will 含む the source code in the Script 小包 (.sxp) とじ込み/提出する.
Step by step 活動/戦闘s
How to create a 小包 using the New... menu.
By clicking on the first button or by 権利 clicking on the "All 小包s" tree item and selecting New... a dialog box is 陳列する,発揮するd asking the 指名する of the 小包 you want to create. After you have input the 指名する is this dialog, another dialog box is 陳列する,発揮するd requesting the 目的地 path where that 小包 should be created.Clicking on 承認する will create the 十分な tree structure for the 小包 if no problem were 遭遇(する)d.
How to create a 小包 using the Wizard... menu.
By clicking on the third button or by 権利 clicking on the "All 小包s" tree item and selecting 小包 Wizard... a dialog box is 陳列する,発揮するd. You need to enter the 小包 指名する, the 目的地 path where the 小包 will be created and select the java とじ込み/提出するs you wish to 含む in the 小包.Clicking on 承認する will create the 十分な tree structure for the 小包 if no problem is 遭遇(する)d.
How to open a 小包 using the Open... menu.
By clicking on the second button or by 権利 clicking on the "All 小包s" tree item and selecting Open..., a とじ込み/提出する chooser dialog box will be 陳列する,発揮するd you can select a directory 小包, and .sxp とじ込み/提出する 代表するing a 小包 or an Office 文書.A directory 小包 should look like this:
小包 指名する - Contents - Java とじ込み/提出するs - DirectoriesA .sxp とじ込み/提出する should look like this:
小包 指名する - Contents - Java とじ込み/提出するs - Directories - .sxp とじ込み/提出する 生産(高)An Office 文書 look like this:
Office 文書 - Contents - 小包sHow to 収集する a 小包 using the ScriptCompile menu.
This 活動/戦闘 is only 利用できる on a Directory 小包 for the moment. The ScriptCompile menu item is only 利用できる if a build.xml とじ込み/提出する is 利用できる in the 小包.By clicking on this menu item the 小包 will be 収集するd and errors will be shown in the ErrorList Plugin.
How to Build a 小包 using the Build SXP menu
This 活動/戦闘 is only 利用できる on a Directory 小包 for the moment. By clicking on this item, the 小包 will be rebuilt and a dialog box will be 陳列する,発揮するd showing the 利用できる methods in the 小包. This dialog box enables you to select methods that you want to 輸出(する) as scripts in Office.For each method you can 割り当てる a 論理(学)の 指名する to use as a script 指名する in OpenOffice.org. Clicking on 承認する will create the .sxp とじ込み/提出する.
Troubleshooting
If you reinstall the Scripting 枠組み you will need to update any build とじ込み/提出するs that were 生成するd for old scripts that you wrote to 反映する the path to the new 枠組み under your <Office 取り付け・設備>/使用者/uno_packages directory for those scripts to build.
The Choose Methods to 輸出(する) as Scripts dialog only 陳列する,発揮するs methods which are defined within class とじ込み/提出するs, it will not 陳列する,発揮する methods in class とじ込み/提出するs which are within jar とじ込み/提出するs in the 小包 Recipe.
If you get the message "Could not 生成する Ant build. No Office Directory 始める,決める in the 選択s", you need to do the に引き続いて:
- Select the 公共事業(料金)/有用性s/全世界の 選択s menu item
- Go to the Plugin 選択s/Office Scripting section
- Select one of the Office 取り付け・設備s from the 名簿(に載せる)/表(にあげる) and click 承認する.
Last 修正するd: Fri Nov 29 14:19:53 GMT 2002