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