From support at oxygenxml.com Mon Feb 3 05:09:17 2014 From: support at oxygenxml.com (Oxygen XML Editor Support) Date: Mon, 03 Feb 2014 13:09:17 +0200 Subject: [oXygen-sdk] [Ann] New maintenance build available for oXygen 15.2 (2014013017) Message-ID: <52EF78DD.4050508@oxygenxml.com> Dear oXygen users, We announce the release of a new maintenance build (2014013017) for oXygen 15.2 (XML Editor, XML Developer, XML Author). The build number can be verified in the Help -> About dialog box from the application (next to the version number). You can download the new installation kits from our web site: http://www.oxygenxml.com/download.html Here you can find the complete list of bug-fixes: http://www.oxygenxml.com/build_history.html#2014013017 You can follow our oXygen release/build RSS feed here: http://www.oxygenxml.com/rssBuildID.xml Please let us know if you encounter any problems with this new build. Regards, Adrian -- Adrian Buza oXygen XML Editor and Author Support Tel: +1-650-352-1250 ext.202 Fax: +40-251-461482 support at oxygenxml.com http://www.oxygenxml.com From jbevers at sdl.com Thu Feb 6 08:07:08 2014 From: jbevers at sdl.com (Jan Bevers) Date: Thu, 6 Feb 2014 14:07:08 +0000 Subject: [oXygen-sdk] Problem with opening dita maps Message-ID: Hi I have a couple of questions related to opening DITA maps in combination with a custom protocol handler. In our system Dita maps are stored with an ".xml" extension on the file system. No difference with regular topics. Some stuff I had to do: * I had to change a setting in the preferences File Types => DITA maps file patterns = "*.ditamap, *.bookmap , .xml" * Next thing I did was adding following override in my CustomProtocolHandler @Override public String getContentType() { // Set ditamap mimetype for maps // This changes oXygen behavior so it shows the question to open in map manager or editor WorkItem workItem = AuthoringBridge.getWorkArea().getWorkItemByPath(url); if (workItem.getObjectType().equals(SelectableObjectTypes.Map)) { return "application/ditamap"; } return super.getContentType(); } Some questions/remarks I have: * When I did an "Open map in editor" from the map manager panel I got a popup asking to open in the map manager or editor. Would expect it to open it in the editor immediately. * Is it possible to set the "DITA maps file patterns" through code? Otherwise all users have to do this manually. Thanks in advance. Regards Jan Bevers | Developer | SDL | Content Management Technologies Division | +32 (0)15 400 970 | jbevers at sdl.com [image001]

www.sdl.com


SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us.
SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK.
This message has been scanned for malware by Websense. www.websense.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.jpg Type: image/jpeg Size: 5562 bytes Desc: image003.jpg URL: From support at oxygenxml.com Fri Feb 7 00:48:35 2014 From: support at oxygenxml.com (Oxygen XML Editor Support) Date: Fri, 07 Feb 2014 08:48:35 +0200 Subject: [oXygen-sdk] Problem with opening dita maps In-Reply-To: References: Message-ID: <52F481C3.5030509@oxygenxml.com> Hi Jan, If you are using Oxygen 15.2 just overriding the "URLStreamHandler.getContentType()" should be enough. Also in 15.2 you have the new API method: > ro.sync.exml.workspace.api.Workspace.open(URL url, String imposedPage, String imposedContentType) So you can open an URL resource by identifying it as a DITA Map by calling it something like: > Workspace.open(url, null, "application/ditamap"); About your specific questions: > · When I did an “Open map in editor” from the map manager panel I got a popup asking to open in the map manager or editor. Would expect it to open it in the editor immediately. This happens because you added the "xml" extensions to the list of identified DITA Map extensions. > · Is it possible to set the “DITA maps file patterns” through code? Otherwise all users have to do this manually. It is possible but I would advise against it because of the side effect you observed above. We have API: > ro.sync.exml.workspace.api.PluginWorkspace.setGlobalObjectProperty(String, Object) which could be used early when the workspace access plugin is activated to force the option like: > PluginWorkspace.setGlobalObjectProperty("dita.map.file.patterns", "*.ditamap, *.bookmap, *.xml") Regards, Radu Radu Coravu XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 2/6/2014 4:07 PM, Jan Bevers wrote: > Hi > > I have a couple of questions related to opening DITA maps in combination > with a custom protocol handler. > > In our system Dita maps are stored with an “.xml” extension on the file > system. No difference with regular topics. > > Some stuff I had to do: > > ·I had to change a setting in the preferences > File Types => DITA maps file patterns = “*.ditamap, *.bookmap , .xml” > > ·Next thing I did was adding following override in my CustomProtocolHandler > > @Override > > public String getContentType() { > > // Set ditamap mimetype for maps > > // This changes oXygen behavior so it shows the > question to open in map manager or editor > > WorkItem workItem = > AuthoringBridge.getWorkArea().getWorkItemByPath(url); > > if > (workItem.getObjectType().equals(SelectableObjectTypes.Map)) { > > return "application/ditamap"; > > } > > return super.getContentType(); > > } > > Some questions/remarks I have: > > ·When I did an “Open map in editor” from the map manager panel I got a > popup asking to open in the map manager or editor. Would expect it to > open it in the editor immediately. > > ·Is it possible to set the “DITA maps file patterns” through code? > Otherwise all users have to do this manually. > > Thanks in advance. > > Regards > > *Jan Bevers |* Developer *|*SDL *| *Content Management Technologies > Division *| *+32 (0)15 400 970*|* jbevers at sdl.com > image001 > > > > www.sdl.com > > > *SDL PLC confidential, all rights reserved.* If you are not the intended > recipient of this mail SDL requests and requires that you delete it > without acting upon or copying any of its contents, and we further > request that you advise us. > SDL PLC is a public limited company registered in England and Wales. > Registered number: 02675207. > Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire > SL6 7DY, UK. > > This message has been scanned for malware by Websense. www.websense.com > > > > > _______________________________________________ > oXygen-sdk mailing list > oXygen-sdk at oxygenxml.com > http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk > From jbevers at sdl.com Mon Feb 10 07:54:06 2014 From: jbevers at sdl.com (Jan Bevers) Date: Mon, 10 Feb 2014 13:54:06 +0000 Subject: [oXygen-sdk] Behavior of WSEditorChangeListener.editorActivated in 15.2 Message-ID: Hi I noticed in my integration that since 15.2 I get unexpected calls on the WSEditorChangeListener.editorActivated method. In my plugin I create an WSEditorChangeListener for the map manager and the editor view on initialization. So each panel/view has its own listener. Since 15.2 I noticed that the editorActivated was called on both listeners. Didn't really matter if a document was opened in the map manager or editor view. In my case I was only expecting it to be called within the listener of the editor view. For example when you open a document like "paint.dita" in the editor view, I can see the editorActivated being called for both the map manager and the editor. Both have the url of that file as an editorLocation parameter. I can get round this issue by getting the WSEditor instance and check if it is null. Kind regards Jan Bevers | Developer | SDL | Content Management Technologies Division | +32 (0)15 400 970 | jbevers at sdl.com [image001]

www.sdl.com


SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us.
SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK.
This message has been scanned for malware by Websense. www.websense.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.jpg Type: image/jpeg Size: 5562 bytes Desc: image003.jpg URL: From support at oxygenxml.com Mon Feb 10 09:20:13 2014 From: support at oxygenxml.com (Oxygen XML Editor Support) Date: Mon, 10 Feb 2014 17:20:13 +0200 Subject: [oXygen-sdk] Behavior of WSEditorChangeListener.editorActivated in 15.2 In-Reply-To: References: Message-ID: <52F8EE2D.5030903@oxygenxml.com> Hi Jan, I reproduced the issue and I'll also try to push a fix for it on the Oxygen 15.2 code branch in order to have the fix in the next Oxygen 15.2 minor bug fix release kit which will be announced here: http://www.oxygenxml.com/rssBuildID.xml Just out of curiosity, why exactly are you using the editorActivated callbacks instead of the "editorSelected" one? The activated callback is received more often, when focus is moved inside the current editor for example. Regards, Radu Radu Coravu XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 2/10/2014 3:54 PM, Jan Bevers wrote: > Hi > > I noticed in my integration that since 15.2 I get unexpected calls on > the WSEditorChangeListener.editorActivated method. > > In my plugin I create an WSEditorChangeListener for the map manager and > the editor view on initialization. So each panel/view has its own listener. > > Since 15.2 I noticed that the editorActivated was called on both > listeners. Didn’t really matter if a document was opened in the map > manager or editor view. In my case I was only expecting it to be called > within the listener of the editor view. > > For example when you open a document like “paint.dita” in the editor > view, I can see the editorActivated being called for both the map > manager and the editor. Both have the url of that file as an > editorLocation parameter. > > I can get round this issue by getting the WSEditor instance and check if > it is null. > > Kind regards > > *Jan Bevers |* Developer *|*SDL *| *Content Management Technologies > Division *| *+32 (0)15 400 970*|* jbevers at sdl.com > image001 > > > > www.sdl.com > > > *SDL PLC confidential, all rights reserved.* If you are not the intended > recipient of this mail SDL requests and requires that you delete it > without acting upon or copying any of its contents, and we further > request that you advise us. > SDL PLC is a public limited company registered in England and Wales. > Registered number: 02675207. > Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire > SL6 7DY, UK. > > This message has been scanned for malware by Websense. www.websense.com > > > > > _______________________________________________ > oXygen-sdk mailing list > oXygen-sdk at oxygenxml.com > http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk > From elefever at sdl.com Tue Feb 11 03:21:37 2014 From: elefever at sdl.com (Erwin Lefever) Date: Tue, 11 Feb 2014 09:21:37 +0000 Subject: [oXygen-sdk] Behavior of Edit Attributes in Oxygen 15.2 Message-ID: Hi, We noticed that the Edit Attributes screen in Oxygen 15.2 does not show the [cid:image001.png at 01CF2711.725E3E60] "open icon" anymore for every attribute as it did in 14.1 (See screenshots). We see the "open icon" appearing next to the "conref" attribute in 15.2, but we would also like to have it available for e.g. the "data" attribute (on the "object" element) and some of our custom attributes (e.g. ishcondition) Is this something we can now support/implement programmatically? Kind regards, Erwin Erwin Lefever | Developer | SDL Content Management Technologies Division | +32 (0)15 400 970 | elefever at sdl.com [Description: image001] This message has been scanned for malware by Websense. www.websense.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 694 bytes Desc: image001.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.jpg Type: image/jpeg Size: 5556 bytes Desc: image003.jpg URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: oxygen14.1_editattributes.png Type: image/png Size: 24773 bytes Desc: oxygen14.1_editattributes.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: oxygen14.1_editattributes_ishcondition.png Type: image/png Size: 24506 bytes Desc: oxygen14.1_editattributes_ishcondition.png URL: -------------- next part --------------

www.sdl.com


SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us.
SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK.
From support at oxygenxml.com Tue Feb 11 04:53:27 2014 From: support at oxygenxml.com (Oxygen XML Editor Support) Date: Tue, 11 Feb 2014 12:53:27 +0200 Subject: [oXygen-sdk] Behavior of Edit Attributes in Oxygen 15.2 In-Reply-To: References: Message-ID: <52FA0127.3000001@oxygenxml.com> Hi Erwin, I understand, indeed this behavior was changed in Oxygen 15.2. Right now the decision whether an attribute is of URI-type (and thus should have a "Browse" button available for its value) is taken by reading an XML configuration file located in the main Oxygen JAR library. I will add an improvement suggestion on our issues list to allow providing API to control this from the document type configuration side because it makes sense. In the meantime you can email us directly (support at oxygenxml.com) and tell us what exact attributes (name, namespace of attribute, name and namespace of element which contains it) should be treated as an URI and maybe we can push a fix for this in the next Oxygen 15.2 minor bug fix release. Regards, Radu Radu Coravu XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 2/11/2014 11:21 AM, Erwin Lefever wrote: > Hi, > > We noticed that the Edit Attributes screen in Oxygen 15.2 does not show > the ”open icon” anymore for every attribute as it did in 14.1 (See > screenshots). > > We see the “open icon” appearing next to the “conref” attribute in 15.2, > but we would also like to have it available for e.g. the “data” > attribute (on the “object” element) and some of our custom attributes > (e.g. ishcondition) > > Is this something we can now support/implement programmatically? > > Kind regards, > > Erwin > > *Erwin Lefever |* Developer *|*SDL Content Management Technologies > Division *| *+32 (0)15 400 970*|* elefever at sdl.com > Description: image001 > > > > This message has been scanned for malware by Websense. www.websense.com > > > > > > > > > >

www.sdl.com >


> > > > SDL PLC confidential, all rights reserved. > > If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, > and we further request that you advise us.
> SDL PLC is a public limited company registered in England and Wales. > Registered number: 02675207.
> Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. >
> > > > _______________________________________________ > oXygen-sdk mailing list > oXygen-sdk at oxygenxml.com > http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk > From jbevers at sdl.com Tue Feb 11 10:07:33 2014 From: jbevers at sdl.com (Jan Bevers) Date: Tue, 11 Feb 2014 16:07:33 +0000 Subject: [oXygen-sdk] Get extension setting for backiup files Message-ID: Hi Is it possible to get the extension for backup files when doing a find and replace? For example when the user does a "Find and replace in files" he can create backup files and even choose the extension. I see that the backup files are also using the CustomProtocolHandler to write to the file system. Is there a way to know which extension the user has set in that dialog programmatically? Kind regards Jan Bevers | Developer | SDL | Content Management Technologies Division | +32 (0)15 400 970 | jbevers at sdl.com [image001]

www.sdl.com


SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us.
SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK.
This message has been scanned for malware by Websense. www.websense.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 5556 bytes Desc: image001.jpg URL: From support at oxygenxml.com Wed Feb 12 06:48:12 2014 From: support at oxygenxml.com (Oxygen XML Editor Support) Date: Wed, 12 Feb 2014 14:48:12 +0200 Subject: [oXygen-sdk] Get extension setting for backiup files In-Reply-To: References: Message-ID: <52FB6D8C.6030305@oxygenxml.com> Hi Jan, > I see that the backup files are also using the CustomProtocolHandler to write to the file system. Is there a way to know which extension the user has set in that dialog programmatically? Yes, the Find Replace in Files also works with the URL-based abstraction either over local disk or remote CMS resources. Unfortunately we do not have API for what you want, we have API for setting a certain preference but we do not have API to read a certain preference. Could you tell us more about your use case? Regards, Radu Radu Coravu XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 2/11/2014 6:07 PM, Jan Bevers wrote: > Hi > > Is it possible to get the extension for backup files when doing a find > and replace? > > For example when the user does a “Find and replace in files” he can > create backup files and even choose the extension. > > I see that the backup files are also using the CustomProtocolHandler to > write to the file system. Is there a way to know which extension the > user has set in that dialog programmatically? > > Kind regards > > *Jan Bevers |* Developer *|*SDL *| *Content Management Technologies > Division *| *+32 (0)15 400 970*|* jbevers at sdl.com > image001 > > > > www.sdl.com > > > *SDL PLC confidential, all rights reserved.* If you are not the intended > recipient of this mail SDL requests and requires that you delete it > without acting upon or copying any of its contents, and we further > request that you advise us. > SDL PLC is a public limited company registered in England and Wales. > Registered number: 02675207. > Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire > SL6 7DY, UK. > > This message has been scanned for malware by Websense. www.websense.com > > > > > _______________________________________________ > oXygen-sdk mailing list > oXygen-sdk at oxygenxml.com > http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk > From vrveerar at gmail.com Fri Feb 14 20:10:59 2014 From: vrveerar at gmail.com (Nathan) Date: Fri, 14 Feb 2014 18:10:59 -0800 Subject: [oXygen-sdk] Oxygen CSS question Message-ID: Hi, I have a case where I have to apply differential styles to two sets of images based on a substring in the href attribute. To give the use case: - Use case 1 - Apply a certain style to a image element with href containing the images folder - I can easily do this as image[href*="images/"]{ /* Apply style here */ } - Use case 2 - Apply a different style to anything not fulfilling the above criteria - how would I do a "not equal to" to test for hrefs not containing the "images" sub string? Is this possible using Oxygen CSS? Sorry if this might be an obvious question to someone used to CSS, I am a total CSS newbie. Thanks a bunch! Nathan -------------- next part -------------- An HTML attachment was scrubbed... URL: From support at oxygenxml.com Mon Feb 17 00:52:30 2014 From: support at oxygenxml.com (Oxygen XML Editor Support) Date: Mon, 17 Feb 2014 08:52:30 +0200 Subject: [oXygen-sdk] Oxygen CSS question In-Reply-To: References: Message-ID: <5301B1AE.1000609@oxygenxml.com> Hi Nathan, You would have two options: 1) > image[href*="images/"]{ > border: 1px solid black; > } > > /*THIS SELECTOR HAS LESS PRIORITY THAN THE ONE ABOVE*/ > /*So for the same defined properties it will actually match the cases in which the selector above does not apply*/ > image[href]{ > border: 2px solid black; > } The "image[href*="images/"]" selector has a higher importance than the "image[href]" selector so when it will not match, the equivalent values for the properties from the "weaker" selector will be used instead. 2) Use the not() CSS 3 selector which was added in Oxygen 15.2: > image:not([href*="images/"]){ > border: 3px solid black; > } Here are some other CSS features we added in 15.2: http://blog.oxygenxml.com/2014/01/oxygen-152-new-author-visual-editor-css.html Regards, Radu Radu Coravu XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 2/15/2014 4:10 AM, Nathan wrote: > Hi, > I have a case where I have to apply differential styles to two sets > of images based on a substring in the href attribute. To give the use case: > > * Use case 1 - Apply a certain style to a image element with href > containing the images folder - I can easily do this as > > image[href*="images/"]{ > /* Apply style here */ > } > > * Use case 2 - Apply a different style to anything not fulfilling > the above criteria - how would I do a "not equal to" to test for > hrefs not containing the "images" sub string? > > > Is this possible using Oxygen CSS? Sorry if this might be an obvious > question to someone used to CSS, I am a total CSS newbie. > > Thanks a bunch! > Nathan > > > _______________________________________________ > oXygen-sdk mailing list > oXygen-sdk at oxygenxml.com > http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk > From vrveerar at gmail.com Thu Feb 27 08:07:39 2014 From: vrveerar at gmail.com (Nathan) Date: Thu, 27 Feb 2014 06:07:39 -0800 Subject: [oXygen-sdk] Process current context using custom swing component Message-ID: Hi, I would like to create a Swing component which receives the current element, processes it through user interactions and returns a value which needs to be inserted back. I would like to trigger this using the Author API when a particular attribute value for the element is entered. How would I go about doing this? If there is a sample available of something similar, I would love to take a look. Thanks! Nathan -------------- next part -------------- An HTML attachment was scrubbed... URL: From vrveerar at gmail.com Thu Feb 27 12:00:50 2014 From: vrveerar at gmail.com (Nathan) Date: Thu, 27 Feb 2014 10:00:50 -0800 Subject: [oXygen-sdk] Custom forms sample in Author development guide Message-ID: Hi, I am trying to implement a custom form control and I see that the samples of the SDF contains the java source of the SimpleURLChooserEditor. However, I don't see anything in the SDF css calling it like it mentions in the dev guide - " http://www.oxygenxml.com/doc/ug-editor/topics/implementing-custom-form-controls.html ". I saw the blog post at "http://blog.oxygenxml.com/" but that did not clarify things for me. It would be great if I could get step-by-step instructions on how to do this. Thanks, Nathan -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex_jitianu at sync.ro Fri Feb 28 06:30:13 2014 From: alex_jitianu at sync.ro (Alex Jitianu) Date: Fri, 28 Feb 2014 14:30:13 +0200 Subject: [oXygen-sdk] Custom forms sample in Author development guide In-Reply-To: References: Message-ID: <53108155.9020608@sync.ro> Hello, The SimpleURLChooserEditor example in the SDF is the Java implementation of a sample form control. It is not used in the SDF project, however you can write a simple CSS file to add it on some element like this: myElement { content: oxy_editor( rendererClassName, "ro.sync.ecss.extensions.commons.editor.SimpleURLChooserEditor", swingEditorClassName, "ro.sync.ecss.extensions.commons.editor.SimpleURLChooserEditor", edit, "@my_attr", columns, 20 ) } The SimpleURLChooserEditor is present in Oxygen's classpath and so the previous CSS is all you need. If you implement your own custom form control there is one additional step to be performed: you must pack it inside a JAR file and add it in the framework's classpath [1]. The steps required for a custom form controls are: - download the authorSDK [2] - implement the custom form control by extending ro.sync.ecss.extensions.api.editor.InplaceEditorRendererAdapter. You can also take a look at ro.sync.ecss.extensions.api.editor.AbstractInplaceEditor (it offers some default implementations and some listeners management) - pack the previous implementation in a JAR - go to Oxygen and add the JAR inside the Classpath tab of the framework [3] - bind the form control in the CSS as described both in [4] and also above. [1] http://www.oxygenxml.com/doc/ug-editor/index.html#topics/document-type-classpath-tab.html [2] http://oxygenxml.com/download_sdk.html?file=oxygenAuthorSDK.zip [3] http://www.oxygenxml.com/doc/ug-editor/index.html#topics/document-type-classpath-tab.html [4] http://www.oxygenxml.com/doc/ug-editor/index.html#topics/implementing-custom-form-controls.html Best regards, Alex -- Alex Jitianu XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 27-Feb-14 8:00 PM, Nathan wrote: > Hi, > I am trying to implement a custom form control and I see that the > samples of the SDF contains the java source of the > SimpleURLChooserEditor. > However, I don't see anything in the SDF css calling it like it > mentions in the dev guide - > "http://www.oxygenxml.com/doc/ug-editor/topics/implementing-custom-form-controls.html". > > I saw the blog post at "http://blog.oxygenxml.com/" but that did not > clarify things for me. > It would be great if I could get step-by-step instructions on how to > do this. > > Thanks, > Nathan > > > _______________________________________________ > oXygen-sdk mailing list > oXygen-sdk at oxygenxml.com > http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex_jitianu at sync.ro Fri Feb 28 06:33:13 2014 From: alex_jitianu at sync.ro (Alex Jitianu) Date: Fri, 28 Feb 2014 14:33:13 +0200 Subject: [oXygen-sdk] Process current context using custom swing component In-Reply-To: References: Message-ID: <53108209.4000203@sync.ro> Hello, Using a custom form control appears to be a good solution. From your other email I see that you've already started to investigate this approach. A CSS selector is all you would need to control when the form control is presented: elem { // Normal styles } elem[attr] { content: oxy_editor(...) } We have some form controls samples in {OxygenInstallDir}/samples/form-controls. Although their use is not conditioned by an attribute value like you need you can easily change the CSS selectors to implement this behavior (like described above). The steps required to create and use a custom form controls are: - download the authorSDK [2] - implement the custom form control by extending ro.sync.ecss.extensions.api.editor.InplaceEditorRendererAdapter. You can also take a look at ro.sync.ecss.extensions.api.editor.AbstractInplaceEditor (it offers some default implementations and some listeners management) - pack the previous implementation in a JAR - go to Oxygen and add the JAR inside the Classpath tab of the framework [1] - bind the form control in the CSS as described in [3]. [1] http://www.oxygenxml.com/doc/ug-editor/index.html#topics/document-type-classpath-tab.html [2] http://oxygenxml.com/download_sdk.html?file=oxygenAuthorSDK.zip [3] http://www.oxygenxml.com/doc/ug-editor/index.html#topics/implementing-custom-form-controls.html Best regards, Alex -- Alex Jitianu XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 27-Feb-14 4:07 PM, Nathan wrote: > Hi, > I would like to create a Swing component which receives the current > element, processes it through user interactions and returns a value > which needs to be inserted back. I would like to trigger this using > the Author API when a particular attribute value for the element is > entered. > How would I go about doing this? If there is a sample available of > something similar, I would love to take a look. > > Thanks! > Nathan > > > _______________________________________________ > oXygen-sdk mailing list > oXygen-sdk at oxygenxml.com > http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk -------------- next part -------------- An HTML attachment was scrubbed... URL: