[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [mylyn-integrators] StoryMarkup
|
Zitat von David Green <dgreen99@xxxxxxxxx>:
Thanks for your fast responses! I really appreciate it!
I have a question about offset and length. Is that the place where the user
made the last change? Can I ignore those values? If so, how can I replace
the existing warnings outside of this range?
Offset and length indicate the region to be validated. These values do not
correspond to where the user made the last change. Those values should be
respected: Generally the validator should only attempt to find problems in
the specified region.
In practice it's ["markup"] the whole source text, however that
is not guaranteed by the API.
In that case, I need a way to tell the calling code that I need to see
a much larger portion of the text than other validators. Any ideas how
to implement that?
Also, changes within the region can influence validation results
outside the region. I think this needs an additional API which always
gets the whole document and the range and a ValidationRule with a
state. Part of the state is the range on which the rule actually
worked on.
Example: My horizon is 20 words (so I don't count duplicates which
have 20 words between them). For this to work with English text, I
need to look back about 200 characters (20 per word should be more
than enough).
For a "don't always start a paragraph with the same word", I need to
be able to see back 2-3 blocks.
So while your reconciler wants me to work on 500,30, I'll work on
300,430 instead and all problems in this area must be updated.
On a related issue: When I look for patterns with more than a single
character, then boundary selection of the reconciler becomes an issue.
How do you make sure I can always see all of my pattern? Is there a
rule how the reconciler comes up with ranges? Is it always a full
line? One block?
findProblem() is called by the superclass. Yes, you can.
If you haven't already feel free to install the Mylyn WikiText SDK, which
includes sources. It'll make it a lot easier if you can just browse through
the source code.
I do have the SDK but I haven't imported everything into my project,
yet. And I don't know my way around the part that I have :) Thanks for
bearing with me.
Best Regards,
--
Aaron "Optimizer" Digulla a.k.a. Philmann Dark
"It's not the universe that's limited, it's our imagination.
Follow me and I'll show you something beyond the limits."
http://www.pdark.de/ http://blog.pdark.de/