/** @param name */ public ReturnVariablesPropertyPanel(String name, IDesignElement element) { super(name, element); info = (ReturnInformationProvider) ((PrimitiveElement) element).getInformationProvider(); exportedVars = new ArrayList<String>(info.getExports()); List<Variable> vars = element.getDesign().getVariablesFor(element); outer: for (Variable v : vars) { for (int i = 0; i < variables.size(); i++) { if (variables.get(i).getName().compareToIgnoreCase(v.getName()) > 0) { variables.add(i, v); continue outer; } } variables.add(v); } }
public void save() { info.setExports(exportedVars); }