\r
@Override\r
public void widgetSelected(SelectionEvent e) {\r
+ getExpressionViewFactor().updateData(data);\r
displayExpressionView(variable, ExpressionType.valueOf(typeCombo.getItem(typeCombo.getSelectionIndex())), false);\r
-\r
}\r
\r
@Override\r
expression.setSelection(lastSelection.x + var.length());\r
}\r
}\r
+\r
+ @Override\r
+ public void updateData(Map<String, Object> data) {\r
+ if(this.expression != null && this.expression.getText() != null)\r
+ data.put("equation", this.expression.getText());\r
+ }\r
}\r
} \r
}\r
\r
+ @Override\r
+ public void updateData(Map<String, Object> data) {\r
+ if(this.expression != null && this.expression.getText() != null)\r
+ data.put("equation", this.expression.getText()); \r
+ }\r
+\r
}\r
\r
}\r
\r
+ @Override\r
+ public void updateData(Map<String, Object> data) {\r
+ // TODO Auto-generated method stub\r
+ \r
+ }\r
+\r
}\r
*/\r
void replaceSelection(String var);\r
\r
+ /**\r
+ * Updates data from text inputs to the data map\r
+ * @param data\r
+ */\r
+ void updateData(Map<String, Object> data);\r
}\r
\r
}\r
\r
+ @Override\r
+ public void updateData(Map<String, Object> data) {\r
+ // TODO Auto-generated method stub\r
+ \r
+ }\r
+\r
}\r
} \r
}\r
\r
+ @Override\r
+ public void updateData(Map<String, Object> data) {\r
+ if(this.expression != null && this.expression.getText() != null)\r
+ data.put("equation", this.expression.getText()); \r
+ }\r
+\r
}\r
\r
\r
}\r
\r
-\r
+ @Override\r
+ public void updateData(Map<String, Object> data) {\r
+ if(this.expression != null && this.expression.getText() != null)\r
+ data.put("initialEquation", this.expression.getText()); \r
+ if(this.integral != null && this.integral.getText() != null)\r
+ data.put("integral", this.integral.getText());\r
+ }\r
}\r
lastSelectedText.setSelection(lastSelection.x + var.length());\r
}\r
}\r
+\r
+ @Override\r
+ public void updateData(Map<String, Object> data) {\r
+ if(this.expression != null && this.expression.getText() != null)\r
+ data.put("equation", this.expression.getText()); \r
+ if(this.lookup != null && this.lookup.getText() != null)\r
+ data.put("lookup", this.lookup.getText()); \r
+ }\r
}
\ No newline at end of file