Catrobat/Catroid — pull request #569 by sebheid (2013-08-06 14:49:52+00:00)
Title: Display if a variable is local or global

Fix Issue #417

The Variable list now has 2 headers to distinguish between local and global variables.

- added fragment_formula_editor_variablelist_global_headline.xml and fragment_formula_editor_variablelist_local_headline.xml. These .xml files are included in fragment_formula_editor_variablelist_item.xml and used to display the headlines.

- added strings for headlines in strings.xml files in /values and /values-de

- changed the getView method of the UserVariableAdapter, so that headlines are displayed at the correct position

- added testVariableListHeadlines() in FormulaEditorUserVariableFragmentTest.java to test if headlines are correctly displayed

- added method createUserVariableFromVariableFragment in FormulaEditorUserVariableFragmentTest.java

- deleted method finishUserVariableCreationSafeButSlow, (-> createUserVariableFromVariableFragment is used to create variables)

- Refactored testmethods in FormulaEditorUserVariableFragmentTest

Tests: http://jenkins.catrob.at/view/Catroid/job/Catroid-Multi-Job-Custom-Branch/109/
http://jenkins.catrob.at/view/Catroid/job/Catroid-single-UI-emulator/93/
http://jenkins.catrob.at/view/Catroid/job/Catroid-single-UI-emulator/96/
http://jenkins.catrob.at/view/Catroid/job/Catroid-single-UI-emulator/97/