Changeset View
Changeset View
Standalone View
Standalone View
autotests/folding/highlight.java.fold
- This file was added.
1 | <beginfold id='2'>/*</beginfold id='2'> highlighting test case for Java <endfold id='2'>*/</endfold id='2'> | ||||
---|---|---|---|---|---|
2 | | ||||
3 | // single line comment with ### TODO FIXME | ||||
4 | | ||||
5 | <beginfold id='2'>/*</beginfold id='2'> multiline comment with ### TODO FIXME <endfold id='2'>*/</endfold id='2'> | ||||
6 | | ||||
7 | <beginfold id='4'>/**</beginfold id='4'> Javadoc comment with ### TODO FIXME | ||||
8 | * @param foo bla bla ATTENTION | ||||
9 | * @return abc cde | ||||
10 | * @see javadoc.xml | ||||
11 | <endfold id='4'>*/</endfold id='4'> | ||||
12 | | ||||
13 | package org.kde.itinerary; | ||||
14 | | ||||
15 | import org.qtproject.qt5.android.bindings.QtActivity; | ||||
16 | import java.io.*; | ||||
17 | import java.util.*; | ||||
18 | | ||||
19 | public class Activity extends QtActivity | ||||
20 | <beginfold id='3'>{</beginfold id='3'> | ||||
21 | private static final String TAG = "org.kde.itinerary"; | ||||
22 | | ||||
23 | public void launchViewIntentFromUri(String uri) | ||||
24 | <beginfold id='3'>{</beginfold id='3'> | ||||
25 | Uri mapIntentUri = Uri.parse(uri); | ||||
26 | Intent mapIntent = new Intent(Intent.ACTION_VIEW, mapIntentUri); | ||||
27 | startActivity(mapIntent); | ||||
28 | <endfold id='3'>}</endfold id='3'> | ||||
29 | | ||||
30 | @Override | ||||
31 | protected String stuff() | ||||
32 | <beginfold id='3'>{</beginfold id='3'> | ||||
33 | while (true) <beginfold id='3'>{</beginfold id='3'> | ||||
34 | <endfold id='3'>}</endfold id='3'> | ||||
35 | int num = 1; | ||||
36 | num = 0x2; | ||||
37 | double f = .4e+49; | ||||
38 | <endfold id='3'>}</endfold id='3'> | ||||
39 | <endfold id='3'>}</endfold id='3'> |