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

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 = LINUX_HOME_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 = WIN_HOME_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

◆ Activator()

com.generalrobotix.ui.grxui.Activator.Activator ( )
inline

Member Function Documentation

◆ breakStart()

void com.generalrobotix.ui.grxui.Activator.breakStart ( Exception  eX,
IPerspectiveDescriptor  closeDesc 
)
inline

◆ checkServer()

void com.generalrobotix.ui.grxui.Activator.checkServer ( )
inline

◆ getColor() [1/2]

Color com.generalrobotix.ui.grxui.Activator.getColor ( RGB  rgb)
inline

◆ getColor() [2/2]

Color com.generalrobotix.ui.grxui.Activator.getColor ( String  colorName)
inline

◆ getColorRegistry()

ColorRegistry com.generalrobotix.ui.grxui.Activator.getColorRegistry ( )
inline

◆ getDefault()

static Activator com.generalrobotix.ui.grxui.Activator.getDefault ( )
inlinestatic

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.

◆ getDescriptor()

ImageDescriptor com.generalrobotix.ui.grxui.Activator.getDescriptor ( String  iconName)
inline

◆ getFont()

Font com.generalrobotix.ui.grxui.Activator.getFont ( String  fontName)
inline

◆ getFontRegistry()

FontRegistry com.generalrobotix.ui.grxui.Activator.getFontRegistry ( )
inline

◆ getHomeDir()

File com.generalrobotix.ui.grxui.Activator.getHomeDir ( )
inline

HOMEディレクトリの取得。

Returns
HOMEディレクトリ

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

◆ getImage()

Image com.generalrobotix.ui.grxui.Activator.getImage ( String  iconName)
inline

◆ getImageRegistry()

ImageRegistry com.generalrobotix.ui.grxui.Activator.getImageRegistry ( )
inline

◆ getPath()

static String com.generalrobotix.ui.grxui.Activator.getPath ( )
inlinestatic

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

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

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

◆ getTempDir()

File com.generalrobotix.ui.grxui.Activator.getTempDir ( )
inline

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

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

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

◆ initHomeDir()

static File com.generalrobotix.ui.grxui.Activator.initHomeDir ( )
inlinestaticprivate

◆ initTempDir()

static File com.generalrobotix.ui.grxui.Activator.initTempDir ( )
inlinestaticprivate

◆ loadInitialProject()

void com.generalrobotix.ui.grxui.Activator.loadInitialProject ( )
inline

◆ perspectiveActivated()

void com.generalrobotix.ui.grxui.Activator.perspectiveActivated ( IWorkbenchPage  page,
IPerspectiveDescriptor  perspective 
)
inline

◆ perspectiveChanged()

void com.generalrobotix.ui.grxui.Activator.perspectiveChanged ( IWorkbenchPage  page,
IPerspectiveDescriptor  perspective,
String  changeId 
)
inline

◆ postShutdown()

void com.generalrobotix.ui.grxui.Activator.postShutdown ( IWorkbench  workbench)
inline

◆ preShutdown()

boolean com.generalrobotix.ui.grxui.Activator.preShutdown ( IWorkbench  workbench,
boolean  forced 
)
inline

◆ refNSHostPort()

static void com.generalrobotix.ui.grxui.Activator.refNSHostPort ( StringBuffer  nsHost,
StringBuffer  nsPort 
)
inlinestatic

nsHsotとnsPortの参照渡し

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

◆ registryColor()

void com.generalrobotix.ui.grxui.Activator.registryColor ( )
inline

◆ registryFont()

void com.generalrobotix.ui.grxui.Activator.registryFont ( )
inline

◆ registryImage()

void com.generalrobotix.ui.grxui.Activator.registryImage ( ) throws Exception
inline

◆ releaseLockFile()

void com.generalrobotix.ui.grxui.Activator.releaseLockFile ( )
inline

◆ setColor()

void com.generalrobotix.ui.grxui.Activator.setColor ( String  colorName,
RGB  rgb 
)
inline

