org.seasar.eclipse.rcp.ui
クラス S2RcpActivator

java.lang.Object
  上位を拡張 org.eclipse.core.runtime.Plugin
      上位を拡張 org.eclipse.ui.plugin.AbstractUIPlugin
          上位を拡張 org.seasar.eclipse.rcp.ui.S2RcpActivator
すべての実装されたインタフェース:
org.osgi.framework.BundleActivator

public abstract class S2RcpActivator
extends AbstractUIPlugin

S2RCP アプリケーションのための基底アクティベータです。

S2RCPを利用するアプリケーションは、本クラスを継承したアクティベータを作成してください。

作成者:
y-komori

フィールドの概要
protected  S2RcpActivator plugin
           
static String PLUGIN
          S2Container へ本クラスを登録する際のコンポーネント名です。
static String WINDOW_CONTEXT
          S2ContainerWindowContext オブジェクトを登録する際のコンポーネント名です。
 
クラス org.eclipse.core.runtime.Plugin から継承されたフィールド
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
 
コンストラクタの概要
S2RcpActivator()
          S2RcpActivator を構築します。
 
メソッドの概要
protected  S2Container getContainer()
          S2Container のインスタンスを取得します。
 Template getTemplate(String path)
          指定されたパスの画面定義XMLを読み込み、Template オブジェクトを生成します。
protected  void registComponentsToS2Container()
           
protected abstract  void s2RcpStart(org.osgi.framework.BundleContext context)
          プラグイン初期化時に呼び出されるメソッドです。
protected abstract  void s2RcpStop(org.osgi.framework.BundleContext context)
          プラグイン終了時に呼び出されるメソッドです。
 void start(org.osgi.framework.BundleContext context)
           
 void stop(org.osgi.framework.BundleContext context)
           
 
クラス org.eclipse.ui.plugin.AbstractUIPlugin から継承されたメソッド
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, startup
 
クラス org.eclipse.core.runtime.Plugin から継承されたメソッド
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

plugin

protected S2RcpActivator plugin

PLUGIN

public static final String PLUGIN
S2Container へ本クラスを登録する際のコンポーネント名です。
値:"plugin"

関連項目:
定数フィールド値

WINDOW_CONTEXT

public static final String WINDOW_CONTEXT
S2ContainerWindowContext オブジェクトを登録する際のコンポーネント名です。
値:"windowContext"

関連項目:
定数フィールド値
コンストラクタの詳細

S2RcpActivator

public S2RcpActivator()
S2RcpActivator を構築します。

メソッドの詳細

start

public final void start(org.osgi.framework.BundleContext context)
                 throws Exception
定義:
インタフェース org.osgi.framework.BundleActivator 内の start
オーバーライド:
クラス AbstractUIPlugin 内の start
例外:
Exception

registComponentsToS2Container

protected void registComponentsToS2Container()

stop

public final void stop(org.osgi.framework.BundleContext context)
                throws Exception
定義:
インタフェース org.osgi.framework.BundleActivator 内の stop
オーバーライド:
クラス AbstractUIPlugin 内の stop
例外:
Exception

getTemplate

public Template getTemplate(String path)
指定されたパスの画面定義XMLを読み込み、Template オブジェクトを生成します。

パラメータ:
path - 画面定義XMLのパス
戻り値:
Template オブジェクト

getContainer

protected S2Container getContainer()
S2Container のインスタンスを取得します。

戻り値:
S2Container のインスタンス

s2RcpStart

protected abstract void s2RcpStart(org.osgi.framework.BundleContext context)
                            throws Exception
プラグイン初期化時に呼び出されるメソッドです。

プラグイン初期化時の処理は、本メソッドをオーバーライドして記述してください。

パラメータ:
context - BundleContext オブジェクト
例外:
Exception

s2RcpStop

protected abstract void s2RcpStop(org.osgi.framework.BundleContext context)
                           throws Exception
プラグイン終了時に呼び出されるメソッドです。

プラグイン終了時の処理は、本メソッドをオーバーライドして記述してください。

パラメータ:
context - BundleContext オブジェクト
例外:
Exception


Copyright © 2006-2007 The Seasar Foundation. All Rights Reserved.