Search found 14 matches

by np18
Fri Jan 12, 2024 4:17 pm
Forum: SDK-API, Frameworks - Document Types
Topic: issue compiling actions java 8
Replies: 1
Views: 444

issue compiling actions java 8

Hi, I have a very strange issue I cannot figure out: I am developing oxygen actions in java and include these actions via classpath for oxygen 23. The actions are compiled on archlinux using java 1.8 (https://archlinux.org/packages/extra/x86_64/jdk8-openjdk/). I also specifically specify 1.8. in the...
by np18
Wed May 17, 2023 10:14 am
Forum: Other Issues
Topic: suroundInFragment method
Replies: 2
Views: 673

Re: suroundInFragment method

Dear Alex,
thanks, that works! I misunderstood the image, but now it makes perfect sense. The empty element is no problem because in this case, nothing will be inserted.
Thanks for the help and explanation!
by np18
Tue May 16, 2023 8:44 pm
Forum: Other Issues
Topic: suroundInFragment method
Replies: 2
Views: 673

suroundInFragment method

Hi, I have the following TEI XML structure (simplified) <list> <item><label someAtr="somevalue" someOtherAtr="othervalue" >some <g>m</g>ixed content</label></item> <item><label someAtr="somevalue" someOtherAtr="othervalue">some <g>m<unclear>ixed content</uncle...
by np18
Mon Jul 04, 2022 3:49 pm
Forum: SDK-API, Frameworks - Document Types
Topic: loading data from REST API fails in action
Replies: 7
Views: 1571

Re: loading data from REST API fails in action

Dear Radu,
excellent, I excluded the mentioned dependencies (and a couple of other ones that also caused an error) and now it works!
For the future, is there a way to find in advance which dependencies have to be packaged in the build and which will cause errors?
Many thanks and all the best!
by np18
Mon Jul 04, 2022 2:26 pm
Forum: SDK-API, Frameworks - Document Types
Topic: loading data from REST API fails in action
Replies: 7
Views: 1571

Re: loading data from REST API fails in action

First of, thanks a lot for taking you time to look at this, it is very much appreciated! So in the classpath I have currently one added the jar file that includes the classes needed for my action which is called 'SyncWitnesses'. The jar file itself is called 'bdd-actions.jar'. This jar file also inc...
by np18
Fri Jul 01, 2022 9:32 pm
Forum: SDK-API, Frameworks - Document Types
Topic: loading data from REST API fails in action
Replies: 7
Views: 1571

Re: loading data from REST API fails in action

Dear Radu, thanks for your reply! 1) I did add the jar file that contains my action (as well as dependencies) to the classpath. 2) The action was compiled using java 8, my Oxygenxml is using 15.0.1. However, switching compilation to java15 did not solve the issue. Also, the rest of the action works ...
by np18
Thu Jun 30, 2022 8:57 pm
Forum: SDK-API, Frameworks - Document Types
Topic: loading data from REST API fails in action
Replies: 7
Views: 1571

loading data from REST API fails in action

Hi, I try to write a custom action that allows me to load data into oxygen for further processing by accessing an xquery file on an existdb database using REST. Basically, the xquery returns an xml encoded list of information as tei:list/tei:items that is then displayed in a JDialog. I already used ...
by np18
Thu Feb 10, 2022 3:59 pm
Forum: Other Issues
Topic: validation error using xinclude in tei file
Replies: 2
Views: 819

Re: validation error using xinclude in tei file

Great, works like a charm! I have suspected an namespace issue, but for some reason did not try to put the namespace in the element to be included... :roll:

Thanks a lot!
by np18
Thu Feb 10, 2022 2:02 pm
Forum: Other Issues
Topic: validation error using xinclude in tei file
Replies: 2
Views: 819

validation error using xinclude in tei file

Hi, I have a tei file with a long <encodingDesc> structured like the following example: <?xml-model href="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng" schematypens="http://relaxng.org/ns/structure/1.0"?> <TEI xmlns="http://www.tei-c.org/ns/1.0"...
by np18
Thu Mar 18, 2021 5:47 pm
Forum: SDK-API, Frameworks - Document Types
Topic: how to implement selection plugin in author mode
Replies: 6
Views: 1989

Re: how to implement selection plugin in author mode

for some reason my previous post wasn't posted: I was able to get the key bindings working.

I had to add a toolbar menu for them to work. If you only have a popup menu entry, the key bindings only work when the context menu is opened.

Again thanks and all the best
by np18
Thu Mar 18, 2021 5:16 pm
Forum: SDK-API, Frameworks - Document Types
Topic: how to implement selection plugin in author mode
Replies: 6
Views: 1989

Re: how to implement selection plugin in author mode

Dear Alex,

I was able to make the key bindings work.
I only added the action into the popup menu, so the key bindings were only working when the context menu is opened. Now I also added a toolbar menu and they work!

Thanks again and all the best,
Michael
by np18
Thu Mar 18, 2021 12:06 pm
Forum: SDK-API, Frameworks - Document Types
Topic: how to implement selection plugin in author mode
Replies: 6
Views: 1989

Re: how to implement selection plugin in author mode

Dear Alex, again, thank you very much for your help: I was able to transform my plugin for textmode into an workspace access plugin that now works in text as well as author mode! Everything works as intended - with one exception, so sorry for my follow up question: I used to have a key binding for m...
by np18
Wed Mar 17, 2021 2:42 pm
Forum: SDK-API, Frameworks - Document Types
Topic: how to implement selection plugin in author mode
Replies: 6
Views: 1989

Re: how to implement selection plugin in author mode

Dear Alex,
thanks very much for your quick and helpful reply! I will try this during the next days and report when/if I am successful!
Best,
Michael
by np18
Wed Mar 17, 2021 9:59 am
Forum: SDK-API, Frameworks - Document Types
Topic: how to implement selection plugin in author mode
Replies: 6
Views: 1989

how to implement selection plugin in author mode

Hi, I have a problem with developing a plugin for author mode of oxygenxml editor and wonder if you might point me in the right direction. I made a small plugin for textmode that takes the current selection by getSelection()), does some string manipulation (deleting some XML if present) and then sen...