Search found 45 matches

by neon096
Tue Jan 15, 2013 10:32 am
Forum: Other Issues
Topic: getTextContent returning text in oxy_delete processing instructions
Replies: 3
Views: 1104

Re: getTextContent returning text in oxy_delete processing instructions

Thanks Radu, After I posted this I noticed another way to do it which seems to work. final StringBuilder builder = new StringBuilder(); final TextContentIterator iterator = access.getDocumentController().getTextContentIterator(node.getStartOffset(), node.getEndOffset()); while (iterator.hasNext()) {...
by neon096
Mon Jan 14, 2013 5:49 pm
Forum: Other Issues
Topic: getTextContent returning text in oxy_delete processing instructions
Replies: 3
Views: 1104

getTextContent returning text in oxy_delete processing instructions

As part of an operation we get the text from a node to perform a Search on our document repository so the user can mark up a link. The problem we are having is that we are now using track changes to hold the content the user is deleting so we can easily review the changes. When we use the AuthorNode...
by neon096
Thu Jan 03, 2013 4:54 pm
Forum: Other Issues
Topic: Hunspell exceptions in Applet
Replies: 15
Views: 4696

Re: Hunspell exceptions in Applet

I've checked the class path and compared it with the demo and I've the following. <applet code="com.xxx.xxx.oxygen.author.AuthoringApplet" name="Editor" id="authorComponentApplet" archive="lib/topics-oxygen-plugin-4.0.0-SNAPSHOT.jar, lib/jna-14.1.jar, lib/jna-native-14.1.jar, lib/oxygen-14.1.jar, li...
by neon096
Wed Jan 02, 2013 4:29 pm
Forum: Other Issues
Topic: Hunspell exceptions in Applet
Replies: 15
Views: 4696

Re: Hunspell exceptions in Applet

I've updated the Hunspell and the oxygen stuff to use the build 2012120716. I'm still getting error messages. INFO : ro.sync.azcheck.ui.spellcontrol.hunspell.d - No system property showing where the application was installed. Using the working directory instead. WARN : ro.sync.azcheck.ui.n - Could n...
by neon096
Wed Jan 02, 2013 1:01 pm
Forum: Other Issues
Topic: Hunspell exceptions in Applet
Replies: 15
Views: 4696

Re: Hunspell exceptions in Applet

We can't just upgrade Java on a Mac as that only applies to Lion and Mountain Lion versions of OS X.
by neon096
Wed Jan 02, 2013 12:31 pm
Forum: Other Issues
Topic: Hunspell exceptions in Applet
Replies: 15
Views: 4696

Re: Hunspell exceptions in Applet

Build-Number: 2012060116
by neon096
Wed Jan 02, 2013 11:30 am
Forum: Other Issues
Topic: Hunspell exceptions in Applet
Replies: 15
Views: 4696

Re: Hunspell exceptions in Applet

I've just had a thought I'm using the oxygen 14.0 but the hunspell stuff I think I'm using the version that came with 13.4.
by neon096
Wed Jan 02, 2013 11:18 am
Forum: Other Issues
Topic: Hunspell exceptions in Applet
Replies: 15
Views: 4696

Re: Hunspell exceptions in Applet

I believe it is 14.0
by neon096
Wed Jan 02, 2013 10:55 am
Forum: Other Issues
Topic: Hunspell exceptions in Applet
Replies: 15
Views: 4696

Re: Hunspell exceptions in Applet

I'm running the applet embedded as a web page. I've just noticed that I'm not having the issue with Windows, however the issue I'm having is on a Mac which means I'm not using JNLP in the webpage I'm using the <applet/> tag.
by neon096
Fri Dec 21, 2012 2:39 pm
Forum: Other Issues
Topic: Hunspell exceptions in Applet
Replies: 15
Views: 4696

Hunspell exceptions in Applet

I've just added the following to the options.xml file in order to get the spell check to make sure we are using the right dictionary and automatic spell check is true. However we get the following exception. I believe I have the correct hunspell library and dictionaries on my class path. Any ideas a...
by neon096
Tue Dec 04, 2012 6:00 pm
Forum: Other Issues
Topic: Copy and pasting fragments injecting NULL characters in applet
Replies: 3
Views: 1097

Re: Copy and pasting fragments injecting NULL characters in applet

Thanks Radu,

I'm changing the Content object underneath the AuthorDocumentFragment and replacing non ASCII characters that are pasted from Word (i.e Left and Right double quotes).
by neon096
Tue Dec 04, 2012 4:12 pm
Forum: Other Issues
Topic: Copy and pasting fragments injecting NULL characters in applet
Replies: 3
Views: 1097

Copy and pasting fragments injecting NULL characters in applet

I've come across an issue whereby the Author is selecting a mixture of text and the full element and pasting it into a new paragraph. An example of the selection is Paragraph text <citation>Enter citation here</citation> When the Author then pastes this into another paragraph it is displayed in the ...
by neon096
Fri Nov 23, 2012 4:11 pm
Forum: Other Issues
Topic: Track Changes in applet
Replies: 5
Views: 1345

Re: Track Changes in applet

The auto complete is when the caret is in an element the auto-complete function is called which provides the user the allowed values. The problem is that the value in there is deleted and the track changes is marking that up within the processing instructions. Thanks I'll have a look at the ro.sync....
by neon096
Fri Nov 23, 2012 3:58 pm
Forum: Other Issues
Topic: Track Changes in applet
Replies: 5
Views: 1345

Re: Track Changes in applet

Is there anyway to not track changes within certain AuthorNodes? I've got a field which is using auto-complete but if the track changes is turned on the auto-complete breaks and the field is left un-editable? I've got a really nasty way to do it by using AuthorMouseAdapter.mousePressed() events to t...
by neon096
Fri Nov 23, 2012 12:12 pm
Forum: Other Issues
Topic: Track Changes in applet
Replies: 5
Views: 1345

Re: Track Changes in applet

Perfect. Thanks for the quick response.
by neon096
Fri Nov 23, 2012 11:57 am
Forum: Other Issues
Topic: Track Changes in applet
Replies: 5
Views: 1345

Track Changes in applet

I'm trying to always track changes whereby the user doesn't know we are tracking (so that when the document is in QA they editors can identify the areas they need to check and possibly modify). I've tried using the following code. if (!authorComponent.getAuthorAccess().getReviewController().isTracki...
by neon096
Wed Sep 26, 2012 12:25 pm
Forum: Other Issues
Topic: Prevent Pasting
Replies: 2
Views: 810

Re: Prevent Pasting

Please note that the following doesn't seem to work.

Code: Select all

access.getDocumentController().getUndoManager().undo();
by neon096
Wed Sep 26, 2012 11:45 am
Forum: Other Issues
Topic: Prevent Pasting
Replies: 2
Views: 810

Prevent Pasting

I'm trying to prevent a user pasting over a mandatory heading. I've tried using the AuthorDocumentFilter.insertFragment but this is too late in the call hierarchy. So I'm now using AuthorSchemaAwareEditingHandlerAdapter.handlePaste however the API suggests the selection removal has already been remo...
by neon096
Wed Sep 19, 2012 11:30 am
Forum: Other Issues
Topic: Auto Complete popup in Applet
Replies: 3
Views: 1065

Re: Auto Complete popup in Applet

Thanks Radu,

That works to some degree but you need to make sure everything is in the SwingUtilities.invokeLater otherwise a StackOverflow error will occur.

Is there a way of manipulating the values in the popup as Oxygen is populating the first record with "Enter" and we don't want this?
by neon096
Tue Sep 18, 2012 4:59 pm
Forum: Other Issues
Topic: Auto Complete popup in Applet
Replies: 3
Views: 1065

Auto Complete popup in Applet

I've got a field in the XML which has a set list of values that can be used to populate it (i.e true, false). If I pressed Ctrl and Space a popup appears. Is there anyway to get this popup to automatically appear when the caret is within the field?
by neon096
Thu Aug 30, 2012 12:06 pm
Forum: Other Issues
Topic: Authoring Applet not working on MAC
Replies: 3
Views: 1189

Re: Authoring Applet not working on MAC

Do you know the bug number (URL) so we can track it. Also I'll look to see if the Oracle bug list has this since they took over the Mac java support.
by neon096
Thu Aug 30, 2012 11:30 am
Forum: Other Issues
Topic: Authoring Applet not working on MAC
Replies: 3
Views: 1189

Authoring Applet not working on MAC

I'm having problems with running the authoring applet on a MAC. Whereby the screen isn't showing but the popup window is when I right click where the applet should be displaying. The JNLP file of the resources is pasted below. Also the applet at http://www.oxygenxml.com/demo/AuthorDemoApplet/author-...
by neon096
Tue Aug 28, 2012 2:52 pm
Forum: Other Issues
Topic: Displaying images
Replies: 1
Views: 719

Displaying images

Is there a way to display an image in the Author applet using a different tags. I've seen the topic http://oxygenxml.com/doc/ug-editor/index.html?q=/doc/ug-editor/topics/author-image-rendering.html which describes the <image/> tag. However we have a different datamodel which cannot be changed withou...
by neon096
Thu Jul 26, 2012 12:08 pm
Forum: Other Issues
Topic: Element suggestions list
Replies: 3
Views: 1062

Re: Element suggestions list

Is there a component I can use to customize the element suggestion list?

So I can remove comment, CDATA and re-word the other elements to a more user friendly wording.
by neon096
Thu Jul 19, 2012 11:05 am
Forum: Other Issues
Topic: Getting AuthorComponentProvider from AuthorOperations in Applet
Replies: 4
Views: 1197

Re: Getting AuthorComponentProvider from AuthorOperations in Applet

Also it's not just for printing. I'd like to do other things as well.
by neon096
Thu Jul 19, 2012 11:04 am
Forum: Other Issues
Topic: Getting AuthorComponentProvider from AuthorOperations in Applet
Replies: 4
Views: 1197

Re: Getting AuthorComponentProvider from AuthorOperations in Applet

I also want the PrintOperation in the right click popup menu.
by neon096
Thu Jul 19, 2012 10:41 am
Forum: Other Issues
Topic: Getting AuthorComponentProvider from AuthorOperations in Applet
Replies: 4
Views: 1197

Getting AuthorComponentProvider from AuthorOperations in Applet

Is there a way to get the AuthorComponentProvider from with the AuthorOpertations? Currently the only way I've got them is by using a singleton on the JPanel for the applet. However this means I cannot create any unit tests on my operation classes. Current the print operation is doing the following....
by neon096
Mon Jul 16, 2012 11:37 am
Forum: Common Problems
Topic: AuthorDocumentController findNodesByXpath not returning expected values
Replies: 3
Views: 1134

Re: AuthorDocumentController findNodesByXpath not returning expected values

Thanks Radu,

I must have mis-nderstood the API documentation.
by neon096
Mon Jul 16, 2012 11:13 am
Forum: Common Problems
Topic: AuthorDocumentController findNodesByXpath not returning expected values
Replies: 3
Views: 1134

AuthorDocumentController findNodesByXpath not returning expected values

I'm writing some code to find all <para/> nodes within a <paragraph/> node. However I'm retrieving all para nodes within the entire document. I'm using the following code final AuthorNode node = access.getDocumentController().getNodeAtOffset(offset); final AuthorNode paragraphNode = DocumentUtils.ge...
by neon096
Wed Jul 11, 2012 10:30 am
Forum: Other Issues
Topic: Applet Save dialog on close
Replies: 2
Views: 850

Re: Applet Save dialog on close

Thanks,

Thats what I thought I would have to do.