Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Static Private Member Functions | Private Attributes | Static Private Attributes
com.generalrobotix.ui.grxui.Activator Class Reference
Inheritance diagram for com.generalrobotix.ui.grxui.Activator:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Activator ()
void breakStart (Exception eX, IPerspectiveDescriptor closeDesc)
void checkServer ()
Color getColor (RGB rgb)
Color getColor (String colorName)
ColorRegistry getColorRegistry ()
ImageDescriptor getDescriptor (String iconName)
Font getFont (String fontName)
FontRegistry getFontRegistry ()
File getHomeDir ()
Image getImage (String iconName)
ImageRegistry getImageRegistry ()
File getTempDir ()
void loadInitialProject ()
void perspectiveActivated (IWorkbenchPage page, IPerspectiveDescriptor perspective)
void perspectiveChanged (IWorkbenchPage page, IPerspectiveDescriptor perspective, String changeId)
void postShutdown (IWorkbench workbench)
boolean preShutdown (IWorkbench workbench, boolean forced)
void registryColor ()
void registryFont ()
void registryImage () throws Exception
void releaseLockFile ()
void setColor (String colorName, RGB rgb)
void start (BundleContext context) throws Exception
void startGrxUI ()
void stop (BundleContext context) throws Exception
void stopGrxUI ()
void tryLockFile () throws Exception
void updateEditerFont ()
void updateTableFont ()
void windowActivated (IWorkbenchWindow window)
void windowClosed (IWorkbenchWindow window)
void windowDeactivated (IWorkbenchWindow window)
void windowOpened (IWorkbenchWindow window)

Static Public Member Functions

static Activator getDefault ()
static String getPath ()
static void refNSHostPort (StringBuffer nsHost, StringBuffer nsPort)

Public Attributes

GrxPluginManager manager_

Static Public Attributes

static final String PLUGIN_ID = "com.generalrobotix.ui.grxui"

Static Private Member Functions

static File initHomeDir ()
static File initTempDir ()

Private Attributes

boolean bStartedGrxUI_ = false
ColorRegistry creg_ = null
SimpleDateFormat dateFormat_ = new SimpleDateFormat("yyyyMMdd HH:mm:ss.SSS z Z")
FontRegistry freg_ = null
boolean initProjectLoad_ = false
ImageRegistry ireg_ = null
RandomAccessFile lockFile_ = null

Static Private Attributes

static final File HOME_DIR = initHomeDir()
static final String[] images_
static final String LINUX_HOME_DIR = System.getenv("HOME") + File.separator
static final String LINUX_TMP_DIR = ".OpenHRP-3.1" + File.separator
static final File lockFilePath_ = new File( TMP_DIR, "tryLockFileInActivator")
static Activator plugin
static final File TMP_DIR = initTempDir()
static final String WIN_HOME_DIR = System.getenv("APPDATA") + File.separator
static final String WIN_TMP_DIR = "OpenHRP-3.1" + File.separator

Detailed Description

The activator class controls the plug-in life cycle

Definition at line 58 of file GrxUIonEclipse-project-0.9.8/src/com/generalrobotix/ui/grxui/Activator.java.


Constructor & Destructor Documentation


Member Function Documentation

void com.generalrobotix.ui.grxui.Activator.breakStart ( Exception  eX,
IPerspectiveDescriptor  closeDesc 
) [inline]
Color com.generalrobotix.ui.grxui.Activator.getColor ( String  colorName) [inline]

Returns the shared instance

Returns:
the shared instance

Definition at line 324 of file GrxUIonEclipse-project-0.9.8/src/com/generalrobotix/ui/grxui/Activator.java.

ImageDescriptor com.generalrobotix.ui.grxui.Activator.getDescriptor ( String  iconName) [inline]
Font com.generalrobotix.ui.grxui.Activator.getFont ( String  fontName) [inline]

HOMEディレクトリの取得。

Returns:
HOMEディレクトリ

Definition at line 304 of file GrxUIonEclipse-project-0.9.8/src/com/generalrobotix/ui/grxui/Activator.java.

Image com.generalrobotix.ui.grxui.Activator.getImage ( String  iconName) [inline]
static String com.generalrobotix.ui.grxui.Activator.getPath ( ) [inline, static]

プラグインのディレクトリ取得. プラグイン内の画像や設定ファイルを取得するとき使えるかも

Returns:
プラグインのトップディレクトリ

Definition at line 288 of file GrxUIonEclipse-project-0.9.8/src/com/generalrobotix/ui/grxui/Activator.java.

設定ファイル、ログファイル、ロックファイルなど。 OpenHRP固有の目的に使用するファイル群の共通格納先ディレクトリ

Returns:
テンポラリディレクトリ

