|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
public interface UrumaService
RCP 環境で Uruma が提供するサービスです。
メソッドの概要 | |
---|---|
String |
createRcpId(String id)
画面コンポーネントのIDをRCP上のIDに変換します。 |
ClassLoader |
getAppClassLoader()
Urumaアプリケーションバンドルのクラスローダを返します。 |
CommandRegistry |
getCommandRegistry()
CommandRegistry のインスタンスを返します。 |
S2Container |
getContainer()
S2Container のインスタンスを返します。 |
String |
getDefaultContextId()
Uruma アプリケーションのためのデフォルトコンテクスト ID を返します。 |
Extension |
getExtension(String point)
指定した名前の拡張ポイントを返します。 |
List<Extension> |
getExtensions()
現在登録されている拡張ポイントのリストを返します。 |
String |
getLocalId(String rcpId)
RCP上のIDから画面コンポーネントのIDを取得します。 |
String |
getPluginId()
現在のプラグイン ID を返します。 |
Template |
getTemplate(String path)
指定されたパスの画面定義XMLを読み込み、 Template オブジェクトを生成します。 |
IWorkbench |
getWorkbench()
IWorkbench のインスタンスを返します。 |
WorkbenchComponent |
getWorkbenchComponent()
WorkbenchComponent を返します。 |
WindowContext |
getWorkbenchWindowContext()
ワークベンチウィンドウに対応する WindowContext を返します。 |
void |
restoreClassLoader()
直前に使用していたクラスローダに切り替えます。 |
void |
switchToAppClassLoader()
コンテクストクラスローダを Uruma アプリケーションのクラスローダに切り替えます。 |
void |
switchToUrumaClassLoader()
コンテクストクラスローダを Uruma バンドルのクラスローダに切り替えます。 |
メソッドの詳細 |
---|
String getPluginId()
String createRcpId(String id)
【例】プラグインID: org.seasar.uruma.example
、コンポーネントID:
button
の場合、本メソッドの戻り値は、org.seasar.uruma.example.button
となります。
id
- 画面コンポーネントのID
String getLocalId(String rcpId)
rcpId
- RCP上のID
createRcpId(String)
Template getTemplate(String path)
Template
オブジェクトを生成します。
path
- 画面定義XMLのパス
Template
オブジェクトIWorkbench getWorkbench()
IWorkbench
のインスタンスを返します。
IWorkbench
のインスタンスWorkbenchComponent getWorkbenchComponent()
WorkbenchComponent
を返します。
WorkbenchComponent
オブジェクトList<Extension> getExtensions()
Extension getExtension(String point)
point
- 拡張ポイントの名称
null
。WindowContext getWorkbenchWindowContext()
WindowContext
を返します。
WindowContext
S2Container getContainer()
S2Container
のインスタンスを返します。
S2Container
のインスタンスClassLoader getAppClassLoader()
void switchToAppClassLoader()
void switchToUrumaClassLoader()
void restoreClassLoader()
switchToUrumaClassLoader()
メソッドまたは、
switchToAppClassLoader()
メソッド実行前のクラスローダに切り替えます。
CommandRegistry getCommandRegistry()
CommandRegistry
のインスタンスを返します。
String getDefaultContextId()
<プラグインID>.context
となります。
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |