2009-06-19

使用過的Dependencies and Extension

  1. Distance Tool (will make contrubutions to the UI)
    Dependencies: net.refractions.udig.project.ui
    Extension: net.refractions.udig.project.ui.tool

  2. CustomApp (will not make contrubutions to the UI)
    Dependencies: net.refractions.udig.ui
    Extension: org.eclipse.core.runtime.applications, org.eclipse.ui.perspectives, org.eclipse.ui.perspectiveExtensions

uDig顯示全圖 範例

import net.refractions.udig.project.ui.ApplicationGIS;
import net.refractions.udig.project.ui.tool.AbstractActionTool;
import org.eclipse.core.runtime.NullProgressMonitor;
import com.vividsolutions.jts.geom.Envelope;
/**
*
* @author Freepisces
*
*/
public class ShowAllMap extends AbstractActionTool {

public ShowAllMap() {
// TODO Auto-generated constructor stub
}

@Override
public void run() {
Envelope newbbox = ApplicationGIS.getActiveMap().getMapLayers().get(0).getBounds(new NullProgressMonitor(), getContext().getCRS());/*get layer's evenlope*/
NavCommand showallmapcommand = getContext().getNavigationFactory().createSetViewportBBoxCommand(newbbox); /*create a Navigation Command*/
getContext().sendASyncCommand(showallmapcommand); /*send command to refresh viewport*/
}

@Override
public void dispose() {
// TODO Auto-generated method stub

}

}

2008-06-19

Firefox3


Firefox3的感謝狀,有興趣的人也可以下載Firefox3來作為你的瀏覽器,在我寫這篇的時候已有89,422人次的下載。

It's a thank certificate from mozilla by download Firefox3. If you interest you can download that to be your browser.

2007-09-12

報好康

已經很久沒有看自己的BLOG了,因為實在沒有主題可以寫。
不過最近知道一個網站,可以得到一些好康的,想說跟大家分享。
若你加入104市調中心的會員,或是你已經是104的會員就可以參加填問卷得大獎的活動,我同事在上次的活動抽到Wii,真是好狗運,我則得到100元7-11禮券(真是差太多了),有興趣的就再去看看吧!!!