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

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

Member Function Documentation

void com.generalrobotix.ui.grxui.Activator.breakStart ( Exception  eX,
IPerspectiveDescriptor  closeDesc 
)
inline
void com.generalrobotix.ui.grxui.Activator.checkServer ( )
inline
Color com.generalrobotix.ui.grxui.Activator.getColor ( RGB  rgb)
inline
Color com.generalrobotix.ui.grxui.Activator.getColor ( String  colorName)
inline
ColorRegistry com.generalrobotix.ui.grxui.Activator.getColorRegistry ( )
inline
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.

ImageDescriptor com.generalrobotix.ui.grxui.Activator.getDescriptor ( String  iconName)
inline
Font com.generalrobotix.ui.grxui.Activator.getFont ( String  fontName)
inline
FontRegistry com.generalrobotix.ui.grxui.Activator.getFontRegistry ( )
inline
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.

Image com.generalrobotix.ui.grxui.Activator.getImage ( String  iconName)
inline
ImageRegistry com.generalrobotix.ui.grxui.Activator.getImageRegistry ( )
inline
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.

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.

static File com.generalrobotix.ui.grxui.Activator.initHomeDir ( )
inlinestaticprivate
static File com.generalrobotix.ui.grxui.Activator.initTempDir ( )
inlinestaticprivate
void com.generalrobotix.ui.grxui.Activator.loadInitialProject ( )
inline
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 
)
inlinestatic

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.registryColor ( )
inline
void com.generalrobotix.ui.grxui.Activator.registryFont ( )
inline
void com.generalrobotix.ui.grxui.Activator.registryImage ( ) throws Exception
inline
void com.generalrobotix.ui.grxui.Activator.releaseLockFile ( )
inline
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.startGrxUI ( )
inline
void com.generalrobotix.ui.grxui.Activator.stop ( BundleContext  context) throws Exception
inline
void com.generalrobotix.ui.grxui.Activator.stopGrxUI ( )
inline
void com.generalrobotix.ui.grxui.Activator.tryLockFile ( ) throws Exception
inline
void com.generalrobotix.ui.grxui.Activator.updateEditerFont ( )
inline
void com.generalrobotix.ui.grxui.Activator.updateTableFont ( )
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

boolean com.generalrobotix.ui.grxui.Activator.bStartedGrxUI_ = false
private
ColorRegistry com.generalrobotix.ui.grxui.Activator.creg_ = null
private
SimpleDateFormat com.generalrobotix.ui.grxui.Activator.dateFormat_ = new SimpleDateFormat("yyyyMMdd HH:mm:ss.SSS z Z")
private
FontRegistry com.generalrobotix.ui.grxui.Activator.freg_ = null
private
final File com.generalrobotix.ui.grxui.Activator.HOME_DIR = initHomeDir()
staticprivate
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.

boolean com.generalrobotix.ui.grxui.Activator.initProjectLoad_ = false
private
ImageRegistry com.generalrobotix.ui.grxui.Activator.ireg_ = null
private
final String com.generalrobotix.ui.grxui.Activator.LINUX_HOME_DIR = System.getenv("HOME") + File.separator
staticprivate
final String com.generalrobotix.ui.grxui.Activator.LINUX_TMP_DIR = LINUX_HOME_DIR + ".OpenHRP-3.1" + File.separator
staticprivate
RandomAccessFile com.generalrobotix.ui.grxui.Activator.lockFile_ = null
private
final File com.generalrobotix.ui.grxui.Activator.lockFilePath_ = new File( TMP_DIR, "tryLockFileInActivator")
staticprivate
GrxPluginManager com.generalrobotix.ui.grxui.Activator.manager_
Activator com.generalrobotix.ui.grxui.Activator.plugin
staticprivate
final String com.generalrobotix.ui.grxui.Activator.PLUGIN_ID = "com.generalrobotix.ui.grxui"
static
final File com.generalrobotix.ui.grxui.Activator.TMP_DIR = initTempDir()
staticprivate
final String com.generalrobotix.ui.grxui.Activator.WIN_HOME_DIR = System.getenv("APPDATA") + File.separator
staticprivate
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 Sat May 8 2021 02:42:43