Page 1 of 1
Eclipse Web Tools Platform and syntax hightlighting
Posted: Fri Aug 05, 2005 2:28 pm
by DavidPérez
I have Eclipse 3.1 and Oxygen 5.1.0 works ok.
Now I have installed the Web Tools Platform 0.7 (
http://www.eclipse.org/webtools/index.html).
It provides a CSS editor with more features than the one provided with Oxygen, whereas I prefer Oxygen for general XML editing.
The problem is that now Oxygen doesn't highlight syntax with colors.
If I open the Window | Preferences | oXygen | Syntax hightligth | XML Colors and hit the Apply button, normal colors are restored, but for new content I add, only black color is shown.
Any hint for solving this?
Posted: Fri Aug 05, 2005 2:29 pm
by DavidPérez
I forgot to mention that the problem is for XML, XSLT and RNG files.
Posted: Fri Aug 05, 2005 2:38 pm
by DavidPérez
More info:
Code: Select all
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(Unknown Source)
at com.oxygenxml.editor.editors.B.A(Unknown Source)
at com.oxygenxml.editor.editors.B.keyReleased(Unknown Source)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:128)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:867)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:852)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:880)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:876)
at org.eclipse.swt.widgets.Widget.wmKeyUp(Widget.java:1575)
at org.eclipse.swt.widgets.Control.WM_KEYUP(Control.java:3352)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3068)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1656)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2711)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
eclipse.buildId=I20050627-1435
java.version=1.5.0_03
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=es_ES
Command-line arguments: -os win32 -ws win32 -arch x86
Posted: Fri Aug 05, 2005 3:27 pm
by george
Hi David,
The oXygen 5.1 plugin is for Eclipse 3.0. There were API changes between Eclipse 3.0 and Eclipse 3.1 and even the oXygen 6.0 plugin does not work on Eclipse 3.1.
Best Regards,
George
Posted: Thu Aug 18, 2005 11:43 am
by DavidPérez
Confirmed that this problem also happens with Oxygen 6.1.1.
Posted: Thu Aug 18, 2005 12:08 pm
by george
Hi David,
The syntax coloring problem may be releted with an Eclipse bug related with isolation of plugins handling the same documents, see:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=96917
Do you still see that exception you osted with 6.1.1?
Best Regards,
George
Posted: Thu Aug 18, 2005 2:04 pm
by DavidPérez
No, I haven't seen it.
Re: Eclipse Web Tools Platform and syntax hightlighting
Posted: Mon Aug 22, 2005 3:15 pm
by sorin_ristache
Hello,
DavidPérez wrote:The problem is that now Oxygen doesn't highlight syntax with colors.
If I open the Window | Preferences | oXygen | Syntax hightligth | XML Colors and hit the Apply button, normal colors are restored, but for new content I add, only black color is shown.
Any hint for solving this?
We implemented and tested a workaround for the Eclipse bug. It will be available in <oXygen/> version 6.2.
Best Regards,
Sorin
where did you get 6.1.1?
Posted: Wed Aug 24, 2005 3:44 pm
by maulin
I am having the exact same problem -- all text is black unless I click "Apply" in XML Colors. This started after installing Exadel Pro. But I like Oxygen better for xml. help!
Re: where did you get 6.1.1?
Posted: Wed Aug 24, 2005 5:00 pm
by sorin_ristache
maulin wrote:I am having the exact same problem
...
But I like Oxygen better for xml. help!
sorin wrote:We implemented and tested a workaround for the Eclipse bug. It will be available in <oXygen/> version 6.2.
You have to wait until September for the 6.2 release.
I hope that helps,
Sorin
Posted: Mon Sep 12, 2005 3:17 pm
by kajh
Hi!
Same issue here with Oxygen 6.1 and eclipse 3.1 on osx 10.4.2.
Any news about when Oxygen version 6.2 will be released?
-Kaj

Posted: Mon Sep 12, 2005 3:54 pm
by maulin
i'd settle for a pre-release! please!
Posted: Mon Sep 12, 2005 5:08 pm
by george
Please contact us at support at oxygenxml dot com and we will make available a pre-release version. That will actually help double checking that the syntax coloring works ok with other plugins in oXygen 6.2.
Best Regards,
George