\r
@Override\r
public void run(){ \r
+ if(isDisposed())\r
+ return;\r
if(result.isVariable) {\r
unitSelector.setEnabled(true);\r
expressionController.setEnabled(true);\r
expressionController.setEnabled(false);\r
expressionComposite.setEnabled(false);\r
nameComposite.setEnabled(false);\r
- \r
+\r
unitSelector.clear(); // empty units\r
shortcutTabs.updateTables(variable);\r
expressionController.setExpressionTypes(null); \r
\r
@Override\r
public void run() {\r
- expressionComposite.replaceSelection(var);\r
- validateExpressionFields();\r
+ if(expressionComposite!= null && !expressionComposite.isDisposed()) {\r
+ expressionComposite.replaceSelection(var);\r
+ validateExpressionFields();\r
+ }\r
}\r
});\r
}\r