Search found 10 matches

by daniel7
Thu Feb 23, 2017 6:12 pm
Forum: SDK-API, Frameworks - Document Types
Topic: is my add-on running in XML Author or XL Editor?
Replies: 4
Views: 586

Re: is my add-on running in XML Author or XL Editor?

Radu wrote:1) ro.sync.exml.workspace.api.WorkspaceUtilities.getParentFrame(), cast it to java.awt.Frame and get its title.


Thanks, this workaround seems to work nicely.
by daniel7
Thu Feb 23, 2017 4:59 pm
Forum: SDK-API, Frameworks - Document Types
Topic: is my add-on running in XML Author or XL Editor?
Replies: 4
Views: 586

Re: is my add-on running in XML Author or XL Editor?

PluginWorkspaceProvider.getPluginWorkspace().getApplicationName() getApplicationName() isn't found here when I use this dependency in Maven, am I missing something? <dependency> <groupId>com.oxygenxml</groupId> <artifactId>oxygen</artifactId> <version>18.1.0.2</version> <scope>provided</scope> </de...
by daniel7
Thu Feb 23, 2017 4:02 pm
Forum: SDK-API, Frameworks - Document Types
Topic: is my add-on running in XML Author or XL Editor?
Replies: 4
Views: 586

is my add-on running in XML Author or XL Editor?

Hi, how can my add-on find out whether it's running in XML Author or XML Editor? The reason I need to know is that their preference files seem to be independent, either "oxyOptionsSa18.1.xml" or "oxyAuthorOptionsSa18.1.xml" is used. I need to find the setting for the spell checke...
by daniel7
Wed Apr 08, 2015 2:58 pm
Forum: SDK-API, Frameworks - Document Types
Topic: TextContentIterator return processing instructions?
Replies: 2
Views: 715

Re: TextContentIterator return processing instructions?

alex_jitianu wrote:You can check the context node and skip PIs like this:


Thanks, that's working nicely.
by daniel7
Wed Apr 08, 2015 12:46 pm
Forum: SDK-API, Frameworks - Document Types
Topic: TextContentIterator return processing instructions?
Replies: 2
Views: 715

TextContentIterator return processing instructions?

Hi, I'm using Oxygen Author 16.1, build 2015012213 with code like this: AuthorDocumentController docController = authorEditorPage.getDocumentController(); AuthorDocument authorDocumentNode = docController.getAuthorDocumentNode(); TextContentIterator textContentIterator = docController.getTextContent...
by daniel7
Fri Mar 13, 2015 5:45 pm
Forum: SDK-API, Frameworks - Document Types
Topic: accessing text in Text Mode
Replies: 3
Views: 903

Re: accessing text in Text Mode

Thanks for your fast reply. I actually have a timer so that the check doesn't start when the key is pressed but after a timeout of (currently) 500ms. I'll see if that works good enough.
by daniel7
Fri Mar 13, 2015 5:00 pm
Forum: SDK-API, Frameworks - Document Types
Topic: accessing text in Text Mode
Replies: 3
Views: 903

accessing text in Text Mode

Hi, is there a recommended way to get the text content of a document in Text mode, similar to what TextContentIterator does in Author mode? I see I could just parse the XML myself, but I'm trying to write a grammar checker for text mode, so I'd need to re-parse the whole XML on almost every key pres...
by daniel7
Wed May 28, 2014 10:54 am
Forum: Common Problems
Topic: highlighting/underlining in text mode?
Replies: 3
Views: 624

Re: highlighting/underlining in text mode?

Radu wrote:The Text editing mode is based on a regular Java Swing javax.swing.JTextArea and can be obtained using the API ro.sync.exml.workspace.api.editor.page.text.WSTextEditorPage.getTextComponent() and then use the regular Swing API for adding highlights:

Thanks, that does the trick.
by daniel7
Tue May 27, 2014 11:43 pm
Forum: Common Problems
Topic: highlighting/underlining in text mode?
Replies: 3
Views: 624

highlighting/underlining in text mode?

Hi,

I can get a highlighter in author mode like this:

Code: Select all

authorAccess.getEditorAccess().getHighlighter()


Is there anything like that for text mode? It seems to exist, as this is what the spell checker does, but I could not find it in the API.

Thanks,

Daniel
by daniel7
Tue May 27, 2014 10:12 am
Forum: Common Problems
Topic: highlight a single character
Replies: 2
Views: 605

highlight a single character

Hi, I cannot seem to highlight a single character. Here's what I'm doing: AuthorHighlighter highlighter = ... highlighter.addHighlight(61, 61, new ColorHighlightPainter(), null); Nothing gets highlighted. If I use start position = 61 and end position = 62, two characters get highlighted. Is that a b...

Go to advanced search