Public Member Functions | Static Public Member Functions | Static Public Attributes | Static Private Member Functions | Static Private Attributes
jp.go.aist.hrp.joystick.Activator Class Reference
Inheritance diagram for jp.go.aist.hrp.joystick.Activator:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Activator ()
File getTempDir ()
void start (BundleContext context) throws Exception
void stop (BundleContext context) throws Exception

Static Public Member Functions

static String getConfigFilePath ()
static Activator getDefault ()
static ImageDescriptor getImageDescriptor (String path)
static String getPath ()
static void resourceToFile (Class< jp.go.aist.hrp.joystick.Activator > pluginManager, String srcName, File destFile) throws IOException

Static Public Attributes

static final String PLUGIN_ID = "JoystickPlugin"

Static Private Member Functions

static File createConfigFile ()
static File initTempDir ()

Static Private Attributes

static final String LINUX_HOME_DIR = System.getenv("HOME") + File.separator
static final String LINUX_TMP_DIR = ".Joystick_aist" + File.separator
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 = "Joystick_aist" + File.separator

Detailed Description

The activator class controls the plug-in life cycle

Definition at line 19 of file sample/JoystickControl/JoystickComponent-project/src/jp/go/aist/hrp/joystick/Activator.java.


Constructor & Destructor Documentation


Member Function Documentation

static File jp.go.aist.hrp.joystick.Activator.createConfigFile ( ) [inline, static, private]

Create the configuration file

Returns:
Path to the created configuration file

Definition at line 122 of file sample/JoystickControl/JoystickComponent-project/src/jp/go/aist/hrp/joystick/Activator.java.

static String jp.go.aist.hrp.joystick.Activator.getConfigFilePath ( ) [inline, static]

Searches for configuration file

Returns:
Path to the configuration file

Definition at line 138 of file sample/JoystickControl/JoystickComponent-project/src/jp/go/aist/hrp/joystick/Activator.java.

Returns the shared instance

Returns:
the shared instance

Definition at line 87 of file sample/JoystickControl/JoystickComponent-project/src/jp/go/aist/hrp/joystick/Activator.java.

static ImageDescriptor jp.go.aist.hrp.joystick.Activator.getImageDescriptor ( String  path) [inline, static]

Returns an image descriptor for the image file at the given plug-in relative path

Parameters:
paththe path
Returns:
the image descriptor

Definition at line 157 of file sample/JoystickControl/JoystickComponent-project/src/jp/go/aist/hrp/joystick/Activator.java.

static String jp.go.aist.hrp.joystick.Activator.getPath ( ) [inline, static]

Used to get the path to plug-in directory

Returns:
absolute path to the top of plug-in directory

Definition at line 61 of file sample/JoystickControl/JoystickComponent-project/src/jp/go/aist/hrp/joystick/Activator.java.

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

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

Definition at line 78 of file sample/JoystickControl/JoystickComponent-project/src/jp/go/aist/hrp/joystick/Activator.java.

static File jp.go.aist.hrp.joystick.Activator.initTempDir ( ) [inline, static, private]
static void jp.go.aist.hrp.joystick.Activator.resourceToFile ( Class< jp.go.aist.hrp.joystick.Activator pluginManager,
String  srcName,
File  destFile 
) throws IOException [inline, static]

Copy a file from copy source to copy target[destFile]

Parameters:
joystickPluginManagerコピー元のリソースを保持する管理するjoystickPluginManager
srcNameコピー元のリソース名
destFileコピー先のFile
Exceptions:
IOException何らかの入出力処理例外が発生した場合

Definition at line 100 of file sample/JoystickControl/JoystickComponent-project/src/jp/go/aist/hrp/joystick/Activator.java.

void jp.go.aist.hrp.joystick.Activator.start ( BundleContext  context) throws Exception [inline]
void jp.go.aist.hrp.joystick.Activator.stop ( BundleContext  context) throws Exception [inline]

Member Data Documentation

final String jp.go.aist.hrp.joystick.Activator.LINUX_HOME_DIR = System.getenv("HOME") + File.separator [static, private]
final String jp.go.aist.hrp.joystick.Activator.LINUX_TMP_DIR = ".Joystick_aist" + File.separator [static, private]
final String jp.go.aist.hrp.joystick.Activator.PLUGIN_ID = "JoystickPlugin" [static]
final File jp.go.aist.hrp.joystick.Activator.TMP_DIR = initTempDir() [static, private]
final String jp.go.aist.hrp.joystick.Activator.WIN_HOME_DIR = System.getenv("APPDATA") + File.separator [static, private]
final String jp.go.aist.hrp.joystick.Activator.WIN_TMP_DIR = "Joystick_aist" + 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 Thu Apr 11 2019 03:30:22