Search found 5 matches

by feherbbj
Mon Jan 03, 2022 4:21 pm
Forum: SDK-API, Frameworks - Document Types
Topic: AddHighlight with style
Replies: 3
Views: 1037

Re: AddHighlight with style

My internal document representation contains key-value pairs, where the key is the XPath to the node and the value is the node's content. When the user interacts with my program I try to get the AuthorNode by the XPath, and get it start offset by: AuthorNode node = ...; // get node by current select...
by feherbbj
Tue Dec 21, 2021 4:46 pm
Forum: SDK-API, Frameworks - Document Types
Topic: AddHighlight with style
Replies: 3
Views: 1037

AddHighlight with style

Hi, A Plugin has been developed which marks the content of the XML based on a terminology termbase and some rule. Non-persistent highlighter has been used to mark the content. At first glance it worked pretty well, but after I tried several files I found that if the file reference any styles, the ma...
by feherbbj
Tue Mar 10, 2020 7:05 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Undo for text edit
Replies: 4
Views: 1834

Re: Undo for text edit

Hi, Regarding the first part of the issue, you were right the problem was that the model is not thread safe. With SwingUtilities it worked fine. Regarding the second part, thank you for this information, it was really helpful! Thanks again for your help and for the quick reply Bets regards, Balazs
by feherbbj
Tue Mar 10, 2020 12:51 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Undo for text edit
Replies: 4
Views: 1834

Re: Undo for text edit

I cannot find anything wrong with your code. So the undo action does not appear enabled after the code is executed, right? In what context is your code called? On what API callback method? Is it called inside a custom AuthorOperation or on some kind of listener? Yes, the undo action does not become...
by feherbbj
Mon Mar 09, 2020 5:37 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Undo for text edit
Replies: 4
Views: 1834

Undo for text edit

Dear Oxygen, I am working on plugin for Oxygen Editor, which based on some user interaction it replaces text in a document. I done the text replacement logic based on some thread here on your forum ( i am working in author mode), so it looks something like this: AuthorDocumentController docControlle...