18 package com.generalrobotix.ui;
22 import org.eclipse.jface.action.Action;
23 import org.eclipse.jface.dialogs.MessageDialog;
24 import org.eclipse.swt.SWT;
25 import org.eclipse.swt.widgets.FileDialog;
26 import org.eclipse.osgi.util.NLS;
30 @SuppressWarnings(
"serial")
36 private Object value_ =
null;
40 protected String clipValue_ =
"";
42 protected static final String[] modeComboItem_ =
new String[] {
"Torque",
"HighGain" };
43 protected static final String[] jointTypeComboItem_ =
new String[] {
"fixed",
"rotate",
"free",
"slide" };
44 protected static final String[] methodComboItem_ =
new String[] {
"EULER",
"RUNGE_KUTTA" };
54 Action
item =
new Action(){
92 public void delete() {
94 manager_.removeItem(
this);
103 ext_ = (String)GrxBasePlugin.getField(
this.getClass(),
"FILE_EXTENSION",
"");
112 if (defaultFileDir_ ==
null)
113 defaultFileDir_ =
new File(manager_.getHomePath().getPath() + GrxBasePlugin.getField(this.getClass(),
"DEFAULT_DIR",
""));
114 return defaultFileDir_;
138 defaultFileDir_ =
new File(dir);
139 if (!defaultFileDir_.isDirectory())
140 defaultFileDir_ = manager_.getHomePath();
156 FileDialog openDialog =
new FileDialog(
null,SWT.SAVE);
157 String openFile = openDialog.open();
158 if( openFile !=
null )
159 return new File(openFile);
168 clipValue_ = clipVal;
static final String get(String key)
#define null
our own NULL pointer
png_infop png_charpp name
GrxBaseItem clone()
Override clone method.
RTC::ReturnCode_t ret(RTC::Local::ReturnCode_t r)
void paste(String clipVal)
paste object
void setDefaultDirectory(String dir)
File getDefaultDir()
get default directory
String getFileExtention()
get file extension
プラグイン管理クラス GrxUIの核になるクラス。プラグインのロード等の、初期化を実行する。 プラグインとそ...
def getText(self, nodes=None)
final String getName()
get name
GrxBaseItem(String name, GrxPluginManager manager)
constructor
void setFileExtension(String ext)