Change Editor tab foregroung/background color

Post here questions and problems related to oXygen frameworks/document types.
sebastienlavandier
Posts: 124
Joined: Tue May 29, 2012 5:42 pm

Change Editor tab foregroung/background color

Post by sebastienlavandier » Wed Sep 16, 2015 12:04 pm

Hello,

I want to know if is it possible to change something like foreground color or background color of an editorTab ?
That is for detect more easily which editor Tab is editable or not.

Thanks in advance for your help.
Sébastien.L

Radu
Posts: 6582
Joined: Fri Jul 09, 2004 5:18 pm

Re: Change Editor tab foregroung/background color

Post by Radu » Wed Sep 16, 2015 2:25 pm

Hi Sébastien,

Right now we only have this API:

Code: Select all


ro.sync.exml.workspace.api.editor.WSEditorBase.setEditorTabText(String)
All editors are placed in a JTabbedPane. Maybe starting from the API ro.sync.exml.workspace.api.editor.page.author.WSAuthorEditorPage.getAuthorComponent() you could navigate up on the Swing components, find the tabbed pane and use:

Code: Select all

javax.swing.JTabbedPane.setBackgroundAt(int, Color)
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply