Commit 7023eb87 authored by Vincent Aravantinos's avatar Vincent Aravantinos
Browse files

RED

parent f19d3a51
......@@ -182,6 +182,7 @@ public class CodeEditorConfiguration extends SourceViewerConfiguration {
viewer.getDocument().get(currentWordRegion.getOffset(),
currentWordRegion.getLength());
// TODO(VA) You could store into a variable instead of calling twice
ArrayList<String> prop = getInputPortNames(getAssociatedComponent());
prop.addAll(getOutputPortNames(getAssociatedComponent()));
prop.addAll(getFunctions(editor.getEditedObject()));
......@@ -235,6 +236,7 @@ public class CodeEditorConfiguration extends SourceViewerConfiguration {
final IToken portToken = new Token(new TextAttribute(null, null, SWT.BOLD));
final IToken dataElementToken = new Token(new TextAttribute(DARK_BLUE, null, SWT.ITALIC));
// TODO(VA) You could store into a variable instead of calling twice
ArrayList<String> ports = getInputPortNames(getAssociatedComponent());
ports.addAll(getOutputPortNames(getAssociatedComponent()));
addWordsToRule(ports, portsRule, portToken);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment