Search found 142 matches

by Isabelle
Mon Sep 20, 2021 8:02 pm
Forum: SDK-API, Frameworks - Document Types
Topic: How to convert line number and column number into caretPosition
Replies: 1
Views: 779

How to convert line number and column number into caretPosition

Hello, I work with the version 22 of Oxygen SDK. I want to use WSXMLTextEditorPage wsxmlTextEditorPage = (WSXMLTextEditorPage) editorAccess.getCurrentPage(); wsxmlTextEditorPage.setCaretPosition(position); But I only have a column and a line number. How can i convert this two informations to a valid...
by Isabelle
Fri Aug 20, 2021 1:27 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Need more info for oxy:allows-child-element
Replies: 7
Views: 1828

Re: Need more info for oxy:allows-child-element

Hello Alex, Thanks for the workaround, it works fine for the right - click action (field "popupMenuDescriptor" in our framework). We also have added this action in the contextual menu (field "contextualItems" in our framework). How can I add a listener on contextualItems like for...
by Isabelle
Wed Aug 18, 2021 7:03 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Need more info for oxy:allows-child-element
Replies: 7
Views: 1828

Re: Need more info for oxy:allows-child-element

Hi Alex, We use really complex xsd, and just for the S1000D norme, there are over 1500 elements which have this attribute. So use an xpath like self::*:child is really not possible for us. We need this test in the activation Xpath. The operation is implemented by us but implements AuthorOperation. F...
by Isabelle
Tue Aug 17, 2021 9:52 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Need more info for oxy:allows-child-element
Replies: 7
Views: 1828

Re: Need more info for oxy:allows-child-element

Hello Alex, Thanks for the information, I better understand this helper know. But it does not fit my need. In fact, I need an helper which telling me if the attribute is available or not on the current element. In the example bellow, I have to allow an action on every element which can have the rfuR...
by Isabelle
Fri Jul 23, 2021 9:45 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Need more info for oxy:allows-child-element
Replies: 7
Views: 1828

Need more info for oxy:allows-child-element

Hi, I need more information for oxy:allows-child-element . In your documentation you said : The oxy:allows-child-element() function allows you to check whether or not an element that matches the arguments of the function is valid as a child of the element at the current cursor position, according to...
by Isabelle
Wed Jun 23, 2021 12:55 pm
Forum: SDK-API, Frameworks - Document Types
Topic: getParent() result on root node
Replies: 1
Views: 761

getParent() result on root node

Hello, I work with the version 22 of Oxygen SDK. We have noticed this in the javadoc : getParent AuthorNode getParent() Returns: The AuthorNode representing the parent of this element, or null if this is the root element. But we get the root element like this : AuthorNode rootNode = authorAccess.get...
by Isabelle
Fri Jun 18, 2021 6:41 pm
Forum: SDK-API, Frameworks - Document Types
Topic: How to find offset from line and column number
Replies: 2
Views: 962

Re: How to find offset from line and column number

Hi Adrian,

I will try and let you know.

Thank you.
Regards,
Isabelle
by Isabelle
Thu Jun 17, 2021 9:55 pm
Forum: SDK-API, Frameworks - Document Types
Topic: How to find offset from line and column number
Replies: 2
Views: 962

How to find offset from line and column number

Hello, I work with the version 22 of Oxygen SDK and I wonder how can I retrieve the offset from a line number and column number. I have found the method getOffsetOfLineStart from the class WSTextEditorPage but the offset return is out of the document. Exemple with the line 80, I get an offset of 335...
by Isabelle
Wed Feb 24, 2021 12:07 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Issue with auto completion function
Replies: 2
Views: 1106

Re: Issue with auto completion function

Hi Radu,

I have just send you an email with our cc_config.xml file.
I hope it will help you to reproduce our problem.
Thanks.

Regards,
Isabelle
by Isabelle
Mon Feb 22, 2021 11:05 am
Forum: SDK-API, Frameworks - Document Types
Topic: Issue with auto completion function
Replies: 2
Views: 1106

Issue with auto completion function

In Oxygen XML Editor 21.1, when I use the widget Elements I have 2 different behavior with Text view and Author view. I open this file <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE dmodule[]> <dmodule xmlns:dc="http://www.purl.org/dc/elements/1.1/" xmlns:rdf="ht...
by Isabelle
Mon Feb 08, 2021 2:13 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Issue on copy paste url
Replies: 2
Views: 1195

Re: Issue on copy paste url

Hello Radu,

Thanks for your quick feedback.
You are right, we have implemented AuthorExternalObjectInsertionHandler API in our framework.
We will check what is wrong on our side.

I have tried the global property and it works fine.
Thanks.

Regards,
Isabelle Ousset
by Isabelle
Fri Feb 05, 2021 8:45 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Issue on copy paste url
Replies: 2
Views: 1195

Issue on copy paste url

Hello, We face an issue with copy / paste an url in Oxygen. If the text start with http:// or ftp:// , then the copy / paste does not work. It is the same, even if the text come from an other software (Notepad, ...) or directly from a file open with our application. We face this issue with Oxygen sd...
by Isabelle
Tue Jun 30, 2020 1:16 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Format value in oxy_textfield
Replies: 3
Views: 1722

Re: Format value in oxy_textfield

Hello Radu,

Thank you for your answer.
I understand, and I was curious about the rendererClassName and swingEditorClassName.
Found here https://www.oxygenxml.com/doc/versions/ ... trols.html.

Can they solve my issue or not ?

Regards,
Isabelle
by Isabelle
Mon Jun 29, 2020 3:48 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Format value in oxy_textfield
Replies: 3
Views: 1722

Format value in oxy_textfield

