Eclipse/プラグイン開発のTIPS集/オンラインアップデートの話
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
// 下階層用テンプレート
#topicpath
----
//ここにコンテンツを記述します。
#contents
**オンラインアップデート [#w606b6f8]
Eclipseはサーバに置いたプラグインをダウンロードし、アップ...
-site.xmlのサンプル
<?xml version="1.0" encoding="UTF-8"?>
<site>
<feature url="features/nu.mine.kino.plugin.google_1.0...
id="nu.mine.kino.plugin.google" version="...
<category name="google"/>
</feature>
<feature url="features/nu.mine.kino.plugin.google_1.0...
id="nu.mine.kino.plugin.google" version="...
<category name="google"/>
</feature>
<feature url="features/nu.mine.kino.plugin.google_1.0...
id="nu.mine.kino.plugin.google" version=...
<category name="google"/>
</feature>
<category-def name="google" label="Google Plugin"/>
</site>
**ダウンロードできるプラグインの制御 [#fcf4b9f3]
さて、RCPで普通のアプリを作る場合、あるユーザはhogehogeプ...
まあサーバ側はIPアドレスとかで判断することもできなくない...
**そこでこんな感じ [#pcb1af9d]
そこでEclipseの更新UIではなくて、自分でアクションを作成し...
BusyIndicator.showWhile(window.getShell().getDisplay(), ...
public void run() {
logger.debug("run() - start");
// UpdateManagerUI.openInstaller(window.getShell());
UpdateJob job = new UpdateJob("Search for new extens...
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");// <-s...
} catch (MalformedURLException e) {
e.printStackTrace();
}
UpdateSearchRequest result = new UpdateSearchRequest(
UpdateSearchRequest.createDefaultSiteSearchCategor...
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;
}
これえURLを指定できるので、このパラメタにユーザIDみたいな...
-アップデートサイトのURLがプログラムに書かれてしまって、...
-自動更新とかを有効にしても、上のURLのチェックはしてくれ...
などなどの問題が残りますね。。。
----
この記事は
#vote(おもしろかった[3],そうでもない[0])
-あいかわらず、じかんねー -- [[きの]] &new{2006-08-24 01:...
- 貴重な情報、ありがとうございます。現行の3.3の場合、更新...
- ↑Pleiades入れればいいんじゃん……orz お騒がせしました --...
#comment
#topicpath
SIZE(10){現在のアクセス:&counter;}
終了行:
// 下階層用テンプレート
#topicpath
----
//ここにコンテンツを記述します。
#contents
**オンラインアップデート [#w606b6f8]
Eclipseはサーバに置いたプラグインをダウンロードし、アップ...
-site.xmlのサンプル
<?xml version="1.0" encoding="UTF-8"?>
<site>
<feature url="features/nu.mine.kino.plugin.google_1.0...
id="nu.mine.kino.plugin.google" version="...
<category name="google"/>
</feature>
<feature url="features/nu.mine.kino.plugin.google_1.0...
id="nu.mine.kino.plugin.google" version="...
<category name="google"/>
</feature>
<feature url="features/nu.mine.kino.plugin.google_1.0...
id="nu.mine.kino.plugin.google" version=...
<category name="google"/>
</feature>
<category-def name="google" label="Google Plugin"/>
</site>
**ダウンロードできるプラグインの制御 [#fcf4b9f3]
さて、RCPで普通のアプリを作る場合、あるユーザはhogehogeプ...
まあサーバ側はIPアドレスとかで判断することもできなくない...
**そこでこんな感じ [#pcb1af9d]
そこでEclipseの更新UIではなくて、自分でアクションを作成し...
BusyIndicator.showWhile(window.getShell().getDisplay(), ...
public void run() {
logger.debug("run() - start");
// UpdateManagerUI.openInstaller(window.getShell());
UpdateJob job = new UpdateJob("Search for new extens...
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");// <-s...
} catch (MalformedURLException e) {
e.printStackTrace();
}
UpdateSearchRequest result = new UpdateSearchRequest(
UpdateSearchRequest.createDefaultSiteSearchCategor...
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;
}
これえURLを指定できるので、このパラメタにユーザIDみたいな...
-アップデートサイトのURLがプログラムに書かれてしまって、...
-自動更新とかを有効にしても、上のURLのチェックはしてくれ...
などなどの問題が残りますね。。。
----
この記事は
#vote(おもしろかった[3],そうでもない[0])
-あいかわらず、じかんねー -- [[きの]] &new{2006-08-24 01:...
- 貴重な情報、ありがとうございます。現行の3.3の場合、更新...
- ↑Pleiades入れればいいんじゃん……orz お騒がせしました --...
#comment
#topicpath
SIZE(10){現在のアクセス:&counter;}
ページ名: