28/02/2007
小試 GWT
早上為了試了一下 GWT,找到了一個在 Eclipse 上開發 GWT 的 plugin -- googlipse。googlipse 的安裝與使用可參考其 Docs 說明,它的確可以簡化專案的建立以及開發 remote services 之類的工作。要注意的是,以 googlipse 開發 GWT 專案時,不論是專案名稱專案所在路徑,都要避免有空白字元,否則以 host mode 執行時會有異常。另外,如果在 GWT 的 UI class 檔直接輸入中文字串,執行時會變成亂碼。得要用它提供的、正式的 I18N 支援,才能避免這種狀況。
另一個問題是,我發現使用 tabpanel 時,GWT 預設的 style 並不會把 tab 的形狀畫來。查看了一下文件,得知它採用正常 css stylesheet,而且 stylesheet 檔案,必須在 ProjectName.gwt.xml 設定檔裡面指定才行。我發現 UI 用 Java coding,而 style 卻用 css,在使用上,需要有一點磨練,才能適應其間的心智轉換。
整個測試後,感覺是開發上並不困難,但是可用的元件卻不多, 像我最想用的 splitpane 就找不到。當然也就別提有類似 treetable, richeditor 這類比較進階的元件。另外,雖然 GWT 網站上已經有一些文件描述 GWT 的用法,但整體上來講它的文件並不算豐富。很多設定或用法,還是需要詳讀內附的幾個範例程式,並自行測試才能解決。
至於 GWT 是不是已經 production ready 了呢?可以說要寫出 rss reader, bookmark manager 這類應用是沒問題的。對我而言,若要能發揮 GWT 的開發效能,應該要一個禮拜的磨合期吧--若我真有機會使用 GWT 開發系統的話!
22:45 發表於 Developing, Web | 永久網址 | 留言 (0) | Email this | Tags: java, programming, GWT, eclipse, plugin, googlipse
25/03/2004
Java: Eclipse Platform
Some Useful Eclipse Plugins
- Insectivore
- Eclipse Wiki Editor
- Eclipse Platform Extensions
- EditNav
- EclipseColorer
- Solex - Web Application Testing with Eclipse: "Solex is a Web application testing tool built as a plug-in for the Eclipse IDE. It provides functions to record a client session, adjust it according to various parameters and replay it later typically in order to ensure non regression of the application's behaviour (with stress testing capabilities being added at a later stage)."
- SHriMP [Simple Hierarchical Multi-Perspective] - University of Victoria: "'Creole' refers to the integration of SHriMP with the Java Development Tools (JDT) included with the Eclipse platform (see www.eclipse.org for more details on JDT and the Eclipse platform.) With Creole you can explore your Java code visually allowing you to see its structure and the links (references, accesses, etc) between its different pieces."
Eclipse 中 可以設定 External Tools,讓 Eclipse 與 作業環境整合在一起,以下是我所設定的兩個 External Tools:
name: Command Prompt
作用: 在 console view 中開啟 command prompt
location: C:WINNTsystem32CMD.EXE arguments: /K cd "${container_loc}"&dir name: Open in Explorer
作用: 在檔案總管中開啟目前選擇的檔案(resource)
location: C:WINNTexplorer.exe arguments: /e, /select, "${resource_loc}" Links
00:00 發表於 Developing, Goodies | 永久網址 | 留言 (0) | Email this | Tags: Programming, java, eclipse


