functions.setText("Functions"); \r
\r
functionTable = new Table (tabFolder, SWT.SINGLE | SWT.BORDER | SWT.FULL_SELECTION | SWT.NO_FOCUS | SWT.HIDE_SELECTION);\r
- TableItem item = new TableItem(functionTable, SWT.NONE);\r
+ TableItem item;\r
\r
//Finding functions\r
ArrayList<Function> functionList = Function.getAllFunctions();\r
Collections.sort(functionList);\r
\r
for(Function function : functionList){\r
+ item = new TableItem(functionTable, SWT.NONE);\r
item.setText(function.getName() + "()");\r
item.setData(function.getName() + "(" + function.getParameterList() + ")");\r
item.setImage(Function.getImage(functionTable.getDisplay(), function));\r
- item = new TableItem(functionTable, SWT.NONE);\r
}\r
\r
functions.setControl(functionTable);\r