Definition at line 314 of file GrxUIonEclipse-project-0.9.8/src/com/generalrobotix/ui/grxui/Activator.java.

static File com.generalrobotix.ui.grxui.Activator.initHomeDir ( ) [inline, static, private]
static File com.generalrobotix.ui.grxui.Activator.initTempDir ( ) [inline, static, private]
void com.generalrobotix.ui.grxui.Activator.perspectiveActivated ( IWorkbenchPage  page,
IPerspectiveDescriptor  perspective 
) [inline]
void com.generalrobotix.ui.grxui.Activator.perspectiveChanged ( IWorkbenchPage  page,
IPerspectiveDescriptor  perspective,
String  changeId 
) [inline]
void com.generalrobotix.ui.grxui.Activator.postShutdown ( IWorkbench  workbench) [inline]
boolean com.generalrobotix.ui.grxui.Activator.preShutdown ( IWorkbench  workbench,
boolean  forced 
) [inline]
static void com.generalrobotix.ui.grxui.Activator.refNSHostPort ( StringBuffer  nsHost,
StringBuffer  nsPort 
) [inline, static]

nsHsotとnsPortの参照渡し

Definition at line 332 of file GrxUIonEclipse-project-0.9.8/src/com/generalrobotix/ui/grxui/Activator.java.

void com.generalrobotix.ui.grxui.Activator.setColor ( String  colorName,
RGB  rgb 
) [inline]
void com.generalrobotix.ui.grxui.Activator.start ( BundleContext  context) throws Exception [inline]

プラグイン起動処理. プラグインマネージャを作り、処理を開始する。

Definition at line 167 of file GrxUIonEclipse-project-0.9.8/src/com/generalrobotix/ui/grxui/Activator.java.

void com.generalrobotix.ui.grxui.Activator.stop ( BundleContext  context) throws Exception [inline]
void com.generalrobotix.ui.grxui.Activator.windowActivated ( IWorkbenchWindow  window) [inline]
void com.generalrobotix.ui.grxui.Activator.windowClosed ( IWorkbenchWindow  window) [inline]
void com.generalrobotix.ui.grxui.Activator.windowDeactivated ( IWorkbenchWindow  window) [inline]
void com.generalrobotix.ui.grxui.Activator.windowOpened ( IWorkbenchWindow  window) [inline]

Member Data Documentation

SimpleDateFormat com.generalrobotix.ui.grxui.Activator.dateFormat_ = new SimpleDateFormat("yyyyMMdd HH:mm:ss.SSS z Z") [private]
final String [] com.generalrobotix.ui.grxui.Activator.images_ [static, private]
Initial value:
 { "save_edit.png",
                                                                                        "saveas_edit.png",
                                                                                        "sim_start.png",
                                                                                        "sim_stop.png",
                                                                                        "sim_script_start.png",
                                                                                        "sim_script_stop.png",
                                                                                        "grxrobot1.png",
                                                                                        "robot_servo_start.png",
                                                                                        "robot_servo_stop.png",
                                                                                        "icon_fastrwd.png",
                                                                                        "icon_slowrwd.png",
                                                                                        "icon_pause.png",
                                                                                        "icon_playback.png",
                                                                                        "icon_slowfwd.png",
                                                                                        "icon_fastfwd.png",
                                                                                        "icond_fastrwd.png",
                                                                                        "icond_slowrwd.png",
                                                                                        "icond_pause.png",
                                                                                        "icond_playback.png",
                                                                                        "icond_slowfwd.png",
                                                                                        "icond_fastfwd.png",
                                                                                        "icon_frame+.png",
                                                                                        "icon_frame-.png"}

Definition at line 73 of file GrxUIonEclipse-project-0.9.8/src/com/generalrobotix/ui/grxui/Activator.java.

final String com.generalrobotix.ui.grxui.Activator.LINUX_HOME_DIR = System.getenv("HOME") + File.separator [static, private]
final String com.generalrobotix.ui.grxui.Activator.LINUX_TMP_DIR = ".OpenHRP-3.1" + File.separator [static, private]
final File com.generalrobotix.ui.grxui.Activator.lockFilePath_ = new File( TMP_DIR, "tryLockFileInActivator") [static, private]
final String com.generalrobotix.ui.grxui.Activator.PLUGIN_ID = "com.generalrobotix.ui.grxui" [static]
final String com.generalrobotix.ui.grxui.Activator.WIN_HOME_DIR = System.getenv("APPDATA") + File.separator [static, private]
final String com.generalrobotix.ui.grxui.Activator.WIN_TMP_DIR = "OpenHRP-3.1" + File.separator [static, private]

The documentation for this class was generated from the following file:


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sun Apr 2 2017 03:44:00