Get next valid position to insert a fragment
Posted: Fri Oct 24, 2014 3:28 pm
Hi,
we are using the Eclipse Oxygen Author in Version 15.2.
I am using the
method to insert a fragment. If the exception will be thrown, the method will not insert anything of course.
My question is: How I can get the next possible offset, where the fragment can be dropped?
It would be nice, when I can open the same dialog, which will be shown if the offset is not valid for this fragment.
Best regards
Denis
we are using the Eclipse Oxygen Author in Version 15.2.
I am using the
Code: Select all
try {
documentController.insertFragmentSchemaAware(offset, fragment);
} catch (AuthorOperationException e) {}
method to insert a fragment. If the exception will be thrown, the method will not insert anything of course.
My question is: How I can get the next possible offset, where the fragment can be dropped?
It would be nice, when I can open the same dialog, which will be shown if the offset is not valid for this fragment.
Best regards
Denis