AuthorEditorAccess' select
Posted: Mon Jan 18, 2010 8:27 pm
Hello,
I have a question regarding the exact behaviour of the AuthorEditorAccess' select function. In the documentation of the api i can only find this:
With Best Regards
Vanchev
P.S. I am using <oXygen/> as an Eclipse plugin. The OS is Windows and the version is 10.3.
I have a question regarding the exact behaviour of the AuthorEditorAccess' select function. In the documentation of the api i can only find this:
For the purposes of my programme i want to place some tags around some untagged elements (well at least not with the new tags). There are many such tags that are to be placed and it is difficult to place everything automatically, so a supervision from the user is required. This being said i want to jump in the text right to the next occurrence of some word(or words), that i are possible candidates for tagging. With each jump the selection should change and a question box should ask if the user really wants this element tagged with a current tag. I think this should be done with the select function, so i am using it. However i find that the function does not use the actual position of the element in the text, but rather uses some kind of alters numbering. My question is exactly how this numbering works. I have discovered that some whole tags are being counted as 1 position and some not (in my observation the first 2 tags are being counted for 5x positions and all latter tags for just one - since i was not thorough with my analysis with the text i don't know if this is actually so). I would appreciate some heads up.select
void select(int startOffset,
int endOffset)
Select the interval between start and end offset.
Parameters:
startOffset - Inclusive start offset
endOffset - Exclusive end offset
With Best Regards
Vanchev
P.S. I am using <oXygen/> as an Eclipse plugin. The OS is Windows and the version is 10.3.