\r
// Dummies\r
//Composite range; \r
- Composite emptyComposite;\r
\r
@Override \r
public void createPartControl(Composite parent) {\r
};\r
getViewSite().getPage().addPartListener(focusLostListener);\r
\r
- GridLayoutFactory.fillDefaults().numColumns(5).margins(3, 3).applyTo(parent);\r
+ GridLayoutFactory.fillDefaults().numColumns(4).margins(3, 3).applyTo(parent);\r
\r
\r
\r
GridDataFactory.fillDefaults().span(1, 4).applyTo(shortcutTabs);\r
addVariableTableListeners();\r
\r
- // Right side of the view: Details, comments\r
- emptyComposite = new Composite(parent, SWT.NONE);\r
- GridDataFactory.fillDefaults().span(1,4).grab(true, true).applyTo(emptyComposite);\r
- GridLayoutFactory.fillDefaults().applyTo(emptyComposite);\r
-\r
// Below variable name: Equation\r
expressionComposite = new ExpressionComposite(parent, SWT.NONE);\r
GridDataFactory.fillDefaults().span(3, 1).grab(true, true).applyTo(expressionComposite);\r
| "true"\r
| LOOKAHEAD( name() "(" ) name() function_call_args()\r
| component_reference()\r
- // | "(" output_expression_list() ")"\r
+ | "(" output_expression_list() ")"\r
| "[" expression_list() ( ";" expression_list() )* "]"\r
//| "{" function_arguments() "}"\r
| "end"\r
<IDENT> "=" expression()\r
}\r
\r
+void output_expression_list() : {\r
+} {\r
+ ( expression() )? ( "," ( expression() )? )*\r
+}\r
+\r
+\r
void expression_list() : {\r
} {\r
expression() ( "," expression() )*\r
\r
public void write(Configuration conf) {\r
conf.update();\r
- b.append("model ").append(conf.name).append('\n');\r
+ b.append("model ").append(conf.name.replace(" ", "")).append('\n');\r
for(IElement element : conf.elements)\r
if(element instanceof Variable) {\r
IExpression expr = ((Variable)element).expression;\r
if (app != null) b.append(app);\r
}\r
}\r
- b.append("end ").append(conf.name).append(";\n");\r
+ b.append("end ").append(conf.name.replace(" ", "")).append(";\n");\r
\r
if(insertInterpolate)\r
b.append(\r