public void mouseDoubleClick(MouseEvent e) {\r
TableItem item = table.getItem(new Point(e.x, e.y));\r
if(item != null) {\r
- final String var = item.getText();\r
+ final String var = (String)item.getData();\r
table.getDisplay().asyncExec(new Runnable() {\r
\r
@Override\r
functions.setText("Functions"); \r
functionTable = new Table (tabFolder, SWT.SINGLE | SWT.BORDER | SWT.FULL_SELECTION);\r
TableItem item = new TableItem(functionTable, SWT.NONE);\r
- item.setText("min({ })");\r
+ item.setText("min()");\r
+ item.setData("min({ })");\r
item = new TableItem(functionTable, SWT.NONE);\r
- item.setText("max({ })");\r
+ item.setText("max()");\r
+ item.setData("max({ })");\r
item = new TableItem(functionTable, SWT.NONE);\r
- item.setText("abs({ })");\r
+ item.setText("abs()");\r
+ item.setData("abs({ })");\r
item = new TableItem(functionTable, SWT.NONE);\r
item.setText("if then else");\r
+ item.setData("if then else");\r
functions.setControl(functionTable);\r
\r
this.layout();\r
for(String d : dependencies) {\r
item = new TableItem(variableTable, SWT.NONE);\r
item.setText(d);\r
+ item.setData(d);\r
}\r
return dependencies;\r
}\r