Tuesday, February 09, 2010

Learning From Jump Source Code: IconLoader, FeatureInstaller, and More

During some of my recent programming work on BizzJUMP I ran across some interesting things about the JUMP/OpenJUMP source code that I wanted to make note of. Perhaps some other programmers and followers of my blog will be interested in these things also.
  • JUMP has an IconLoader class. I wonder what how it loads and provides icons? Do any of its methods throw I/O exceptions? I want to take a closer look at this class and find out.

  • JUMP has a FeatureInstaller class that can be used to install plug-ins. I want to take a closer look at this class so I can see how it works.

  • As far as I can tell there is no way for a plug-in to control the location of its menu item in the pop-up menu of the layer list. I wonder what I would have to change to make this control possible. Right now, if you want a plug-in to control the location of its menu item in the pop-up menu for the layer list, its got to be part of the core.

  • The LayerNamePanel (the class behind the layer list) is actually an interface. The default implementation of this interface is the AttributeTab class. Don't ask me where they got that name.

  • The JUMPConfiguration class controls the loading of plug-ins built into the core. It must be activated during the launch of the program. I want to document this launch process and describe the role of the JUMPConfiguration class in starting the program.


The Sunburned Surveyor

35 comments:

hastebrot said...

Hi!

"As far as I can tell there is no way for a plug-in to control the location of its menu item in the pop-up menu of the layer list."

I wondered where the "Save Selected Datasets" entry in the layer menu is initialized since there is nothing in the method configureLayerPopupMenu in com.vividsolutions.jump.workbench.JUMPConfiguration.

I found it in org.openjump.core.ui.plugin.mousemenu.SaveDatasetsPlugIn.

featureInstaller.addPopupMenuItem(layerNamePopupMenu,
this, sSaveSelectedDatasets +"{pos:12}",
false, ICON,
SaveDatasetsPlugIn.createEnableCheck(workbenchContext));

Here the position in the menu is explicitly given.

--Benjamin

時尚 said...
This comment has been removed by a blog administrator.
敬忠 said...
This comment has been removed by a blog administrator.
政倫政倫 said...

thanks................................................

佳穎 said...

It's great!!.............................................

RexTemples20144 said...

Nice Post~!!!. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

ElvisS_Scholten0188 said...

thank you for you to make me learn more,thank you∩0∩

林60102asai_sistrunk said...

辛苦了!祝你愈來愈好!........................................

妍慧 said...

過去的事早已消失,未來的更是渺不可知,只有現在是真實的。........................................

韋于倫成 said...

性感辣妹辣妹聊天情色文學情色遊戲情色自拍情色聊天情趣聊天室情趣自拍免費情趣影片素人自拍情趣短片性感辣妹性感美女美女性感遊戲性感遊戲裸體遊戲美女裸體女生裸體正妹裸體做愛偷拍偷拍自拍性愛偷拍偷拍視訊一夜情視訊一夜情聊天室一夜情交流網一夜情色網洪爺色情貼85cc影片5278影片網77p2p影片洪爺免費色情85cc觀看5278貼圖區77p2p觀看洪爺成年人網85cc成人片sogo成人77p2p成人片洪爺貼圖85cc影片區go2av影片77p2p影片區洪爺色論壇85cc免費影片區go2免費影片77p2p免費影片區洪爺影城85cc影城go2影片77p2p影城

文婷 said...

