プラグイン管理クラス GrxUIの核になるクラス。プラグインのロード等の、初期化を実行する。 プラグインとそのアイテムのマップ(::pluginMap_)、プラグインとその情報のマップ(::pinfoMap_)などを持つ。 各種プラグインはこのクラスへの参照を持ち、必要に応じてこのクラスから情報を取得する事ができる。 More...

Classes | |
| class | PluginInfo |
| information of plugin class More... | |
Public Member Functions | |
| void | acceptItemChange () |
| void | addPlugin (String className, String classPath) |
| void | clearItemSelection () |
| unselect all items More... | |
| GrxBaseItem | createItem (Class<? extends GrxBaseItem > cls, String name) |
| アイテムの作成. 指定したアイテムプラグインに、指定したアイテム名で新しいアイテムを作る。 More... | |
| GrxBaseView | createView (Class<? extends GrxBaseView > cls, String name) |
| void | deletePlugin (Class<? extends GrxBasePlugin > cls) |
| void | dispose () |
| void | focusedItem (GrxBaseItem item) |
| set focused item More... | |
| GrxBaseItem | focusedItem () |
| get current focused item More... | |
| ArrayList< GrxBaseItem > | getActiveItemList () |
| List< GrxBaseView > | getActiveViewList () |
| String | getCurrentModeName () |
| get current model name More... | |
| File | getHomePath () |
| get home path More... | |
| GrxBaseItem | getItem (Class<? extends GrxBaseItem > cls, String name) |
| GrxBaseItem | getItem (String name) |
| Map<?, ?> | getItemMap (Class<? extends GrxBaseItem > cls) |
| Vector< Action > | getItemMenu (final Class<? extends GrxBaseItem > cls) |
| String | getItemTitle (Class<? extends GrxBasePlugin > cls) |
| get title of item class More... | |
| GrxModeInfoItem | getMode () |
| get current mode More... | |
| GrxProjectItem | getProject () |
| get current project More... | |
| Vector< Action > | getProjectMenu () |
| get project menu More... | |
| String | getProjectName () |
| get project name More... | |
| String | getProjectProperty (String key) |
| get property of current project associated to key More... | |
| GrxBaseView | getView (Class<? extends GrxBaseView > cls, boolean active) |
| synchronized GrxBaseView | getView (String name, boolean active) |
| List< GrxBaseView > | getViewList () |
| Properties | getViewProperties (String name) |
| GrxPluginManager () | |
| GrxPluginManagerのコンストラクタ. まず、プラグインローダ(GrxPluginLoader)のインスタンス::pluginLoader_を作成する。 そして最初に、GrxModeInfoItemをロードする。これは「モード」を管理するアイテムプラグインである。 モードの設定はsetInitialMode関数内で行われるのでそちらを参照。 次にプロジェクトを司るアイテム(GrxProjectItem)を作成する。 Javaのプロパティ「PROJECT」によりデフォルトのプロジェクトが指定されている場合、それをロードする。(なければ生成する。) 各CORBAサーバーを起動する。 More... | |
| boolean | isItemVisible (Class<? extends GrxBasePlugin > cls) |
| check an item class is visible or not More... | |
| void | itemChange (GrxBaseItem item, int event) |
| void | loadInitialProject () |
| GrxBaseItem | loadItem (Class<? extends GrxBaseItem > cls, String name, String url) |
| GrxBaseItem | pasteItem (Class<? extends GrxBaseItem > cls, GrxBaseItem item) |
| void | propertyChange (PropertyChangeEvent event) |
| void | refuseItemChange () |
| void | registerItemChangeListener (GrxItemChangeListener view, Class<? extends GrxBaseItem > cls) |
| Class<? extends GrxBasePlugin > | registerPlugin (String className) |
| Class<?> | registerPlugin (Element el) |
| Class<? extends GrxBasePlugin > | registerPlugin (Class<? extends GrxBasePlugin > cls) |
| boolean | registerPluginInstance (GrxBasePlugin instance) |
| register instance of plugin to this manager More... | |
| void | removeAllItems () |
| remove all items which are instances of active classes in the current mode More... | |
| void | removeItem (GrxBaseItem item) |
| remove item More... | |
| void | removeItemChangeListener (GrxItemChangeListener view, Class<? extends GrxBaseItem > cls) |
| void | removeItems (Class<? extends GrxBaseItem > cls) |
| remove all items which are instances of specified class More... | |
| boolean | renamePlugin (GrxBasePlugin item, String newName) |
| rename plugin. If new name is already used, name is not changed. More... | |
| void | setCurrentMode (GrxModeInfoItem mode) |
| void | setProjectProperty (String key, String val) |
| set property associated to key More... | |
| void | setSelectedItem (GrxBaseItem item, boolean select) |
| select/unselect item More... | |
| void | shutdown () |
| shutdown this manager More... | |
| void | start () |
Public Attributes | |
| org.omg.CORBA.ORB | orb_ |
| GrxPluginLoader | pluginLoader_ |
| HashMap< Class<? extends GrxBasePlugin >, OrderedHashMap > | pluginMap_ = new HashMap<Class<? extends GrxBasePlugin>, OrderedHashMap>() |
| POA | poa_ |
Static Public Attributes | |
| static final int | ADD_ITEM =0 |
| static final int | CHANGE_MODE =7 |
| static final int | FOCUSED_ITEM =5 |
| static final int | NOTFOCUSED_ITEM =6 |
| static final int | NOTSELECTED_ITEM =3 |
| static final int | REMOVE_ITEM =1 |
| static final int | SELECTED_ITEM =2 |
| static final int | SETNAME_ITEM =4 |
Private Member Functions | |
| GrxBasePlugin | createPlugin (Class<? extends GrxBasePlugin > cls, String name) |
| void | dynamicChangeMenu (final Class<? extends GrxBaseItem > cls, Vector< Action > menu) |
| boolean | isEmptyClipBord () |
| boolean | isPerspectiveVisible () |
| check if GrxUI perspective is visible or not More... | |
| void | setInitialMode () |
| void | showExceptionTrace (String m, Exception e) |
| void | updateActiveViewList () |
| update list of views python script から呼ばれた場合、UIスレッド外からの呼び出しとなって、NGなのでsyncexecを使用する。 More... | |
| void | updateViewList () |
| void | versionCheck () |
Static Private Member Functions | |
| static String | getClipBoardVal () |
| Get selected GrxBaseItem List on tree view. More... | |
| static void | setClipBordVal () |
| Set clip board value GrxPluginManager.clipValue_. More... | |
Private Attributes | |
| boolean | acceptItemChange_ = true |
| List< GrxBaseView > | activeViewList_ = new ArrayList<GrxBaseView>() |
| GrxModeInfoItem | currentMode_ |
| GrxProjectItem | currentProject_ |
| GrxBaseItem | focusedItem_ = null |
| File | homePath_ |
| Map< Class<? extends GrxBaseItem >, List< GrxItemChangeListener > > | itemChangeListener_ |
| Map< Class<? extends GrxBasePlugin >, PluginInfo > | pinfoMap_ = new HashMap<Class<? extends GrxBasePlugin>, PluginInfo>() |
| List< GrxBaseView > | viewList_ = new ArrayList<GrxBaseView>() |
Static Private Attributes | |
| static SynchronizedAccessor< String > | clipValue_ = new SynchronizedAccessor<String>("") |
プラグイン管理クラス GrxUIの核になるクラス。プラグインのロード等の、初期化を実行する。 プラグインとそのアイテムのマップ(::pluginMap_)、プラグインとその情報のマップ(::pinfoMap_)などを持つ。 各種プラグインはこのクラスへの参照を持ち、必要に応じてこのクラスから情報を取得する事ができる。
Definition at line 79 of file GrxPluginManager.java.
|
inline |
GrxPluginManagerのコンストラクタ. まず、プラグインローダ(GrxPluginLoader)のインスタンス::pluginLoader_を作成する。
そして最初に、GrxModeInfoItemをロードする。これは「モード」を管理するアイテムプラグインである。
モードの設定はsetInitialMode関数内で行われるのでそちらを参照。
次にプロジェクトを司るアイテム(GrxProjectItem)を作成する。 Javaのプロパティ「PROJECT」によりデフォルトのプロジェクトが指定されている場合、それをロードする。(なければ生成する。)
各CORBAサーバーを起動する。
Definition at line 123 of file GrxPluginManager.java.
|
inline |
Definition at line 1260 of file GrxPluginManager.java.
|
inline |
Definition at line 1454 of file GrxPluginManager.java.
|
inline |
unselect all items
Definition at line 907 of file GrxPluginManager.java.
|
inline |
アイテムの作成. 指定したアイテムプラグインに、指定したアイテム名で新しいアイテムを作る。
| cls | プラグインのクラス. GrxXXXItem.classのように指定する。 |
| name | 新しく作成するアイテムの名前。nullの場合アイテムプラグインの指定するデフォルトが使用される。 |
Definition at line 433 of file GrxPluginManager.java.
|
inlineprivate |
|
inline |
|
inline |
Definition at line 1482 of file GrxPluginManager.java.
|
inline |
Definition at line 1496 of file GrxPluginManager.java.
|
inlineprivate |
Definition at line 1086 of file GrxPluginManager.java.
|
inline |
|
inline |
|
inline |
Definition at line 718 of file GrxPluginManager.java.
|
inline |
Definition at line 830 of file GrxPluginManager.java.
|
inlinestaticprivate |
Get selected GrxBaseItem List on tree view.
Definition at line 1218 of file GrxPluginManager.java.
|
inline |
get current model name
Definition at line 1153 of file GrxPluginManager.java.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
get title of item class
| cls | item class |
Definition at line 925 of file GrxPluginManager.java.
|
inline |
get current mode
モードを設定する. アクティブなプラグインのリストの更新と、画面の更新を行う。
Definition at line 367 of file GrxPluginManager.java.
|
inline |
|
inline |
|
inline |
|
inline |
get property of current project associated to key
| key |
Definition at line 1145 of file GrxPluginManager.java.
|
inline |
|
inline |
Definition at line 855 of file GrxPluginManager.java.
|
inline |
Definition at line 821 of file GrxPluginManager.java.
|
inline |
Definition at line 1509 of file GrxPluginManager.java.
|
inlineprivate |
Definition at line 1106 of file GrxPluginManager.java.
|
inline |
check an item class is visible or not
| cls | item class |
Definition at line 935 of file GrxPluginManager.java.
|
inlineprivate |
check if GrxUI perspective is visible or not
Definition at line 202 of file GrxPluginManager.java.
|
inline |
Definition at line 1278 of file GrxPluginManager.java.
|
inline |
Definition at line 1501 of file GrxPluginManager.java.
|
inline |
|
inline |
|
inline |
Definition at line 1365 of file GrxPluginManager.java.
|
inline |
Definition at line 1256 of file GrxPluginManager.java.
|
inline |
Definition at line 1242 of file GrxPluginManager.java.
|
inline |
Definition at line 376 of file GrxPluginManager.java.
|
inline |
エレメントの値をPluginInfoに反映させるためのメソッド
| el |
Definition at line 388 of file GrxPluginManager.java.
|
inline |
プラグインの登録関数。 該当するプラグインが無い場合、nullを返す。
Definition at line 404 of file GrxPluginManager.java.
|
inline |
register instance of plugin to this manager
| instance | instance of plugin |
Definition at line 591 of file GrxPluginManager.java.
|
inline |
remove all items which are instances of active classes in the current mode
Definition at line 680 of file GrxPluginManager.java.
|
inline |
|
inline |
Definition at line 1249 of file GrxPluginManager.java.
|
inline |
remove all items which are instances of specified class
| cls | class |
Definition at line 655 of file GrxPluginManager.java.
|
inline |
rename plugin. If new name is already used, name is not changed.
| item | plugin to be renamed |
| newName | new name |
Definition at line 695 of file GrxPluginManager.java.
|
inlinestaticprivate |
Set clip board value GrxPluginManager.clipValue_.
Definition at line 1225 of file GrxPluginManager.java.
|
inline |
Definition at line 371 of file GrxPluginManager.java.
|
inlineprivate |
Definition at line 1293 of file GrxPluginManager.java.
|
inline |
set property associated to key
| key | keyword |
| val | property associated to key |
Definition at line 1136 of file GrxPluginManager.java.
|
inline |
select/unselect item
| item | item to be selected/unselected |
| select | true to select, false to unselect |
Definition at line 882 of file GrxPluginManager.java.
|
inlineprivate |
| m | |
| e |
Definition at line 611 of file GrxPluginManager.java.
|
inline |
shutdown this manager
Definition at line 1114 of file GrxPluginManager.java.
全体の処理の開始. 最初に、CORBAのスレッドを開始する。
今のところMODEは”Simulation”のみとし、以下の機能は使っていない。
次にデフォルトのモードをJavaのプロパティ「MODE」から決めてsetMode()を実行する。
「モード」はロードすべきプラグインとその配置のプリセットであり、設定ファイルgrxuirc.xmlにて指定されている。
デフォルトのモードが指定されていない場合、最初に現れたモードをデフォルトとして、ダイアログを出してユーザに選択を求める。
Definition at line 292 of file GrxPluginManager.java.
|
inlineprivate |
update list of views python script から呼ばれた場合、UIスレッド外からの呼び出しとなって、NGなのでsyncexecを使用する。
Definition at line 220 of file GrxPluginManager.java.
|
inlineprivate |
Definition at line 254 of file GrxPluginManager.java.
|
inlineprivate |
Definition at line 1348 of file GrxPluginManager.java.
|
private |
Definition at line 104 of file GrxPluginManager.java.
|
private |
Definition at line 89 of file GrxPluginManager.java.
|
static |
Definition at line 95 of file GrxPluginManager.java.
|
static |
Definition at line 102 of file GrxPluginManager.java.
|
staticprivate |
Definition at line 1239 of file GrxPluginManager.java.
|
private |
Definition at line 82 of file GrxPluginManager.java.
|
private |
Definition at line 81 of file GrxPluginManager.java.
|
static |
Definition at line 100 of file GrxPluginManager.java.
|
private |
Definition at line 83 of file GrxPluginManager.java.
|
private |
Definition at line 90 of file GrxPluginManager.java.
|
private |
Definition at line 93 of file GrxPluginManager.java.
|
static |
Definition at line 101 of file GrxPluginManager.java.
|
static |
Definition at line 98 of file GrxPluginManager.java.
| org.omg.CORBA.ORB com.generalrobotix.ui.GrxPluginManager.orb_ |
Definition at line 108 of file GrxPluginManager.java.
|
private |
Definition at line 91 of file GrxPluginManager.java.
| GrxPluginLoader com.generalrobotix.ui.GrxPluginManager.pluginLoader_ |
Definition at line 86 of file GrxPluginManager.java.
| HashMap<Class<? extends GrxBasePlugin>, OrderedHashMap> com.generalrobotix.ui.GrxPluginManager.pluginMap_ = new HashMap<Class<? extends GrxBasePlugin>, OrderedHashMap>() |
Definition at line 87 of file GrxPluginManager.java.
| POA com.generalrobotix.ui.GrxPluginManager.poa_ |
Definition at line 107 of file GrxPluginManager.java.
|
static |
Definition at line 96 of file GrxPluginManager.java.
|
static |
Definition at line 97 of file GrxPluginManager.java.
|
static |
Definition at line 99 of file GrxPluginManager.java.
|
private |
Definition at line 88 of file GrxPluginManager.java.