// 下階層用テンプレート
#topicpath
----
//ここにコンテンツを記述します。


 BusyIndicator.showWhile(window.getShell().getDisplay(), new Runnable() {
   public void run() {
     logger.debug("run() - start");
     // UpdateManagerUI.openInstaller(window.getShell());
 
     UpdateJob job = new UpdateJob("Search for new extensions.",
         getSearchRequest());
     UpdateManagerUI.openInstaller(window.getShell(), job);
     logger.debug("run() - end");
   }
 
 });
 
 private UpdateSearchRequest getSearchRequest() {
   URL url = null;
   try {
     url = new URL("http://hogehoge.com/site.xml");// <-site.xmlのURL
   } catch (MalformedURLException e) {
     e.printStackTrace();
   }
   UpdateSearchRequest result = new UpdateSearchRequest(
       UpdateSearchRequest.createDefaultSiteSearchCategory(),
       new UpdateSearchScope());
 
   result.addFilter(new BackLevelFilter());
   result.addFilter(new EnvironmentFilter());
 
   UpdateSearchScope scope = new UpdateSearchScope();
   scope.addSearchSite("HogeApp Site", url, null);
   // scope.addSearchSite("aaa", url, null); 複数追加すると複数サーチする
 
   result.setScope(scope);
   return result;
 
 }


----
この記事は
#vote(おもしろかった,そうでもない)

#comment
#topicpath


SIZE(10){現在のアクセス:&counter;}

トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS