Classes | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
com.generalrobotix.ui.view.GrxJythonPromptView Class Reference
Inheritance diagram for com.generalrobotix.ui.view.GrxJythonPromptView:
Inheritance graph


class  ConsoleKeyListener
class  InitPythonAction
class  StyledTextWriter

Public Member Functions

void execFile ()
void execFile (final String url)
boolean getEnabledExecBtn ()
 GrxJythonPromptView (String name, GrxPluginManager manager, GrxBaseViewPart vp, Composite parent)
 constructor More...
void interrupt ()
void registerItemChange (GrxBaseItem item, int event)
void selectExecBtn ()
void setNameService ()
void setUp ()
void shutdown ()
void updateEditerFont ()
void waitInput (final String msg)
void waitInputConfirm (final String msg)
void waitInputMenu (String[][] menuList)
Object waitInputMessage (String msg)
boolean waitInputSelect (final String msg)
void waitInputSetMessage (String msg)
- Public Member Functions inherited from com.generalrobotix.ui.GrxBaseView
 GrxBaseView (String name, GrxPluginManager manager_, GrxBaseViewPart vp, Composite parent)
 constructor More...
void setName (String name)
GrxBaseViewPart getViewPart ()
 get view part More...
Composite getParent ()
 get parent composite More...
Composite getComposite ()
 get composite. SWTのパーツはここで取得できるコンポジット上に設置する。 More...
void setScrollMinSize (int width, int height)
 set scroll minimum size More...
boolean cleanup (List< GrxBaseItem > itemList)
 cleanup More...
void itemListChanged ()
 this method is called by PluginManager when list of items is changed More...
void focusedItemChanged (GrxBaseItem item)
void propertyChanged ()
 This method is called when a property of plugin is changed. More...
void registerItemChange (GrxBaseItem item, int event)
void update (GrxBasePlugin plugin, Object...arg)
void updatePosition (GrxBasePlugin plugin, Integer pos)
void updateTableFont ()
void updateEditerFont ()
void restoreProperties ()
Element storeProperties ()
void setUp ()
- Public Member Functions inherited from com.generalrobotix.ui.GrxBasePlugin
void addObserver (GrxObserver v)
GrxBasePlugin clone ()
 Override clone method. More...
void deleteObserver (GrxObserver v)
boolean equals (Object obj)
 check whether obj equals to this More...
Element getElement ()
 get element More...
Image getIcon ()
 get icon More...
Vector< Action > getMenu ()
 get menu More...
String[] getMenuPath ()
 get menu path More...
final String getName ()
 get name More...
ArrayList< GrxObservergetObserver ()
String getOldName ()
Vector< MenuManager > getSubMenu ()
 get subMenu More...
String getURL (boolean expand)
ValueEditType GetValueEditType (String key)
 Return editing type of the key item. More...
boolean isExclusive ()
 check whether this is exclusive or not More...
boolean isSelected ()
 check whether this is selected or not More...
void notifyObservers (Object...arg)
boolean propertyChanged (String property, String value)
 check validity of new value of property and update if valid More...
boolean registerCORBA ()
void rename (String newName)
 rename this item More...
void restoreProperties ()
 restore properties. Called by menu item "restore Properties" More...
void setDocument (Document doc)
 set document More...
void setElement (Element element)
 set element More...
void setExclusive (boolean b)
 set exclusive flag More...
void setFocused (boolean b)
 set/unset focus on this plugin More...
void setMenuItem (Action a)
 add a menu item More...
void setName (String name)
 set name More...
Object setProperty (String key, String value)
 set property value associated with a keyword More...
void setSelected (boolean b)
 set selected flag More...
void setSubMenu (MenuManager m)
 add a submenu More...
void setURL (String url)
 set URL property More...
void shutdown ()
Element storeProperties ()
 store properties More...
final String toString ()
 convert to String. Currently, name is returned. More...
void unregisterCORBA ()
- Public Member Functions inherited from com.generalrobotix.ui.util.GrxConfigBundle
final Double getDbl (String key, Double defaultVal)
 get double value associated to key More...
Double getDbl (String value)
final double[] getDblAry (String key, double[] defaultVal)
 get double array associated to key More...
double[] getDblAry (String value)
 get array of double from String More...
final Float getFlt (String key, Float defaultVal)
 get float value associated to key More...
final Float getFlt (String value)
final float[] getFltAry (String key, float[] defaultVal)
 get float array associated to key More...
float[] getFltAry (String value)
final Integer getInt (String key, Integer defaultVal)
 get integer value associated to key More...
final int[] getIntAry (String key)
 get integer array associated to key More...
final Short getShort (String key, Short defaultVal)
 get short value associated to key More...
Short getShort (String value)
final String getStr (String key)
 get value associated to keyword More...
final String getStr (String key, String defaultVal)
 get value associated to key More...
 GrxConfigBundle ()
 constructor More...
 GrxConfigBundle (String fname) throws IOException
 construct from a file More...
final boolean isFalse (String key)
 check whether value associated to key includes a word "false" More...
final boolean isFalse (String key, boolean defaultVal)
 check whether value associated to key includes a word "false" More...
final boolean isTrue (String key)
 check whether value associated to key includes a word "true" More...
final boolean isTrue (String key, boolean defaultVal)
 check whether value associated to key includes a word "true" More...
void load (String fname) throws IOException
 load config from a file More...
final void setBool (String key, boolean value)
final void setDbl (String key, double value)
 associate double value to key More...
final void setDbl (String key, double value, int digits)
 associate double value to key More...
final void setDblAry (String key, double[] value, int digits)
 associate double array to key More...
final void setDblAry (String key, double[] value)
 associate double array to key More...
final void setFlt (String key, float value)
 associate float value to key More...
final void setFltAry (String key, float[] value)
 associate float array to key More...
final void setInt (String key, int value)
 associate int value to key More...
final void setShort (String key, short value)
 associate short value to key More...
void store (String fname, String comments) throws IOException
 store this config More...

Private Member Functions

String getCommand ()
IAction getStartSimulationAction ()
void selectedExecBtn ()
void styleExecBtn (boolean selected)

Private Attributes

Button btnExec_
String com_
GrxPythonScriptItem currentItem_
Display display_
Frame frame_
List< String > history_ = new LinkedList<String>()
int hpos_ = 0
InteractiveInterpreter interpreter_ = new InteractiveInterpreter()
MenuDialog menuDialog
String message_
Composite parent_
String prompt_ = ">>> "
Object result_
Image simScriptStartIcon_
Image simScriptStopIcon_
StyledTextWriter stWriter_
StyledText styledText_
Thread thread_1_
Thread thread_2_
Writer writer_

Static Private Attributes

static final int HISTORY_SIZE = 50
static final int INTERVAL =100
static final int KS_BACK_SPACE = SWT.BS
static final int KS_CONTROL = SWT.CTRL
static final int KS_CTRL_A = 'a' | SWT.CTRL
static final int KS_CTRL_B = 'b' | SWT.CTRL
static final int KS_CTRL_E = 'e' | SWT.CTRL
static final int KS_CTRL_F = 'f' | SWT.CTRL
static final int KS_CTRL_N = 'n' | SWT.CTRL
static final int KS_CTRL_P = 'p' | SWT.CTRL
static final int KS_CTRL_U = 'u' | SWT.CTRL
static final int KS_DELETE = SWT.DEL
static final int KS_DOWN = SWT.ARROW_DOWN
static final int KS_ENTER = SWT.CR
static final int KS_ENTER_ALT = SWT.CR | SWT.ALT
static final int KS_ENTER_CTRL = SWT.CR | SWT.CTRL
static final int KS_ENTER_SHIFT = SWT.CR | SWT.SHIFT
static final int KS_LEFT = SWT.ARROW_LEFT
static final int KS_RIGHT = SWT.ARROW_RIGHT
static final int KS_SHIFT = SWT.SHIFT
static final int KS_UP = SWT.ARROW_UP

Additional Inherited Members

- Static Public Member Functions inherited from com.generalrobotix.ui.GrxBaseView
static Dimension getDefaultButtonSize ()
 get default button size More...
- Static Public Member Functions inherited from com.generalrobotix.ui.GrxBasePlugin
static Object getField (Class<?extends GrxBasePlugin > cls, String field, Object defaultValue)
 get field More...
- Public Attributes inherited from com.generalrobotix.ui.GrxBaseView
boolean isScrollable_ = true
double min
- Protected Member Functions inherited from com.generalrobotix.ui.GrxBasePlugin
 GrxBasePlugin (String name, GrxPluginManager manager)
 constructor More...
void setIcon (String iconName)
 set icon More...
void setMenuPath (String[] path)
 set menu path More...
boolean syncExec (Runnable r)
 Transfer SWT UI thread. More...
- Protected Attributes inherited from com.generalrobotix.ui.GrxBaseView
Composite composite_
- Protected Attributes inherited from com.generalrobotix.ui.GrxBasePlugin
Document doc_
Element element_
GrxPluginManager manager_
- Static Protected Attributes inherited from com.generalrobotix.ui.GrxBasePlugin
static final String[] booleanComboItem_ = new String[] {"true", "false" }
static final String INDENT4 = " "
static final String ITEM_TAG = "item"
static final String PROPERTY_TAG = "property"
static final String VIEW_TAG = "view"

Detailed Description

Definition at line 75 of file

Constructor & Destructor Documentation

com.generalrobotix.ui.view.GrxJythonPromptView.GrxJythonPromptView ( String  name,
GrxPluginManager  manager,
GrxBaseViewPart  vp,
Composite  parent 


namename of this view

Definition at line 128 of file

Member Function Documentation

void com.generalrobotix.ui.view.GrxJythonPromptView.execFile ( )

Definition at line 376 of file

void com.generalrobotix.ui.view.GrxJythonPromptView.execFile ( final String  url)

Definition at line 390 of file

String com.generalrobotix.ui.view.GrxJythonPromptView.getCommand ( )

Definition at line 418 of file

boolean com.generalrobotix.ui.view.GrxJythonPromptView.getEnabledExecBtn ( )

Definition at line 590 of file

IAction com.generalrobotix.ui.view.GrxJythonPromptView.getStartSimulationAction ( )

Definition at line 630 of file

void com.generalrobotix.ui.view.GrxJythonPromptView.interrupt ( )

Definition at line 266 of file

void com.generalrobotix.ui.view.GrxJythonPromptView.registerItemChange ( GrxBaseItem  item,
int  event 
void com.generalrobotix.ui.view.GrxJythonPromptView.selectedExecBtn ( )

Definition at line 599 of file

void com.generalrobotix.ui.view.GrxJythonPromptView.selectExecBtn ( )

Definition at line 594 of file

void com.generalrobotix.ui.view.GrxJythonPromptView.setNameService ( )

Definition at line 426 of file

void com.generalrobotix.ui.view.GrxJythonPromptView.setUp ( )
void com.generalrobotix.ui.view.GrxJythonPromptView.shutdown ( )

Definition at line 586 of file

void com.generalrobotix.ui.view.GrxJythonPromptView.styleExecBtn ( boolean  selected)

Definition at line 609 of file

void com.generalrobotix.ui.view.GrxJythonPromptView.updateEditerFont ( )

Definition at line 654 of file

void com.generalrobotix.ui.view.GrxJythonPromptView.waitInput ( final String  msg)

Definition at line 495 of file

void com.generalrobotix.ui.view.GrxJythonPromptView.waitInputConfirm ( final String  msg)

Definition at line 499 of file

void com.generalrobotix.ui.view.GrxJythonPromptView.waitInputMenu ( String  menuList[][])

Definition at line 529 of file

Object com.generalrobotix.ui.view.GrxJythonPromptView.waitInputMessage ( String  msg)

Definition at line 522 of file

boolean com.generalrobotix.ui.view.GrxJythonPromptView.waitInputSelect ( final String  msg)

Definition at line 509 of file

void com.generalrobotix.ui.view.GrxJythonPromptView.waitInputSetMessage ( String  msg)

Definition at line 533 of file

Member Data Documentation

Button com.generalrobotix.ui.view.GrxJythonPromptView.btnExec_

Definition at line 89 of file

String com.generalrobotix.ui.view.GrxJythonPromptView.com_

Definition at line 88 of file

GrxPythonScriptItem com.generalrobotix.ui.view.GrxJythonPromptView.currentItem_

Definition at line 91 of file

Display com.generalrobotix.ui.view.GrxJythonPromptView.display_

Definition at line 80 of file

Frame com.generalrobotix.ui.view.GrxJythonPromptView.frame_

Definition at line 84 of file

List<String> com.generalrobotix.ui.view.GrxJythonPromptView.history_ = new LinkedList<String>()

Definition at line 86 of file

final int com.generalrobotix.ui.view.GrxJythonPromptView.HISTORY_SIZE = 50

Definition at line 85 of file

int com.generalrobotix.ui.view.GrxJythonPromptView.hpos_ = 0

Definition at line 87 of file

InteractiveInterpreter com.generalrobotix.ui.view.GrxJythonPromptView.interpreter_ = new InteractiveInterpreter()

Definition at line 76 of file

final int com.generalrobotix.ui.view.GrxJythonPromptView.INTERVAL =100

Definition at line 119 of file

final int com.generalrobotix.ui.view.GrxJythonPromptView.KS_BACK_SPACE = SWT.BS

Definition at line 112 of file

final int com.generalrobotix.ui.view.GrxJythonPromptView.KS_CONTROL = SWT.CTRL

Definition at line 96 of file

final int com.generalrobotix.ui.view.GrxJythonPromptView.KS_CTRL_A = 'a' | SWT.CTRL

Definition at line 98 of file

final int com.generalrobotix.ui.view.GrxJythonPromptView.KS_CTRL_B = 'b' | SWT.CTRL

Definition at line 101 of file

final int com.generalrobotix.ui.view.GrxJythonPromptView.KS_CTRL_E = 'e' | SWT.CTRL

Definition at line 99 of file

final int com.generalrobotix.ui.view.GrxJythonPromptView.KS_CTRL_F = 'f' | SWT.CTRL

Definition at line 100 of file

final int com.generalrobotix.ui.view.GrxJythonPromptView.KS_CTRL_N = 'n' | SWT.CTRL

Definition at line 102 of file

final int com.generalrobotix.ui.view.GrxJythonPromptView.KS_CTRL_P = 'p' | SWT.CTRL

Definition at line 103 of file

final int com.generalrobotix.ui.view.GrxJythonPromptView.KS_CTRL_U = 'u' | SWT.CTRL

Definition at line 97 of file

final int com.generalrobotix.ui.view.GrxJythonPromptView.KS_DELETE = SWT.DEL

Definition at line 113 of file

final int com.generalrobotix.ui.view.GrxJythonPromptView.KS_DOWN = SWT.ARROW_DOWN

Definition at line 105 of file

final int com.generalrobotix.ui.view.GrxJythonPromptView.KS_ENTER = SWT.CR

Definition at line 108 of file

final int com.generalrobotix.ui.view.GrxJythonPromptView.KS_ENTER_ALT = SWT.CR | SWT.ALT

Definition at line 109 of file

final int com.generalrobotix.ui.view.GrxJythonPromptView.KS_ENTER_CTRL = SWT.CR | SWT.CTRL

Definition at line 110 of file

final int com.generalrobotix.ui.view.GrxJythonPromptView.KS_ENTER_SHIFT = SWT.CR | SWT.SHIFT

Definition at line 111 of file

final int com.generalrobotix.ui.view.GrxJythonPromptView.KS_LEFT = SWT.ARROW_LEFT

Definition at line 106 of file

final int com.generalrobotix.ui.view.GrxJythonPromptView.KS_RIGHT = SWT.ARROW_RIGHT

Definition at line 107 of file

final int com.generalrobotix.ui.view.GrxJythonPromptView.KS_SHIFT = SWT.SHIFT

Definition at line 95 of file

final int com.generalrobotix.ui.view.GrxJythonPromptView.KS_UP = SWT.ARROW_UP

Definition at line 104 of file

MenuDialog com.generalrobotix.ui.view.GrxJythonPromptView.menuDialog

Definition at line 83 of file

String com.generalrobotix.ui.view.GrxJythonPromptView.message_

Definition at line 92 of file

Composite com.generalrobotix.ui.view.GrxJythonPromptView.parent_

Definition at line 81 of file

String com.generalrobotix.ui.view.GrxJythonPromptView.prompt_ = ">>> "

Definition at line 79 of file

Object com.generalrobotix.ui.view.GrxJythonPromptView.result_

Definition at line 93 of file

Image com.generalrobotix.ui.view.GrxJythonPromptView.simScriptStartIcon_

Definition at line 115 of file

Image com.generalrobotix.ui.view.GrxJythonPromptView.simScriptStopIcon_

Definition at line 116 of file

StyledTextWriter com.generalrobotix.ui.view.GrxJythonPromptView.stWriter_

Definition at line 117 of file

StyledText com.generalrobotix.ui.view.GrxJythonPromptView.styledText_

Definition at line 82 of file

Thread com.generalrobotix.ui.view.GrxJythonPromptView.thread_1_

Definition at line 77 of file

Thread com.generalrobotix.ui.view.GrxJythonPromptView.thread_2_

Definition at line 78 of file

Writer com.generalrobotix.ui.view.GrxJythonPromptView.writer_

Definition at line 90 of file

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

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:44