Hello, We work with the 22.0 version of Oxygen and I would like to know if it is possible to format value of an oxy_textfield. I tried this : oxy_textfield(edit, "@oidate", values, oxy_xpath("concat(substring(@oidate, 7, 2), '-', substring(@oidate, 5, 2), '-',substring(@oidate, 1, 4))...
by Isabelle
Wed May 20, 2020 9:58 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Problem init AuthorComponentFactory in version 22.0.0.0
Replies: 4
Views: 1928

Problem init AuthorComponentFactory in version 22.0.0.0

Hello, We have installed the version 22.0.0.0 of oxygen sdk and we face an issue when initialise AuthorComponentFactory. Here is a peace of our code : final AuthorComponentFactory factory = AuthorComponentFactory.getInstance(); final URL[] frameworkZips = FrameworksLoader.loadFrameworksUrls(); final...
by Isabelle
Tue May 12, 2020 10:48 am
Forum: SDK-API, Frameworks - Document Types
Topic: new URIContent constructor in Oxygen 22.0.0.0
Replies: 2
Views: 1385

Re: new URIContent constructor in Oxygen 22.0.0.0

Hi Radu,

Thank you for your answer.
You were right we use it in our own Style Filter class.
We will let null as last parameter.

Regards,
Isabelle
by Isabelle
Tue May 12, 2020 12:21 am
Forum: SDK-API, Frameworks - Document Types
Topic: new URIContent constructor in Oxygen 22.0.0.0
Replies: 2
Views: 1385

new URIContent constructor in Oxygen 22.0.0.0

Hello, It seems that the constructor of URIContent in new Oxygen version has been changed. Before we had 2 parameters : the file url (in string) and the file name. Now there is a third parameter and I have not find any doc to explain what it is for. For now, I put null and it seems to work fine, but...
by Isabelle
Mon Apr 27, 2020 12:28 pm
Forum: SDK-API, Frameworks - Document Types
Topic: JNA version
Replies: 15
Views: 4523

Re: JNA version

Hello Radu, Sorry for the late of my response, but before to report you, I want to make deep test. I have tested to exclude your version of jna via maven. <dependency> <groupId>com.oxygenxml</groupId> <artifactId>oxygen-sdk</artifactId> <version>${oxygen.version}</version> <exclusions> <exclusion> <...
by Isabelle
Wed Apr 22, 2020 10:51 am
Forum: SDK-API, Frameworks - Document Types
Topic: JNA version
Replies: 15
Views: 4523

Re: JNA version

Hi Radu, The last test I have made was to exclude jna-plateform from oxygen-sdk via pom maven like this : <dependency> <groupId>com.oxygenxml</groupId> <artifactId>oxygen-sdk</artifactId> <version>${oxygen.version}</version> <exclusions> <exclusion> <groupId>net.java.dev.jna</groupId> <artifactId>jn...
by Isabelle
Tue Apr 21, 2020 7:38 pm
Forum: SDK-API, Frameworks - Document Types
Topic: JNA version
Replies: 15
Views: 4523

JNA version

Hello, I need to use JNA 5.3.1 in our application, but we have conflict with your patched version oxygen-patched-jna-21.1.0.2.jar:4.1.0 . Moreover it seems there are incompatibilities between version 4.1.0 and 5.x of JNA : https://github.com/java-native-access/jna/blob/master/CHANGES.md#breaking-cha...
by Isabelle
Tue Apr 21, 2020 10:40 am
Forum: SDK-API, Frameworks - Document Types
Topic: Oxygen version in Manifest
Replies: 2
Views: 1327

Re: Oxygen version in Manifest

Hello Radu,

Thank you for your answer.
We did not see this method.
It will be enough for our need.
Thanks.

Regards,
Isabelle
by Isabelle
Mon Apr 20, 2020 7:40 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Oxygen version in Manifest
Replies: 2
Views: 1327

Oxygen version in Manifest

Hello, We need to get the oxygen version in java and we thought using this PluginWorkspace.class.getPackage().getImplementationVersion() But we discover that all Manifest file in oxygen jar (current version : 21.1.0.2) don't have the properties implementation-version Is it normal ? Why Manifest file...
by Isabelle
Thu Nov 21, 2019 1:43 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Retrieve the insert position in a text
Replies: 2
Views: 1289

Re: Retrieve the insert position in a text

Hello Radu,

It is exactly what I am looking for.
Thanks a lot.

Regards,
Isabelle
by Isabelle
Wed Nov 20, 2019 2:05 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Retrieve the insert position in a text
Replies: 2
Views: 1289

Retrieve the insert position in a text

Hello everyone, I am using the Oxygen SDK 21.1.0.2 and I wondered if it is possible to retrieve the exact insert position in a text. Currently I have overridden the method insertText in our own DocumentFilter class. But I only manage to use the offset attribut to get the current node. And I don't ma...
by Isabelle
Tue Sep 24, 2019 1:41 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Configuring Proposed Values in the Context that the Content Completion was Invoked - SAXON
Replies: 28
Views: 10122

Re: Configuring Proposed Values in the Context that the Content Completion was Invoked - SAXON

Hi Everyone, I have just send to support@oxygenxml.com all relevant files in order to have your help to solve our problem. I can't send you our application, sorry, but I tried to send you all you need. Here is a test case : <quantity quantityType="qty05"> <quantityGroup quantityGroupType=&...
by Isabelle
Fri Aug 09, 2019 4:18 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Configuring Proposed Values in the Context that the Content Completion was Invoked - SAXON
Replies: 28
Views: 10122

Re: Configuring Proposed Values in the Context that the Content Completion was Invoked - SAXON

Hello Alex,

You understand the situation correctly.
It never process the unsaved snapshot from the editor.
I don't know if I can send to you the plugin like that.

I will ask to my colleague, and let you know as soon as possible.

Regards,
Isabelle
by Isabelle
Fri Aug 09, 2019 4:03 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Configuring Proposed Values in the Context that the Content Completion was Invoked - SAXON
Replies: 28
Views: 10122

Re: Configuring Proposed Values in the Context that the Content Completion was Invoked - SAXON

Hello Alex, Thanks for your answer. I tried to implement it this way: System.setProperty("javax.xml.transform.TransformerFactory", "net.sf.saxon.TransformerFactoryImpl"); Source quomXslt = new StreamSource(ccSpecificCCValueConfigXslFile); URIResolver uriResolver = PluginWorkspace...
by Isabelle
Thu Aug 08, 2019 8:38 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Configuring Proposed Values in the Context that the Content Completion was Invoked - SAXON
Replies: 28
Views: 10122

Re: Configuring Proposed Values in the Context that the Content Completion was Invoked - SAXON

Hello Alex,

As I said earlier, it works fine, but only on saved document, not on in worked / unsaved document.

Each time I asked for content completion, it used previous saved value or don't find new values.

Do you have any workaround for that ?

Regards,
Isabelle