Lines Matching refs:regions
44 The IStructuredDocument is organized in "regions", which are little pieces
48 a list of regions. Each region has a type, as well as text.
59 This will result in the following regions and sub-regions:
128 3- Iterating through regions
131 To iterate through all regions, we need to process the list of top-level regions and then
132 iterate over inner regions:
134 for (IStructuredDocumentRegion regions : sdoc.getStructuredDocumentRegions()) {
135 // process inner regions
136 for (int i = 0; i < regions.getNumberOfRegions(); i++) {
137 ITextRegion region = regions.getRegions().get(i);
139 String text = regions.getText(region);
143 Each "region collection" basically matches one XML tag, with sub-regions for all the tokens
148 Also note that each outer region has a type, but the inner regions also reuse a similar type.
152 Surprisingly, the inner regions do not have many access methods we can use on them, except their
164 methods, some of which return details on the inner regions:
176 Given a region collection, you can also browse regions either using a getRegions() list, or
178 list seems the most useful scenario. There's no actual iterator provided for inner regions.
180 There are a few other methods available in the regions classes. This was not an exhaustive list.