go2av免費影片sex 0401 影音 live 秀視訊聊天交友 色美眉台中援交aa 片試看 a免費視訊聊天網 情人34C波霸美女 香蕉鮑魚俱樂部,免費av 免費線上 aa 片試看 g點無碼a片 性愛姿勢 辣妹sex story 視訊聊天室 sex888免費看影片波霸美女寫真 視訊美女pixnet 成人交友hibb 4u成人視訊 情人080視訊網 私密論壇sex888免費看影片論壇 Show-live視訊聊天室 辣妹貼圖a片天堂 a片免費看 情色視訊禁地論壇 日本 a 片,無碼影片,美女,sexy,a片天堂 小魔女免費影城 視訊美女sogo 色論壇 s38live秀 卡通aa片免費看自拍天堂 洪爺免費線上歐美A片段觀看 亞洲東洋影片 0941 影音視訊聊天室 18成人85cc影城0204movie 成人漫畫區月光論壇 a片-情色成人影片 免費視訊toolbox 707網愛聊天室 1111辣妹貼圖,寫真集辣妹 av無碼月光論壇辣妹視訊 視訊辣妹主播脫衣秀 aio性愛dvd辣妹影片直播 黑澀會美眉 mv 高雄視訊,qq 美女貼圖片區 5i176 免費視訊秀 168論壇視訊辣妹 a片天堂s383視訊 bt電影下載,aa 片 sexy girl video movie 080cc成人色網 後官0951主入口 視訊聊天評比 視訊交友聊天室 no8 sogo論壇視訊辣妹

政儒 said...
This comment has been removed by a blog administrator.
芷佳慧奇 said...

春冰薄,人情更薄;登天難,求人更難。 ............................................................

AlysiaDraeger0417永瑞 said...

我來給你支持鼓勵~祝你事事如意~~..................................................

凱文 said...

UT網際空間 UT網際空間 漂亮寶貝 人妖系列 交換夫妻 亞亞成人 亞洲免費 丹麥美女 中文搜色 清涼寫真 一業情貼 一夜留言 一葉晴貼 浣腸調教 泳裝美女 氣質美女 正妹麻將 歐美影片 歐美線上 檳榔西施 曖曖影片 日本寫真 日本女星 日本女郎 日本女生 日本同志 日本制服 撥霸美女 援助交易 接吻技巧 接吻影片 手槍美女 成人片觀 愛秀影音 想入非非 情人視訊 微風線上 影音聊天 影片交流 影片亞洲 廁所盜攝 已婚聊天 少年阿賓 小倉優子 小魔女拍 小說頻道 小說線上 寫真女星 娜美羅賓 女星寫真

智宜 said...

Where did you purchase this product?..................................................

世禾 said...

路過看到好的blog,不推對不起自己.................................................................

姿吟姿吟 said...

成熟,就是有能力適應生活中的模糊。.................................................................

立偉立偉 said...

與人相處不妨多用眼睛說話,多用嘴巴思考.................................................................

堅強堅強 said...

人有兩眼一舌,是為了觀察倍於說話的緣故。............................................................

王名仁 said...

It takes all kinds to make a world.............................................................

金正偉 said...

你的分享很不錯.. 謝謝 ..................................................................

JasonBirk佳琪 said...

人生之中,比冒險更危險的一件事:不去冒險。..................................................

洪淑桓洪淑桓 said...

精彩的部落格 要繼續加油 ..................................................................

張怡 said...

朋友是一面鏡子............................................................

魏江伶魏江伶 said...

人們不缺少力量,他們缺少意志。..................................................

蔡舜娟蔡舜娟 said...

你不能決定生命的長度,但你可以控制它的寬度..................................................................

佳瑩佳瑩 said...

認識自己,是發現妳的真性格、掌握妳的命運、創照你前程的根源。.......................................................

DaniloM_W志竹olff0615 said...

I have nothing to offer but blood, toil, tears and sweat..................................................................

秀吉秀吉 said...

人生中最好的禮物就是屬於自己的一部份............................................................

木楊楊堯木楊楊堯 said...

做好事,不需要給人知道,雖然只是一件微不足道的事,但我相信,這會帶給我快樂。..................................................

張忠張鴻水玉 said...

Learning makes a good man better and ill man worse.............................................................

偉曹琬 said...

every shoe fits not every foot. ............................................................

孫邦柔 said...

生命就像騎單車一樣,除非你停止踩踏板,否則不會掉下去。......................................................

峻胡邦慧v帆 said...

快下班囉~來問個安,跟您打聲招呼..................................................................