|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.uruma.rcp.util.RcpResourceUtil
public class RcpResourceUtil
Eclipse / RCP 環境でのリソースを扱うためのユーティリティクラスです。
| コンストラクタの概要 | |
|---|---|
RcpResourceUtil()
|
|
| メソッドの概要 | |
|---|---|
static List<File> |
findFileResources(File baseDir,
FileFilter filter)
指定されたパスを起点として、ファイルシステムからリソースを再帰的に検索して返します。 |
static String |
getBundleRelativePath(Bundle bundle,
String path)
指定されたパスのバンドルルートパスからの相対パスを返します。 |
static String |
getBunldePath(Bundle bundle)
Bundleの絶対パスを返します。 |
static String |
getInstallPath()
アプリケーションの絶対パスを返します。 |
static URL |
getLocalResourceUrl(String path)
指定されたパスにおけるリソースのローカルシステム上の URL を返します。 |
static URL |
getLocalResourceUrlNoException(String path)
指定されたパスにおけるリソースのローカルシステム上の URL を返します。 |
static URL |
getNativePluginPath(Plugin uiPlugin)
指定されたプラグインの実行時パスを返します。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public RcpResourceUtil()
| メソッドの詳細 |
|---|
public static URL getNativePluginPath(Plugin uiPlugin)
throws IOException
uiPlugin - 実行時パスを調べる Plugin
URL オブジェクト
IOException - パスの変換に失敗した場合FileLocator.resolve(URL)public static String getBunldePath(Bundle bundle)
Bundleの絶対パスを返します。
bundle - Bundle
Bundleの絶対パス
public static URL getLocalResourceUrl(String path)
throws IOException
URL を返します。
path - リソースのパス
URL。パスが存在しない場合は null。
IOException - パスの変換に失敗した場合FileLocator.resolve(URL)public static URL getLocalResourceUrlNoException(String path)
URL を返します。
path - リソースのパス
URL FileLocator.resolve(URL)
public static String getBundleRelativePath(Bundle bundle,
String path)
bundle - バンドルpath - パス
null。
public static List<File> findFileResources(File baseDir,
FileFilter filter)
baseDir - 起点となるパスfilter - 条件を指定する FileFilter
public static String getInstallPath()
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||