◆ start()

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.

◆ startGrxUI()

void com.generalrobotix.ui.grxui.Activator.startGrxUI ( )
inline

◆ stop()

void com.generalrobotix.ui.grxui.Activator.stop ( BundleContext  context) throws Exception
inline

◆ stopGrxUI()

void com.generalrobotix.ui.grxui.Activator.stopGrxUI ( )
inline

◆ tryLockFile()

void com.generalrobotix.ui.grxui.Activator.tryLockFile ( ) throws Exception
inline

◆ updateEditerFont()

void com.generalrobotix.ui.grxui.Activator.updateEditerFont ( )
inline

◆ updateTableFont()

void com.generalrobotix.ui.grxui.Activator.updateTableFont ( )
inline

◆ windowActivated()

void com.generalrobotix.ui.grxui.Activator.windowActivated ( IWorkbenchWindow  window)
inline

◆ windowClosed()

void com.generalrobotix.ui.grxui.Activator.windowClosed ( IWorkbenchWindow  window)
inline

◆ windowDeactivated()

void com.generalrobotix.ui.grxui.Activator.windowDeactivated ( IWorkbenchWindow  window)
inline

◆ windowOpened()

void com.generalrobotix.ui.grxui.Activator.windowOpened ( IWorkbenchWindow  window)
inline

Member Data Documentation

◆ bStartedGrxUI_

boolean com.generalrobotix.ui.grxui.Activator.bStartedGrxUI_ = false
private

◆ creg_

ColorRegistry com.generalrobotix.ui.grxui.Activator.creg_ = null
private

◆ dateFormat_

SimpleDateFormat com.generalrobotix.ui.grxui.Activator.dateFormat_ = new SimpleDateFormat("yyyyMMdd HH:mm:ss.SSS z Z")
private

◆ freg_

FontRegistry com.generalrobotix.ui.grxui.Activator.freg_ = null
private

◆ HOME_DIR

final File com.generalrobotix.ui.grxui.Activator.HOME_DIR = initHomeDir()
staticprivate

◆ images_

final String [] com.generalrobotix.ui.grxui.Activator.images_
staticprivate
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.

◆ initProjectLoad_

boolean com.generalrobotix.ui.grxui.Activator.initProjectLoad_ = false
private

◆ ireg_

ImageRegistry com.generalrobotix.ui.grxui.Activator.ireg_ = null
private

◆ LINUX_HOME_DIR

final String com.generalrobotix.ui.grxui.Activator.LINUX_HOME_DIR = System.getenv("HOME") + File.separator
staticprivate

◆ LINUX_TMP_DIR

final String com.generalrobotix.ui.grxui.Activator.LINUX_TMP_DIR = LINUX_HOME_DIR + ".OpenHRP-3.1" + File.separator
staticprivate

◆ lockFile_

RandomAccessFile com.generalrobotix.ui.grxui.Activator.lockFile_ = null
private

◆ lockFilePath_

final File com.generalrobotix.ui.grxui.Activator.lockFilePath_ = new File( TMP_DIR, "tryLockFileInActivator")
staticprivate

◆ manager_

GrxPluginManager com.generalrobotix.ui.grxui.Activator.manager_

◆ plugin

Activator com.generalrobotix.ui.grxui.Activator.plugin
staticprivate

◆ PLUGIN_ID

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

◆ TMP_DIR

final File com.generalrobotix.ui.grxui.Activator.TMP_DIR = initTempDir()
staticprivate

◆ WIN_HOME_DIR

final String com.generalrobotix.ui.grxui.Activator.WIN_HOME_DIR = System.getenv("APPDATA") + File.separator
staticprivate

◆ WIN_TMP_DIR

final String com.generalrobotix.ui.grxui.Activator.WIN_TMP_DIR = WIN_HOME_DIR + "OpenHRP-3.1" + File.separator
staticprivate

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 Wed Sep 7 2022 02:51:05