Eclipse3.2ï¼xulBoosterã§firefoxæ¡å¼µãä½ã
ä½ã£ã¦ã¿ããããªã¨æã£ãã®ã§ããããªãã ãããã¥ã¡ã³ãç¡ãã¿ãããªã®ã§ãã¡ã¢ã
- xulBoosterããã¦ã³ãã¼ããã¦ã¤ã³ã¹ãã¼ã«ãããã¤ã³ã¹ãã¼ã«æ¹æ³ã¯ãã³ã³ãããABCServer
- ã¤ã³ã¹ãã¼ã«å¾ãEclipseã®window-->preferenceãéãã
- Xul preferencesãå·¦ããé¸ãã§ãFireFox.exeã¨Userã®ãããã¡ã¤ã«ã¸ã®ãã¹ãé¸ãã§ããã
- Userã®ãããã¡ã¤ã«ã¯ãC:\Documents and Settings\ã¦ã¼ã¶ã¼å\Application Data\Mozilla\Firefox\Profiles\ã§ããããªååã®ãã©ã«ããããããé¸ãã§ãããããããã£ã¦ããã°ãXulBoosterä¸ããFirefoxExtensionãç°¡åã«çµã¿è¾¼ãããï¼ãã¡ãã¡xpiãä½ããªãã¦ãããã§ããï¼
- Xulãã¼ã¹ãã¯ãã£ããéããï¼window-->open perspective-->otherï¼
- Navigatorãã¥ã¼ã§ãå³ã¯ãª-->New-->Project
- XUL Wizards-->XUL Projectãé¸ãã§ãProjectåãã¤ããã
- ã§ããProjectãå³ã¯ãª-->New-->Other
- XUL Wizards-->FireFox extensionãé¸ã¶ã
- Extension nameã«ä½ãããæ¡å¼µã®ååï¼ä»åã¯testxulappï¼ãå ¥ããExtensionIDã«IDãå ¥ãããIDã¯ã[email protected]ã®ããã«å ¥ãã¦ãã¾ãããã¿ãããæ¬æ¥ã¯ãGUIDãå ¥ããã¿ããã§ãããã
- OKãæ¼ãã¨ãsrcExtension以ä¸ã«ãããããã¡ã¤ã«ãåºæ¥ãã
- jsãã¡ã¤ã«ãä½ããcontentãã©ã«ã以ä¸ã«ããã¡ã¤ã«åã¯test.jsã§ä½æã
function test(){ alert("hellow world"); }
- XULOverlayDocumentãä½ããNew-->Other-->XUL Wizards-->XUL Overlay Documentã§ãã¡ã¤ã«åãtestappOverlay.xulã«ãã¾ãããï¼contentãã©ã«ã以ä¸ã«ä½æããã¾ãï¼
<?xml version="1.0" encoding="ISO-8859-1" ?> <overlay id="menuoverlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <!-- 以ä¸ãå ãã¦ãã¾ãã --> <script type="application/x-javascript" src="chrome://testxulapp/content/test.js"></script> <popup id="contentAreaContextMenu"> <menuitem id="testxulapp" label="testxulapp test" oncommand="test();" /> </popup> </overlay>
- chrome.manifestã«overlayãå®ç¾©ããã
overlay chrome://browser/content/browser.xul chrome://testxulapp/content/testappOverlay.xul
- firefox2.0ã§åãããªããinstall.rdfãéããDependenciesã®ã¿ããéãããTargetApplicationã®MaxVersionã2.*ãªãã«ãã¦ãinstall.rdfãä¿åãã¦ããã
- install.rdfãéããOverviewã®ã¿ãï¼ããã©ã«ãã§ãããé¸æãããï¼ãéãã¨ãä¸æ¹ã«Testingã¨ããé ç®ããããfirefoxãéãã¦ããã¦ãããRegister Extensionãã¯ãªãã¯ããStart firefoxãã¯ãªãã¯ããã
- firefoxãéããããå³ã¯ãªãããããããã¨ãã³ã³ããã¹ãã¡ãã¥ã¼ã«æ¡å¼µã追å ããã¦ããã
- ããã§çµäºã¨ã