Eclipse Web Tools Platform and syntax hightlighting

Having trouble installing Oxygen? Got a bug to report? Post it all here.
DavidPérez
Posts: 44
Joined: Fri Aug 05, 2005 2:18 pm

Eclipse Web Tools Platform and syntax hightlighting

Post 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?
DavidPérez
Posts: 44
Joined: Fri Aug 05, 2005 2:18 pm

Post by DavidPérez »

I forgot to mention that the problem is for XML, XSLT and RNG files.
DavidPérez
Posts: 44
Joined: Fri Aug 05, 2005 2:18 pm

Post 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
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post 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
DavidPérez
Posts: 44
Joined: Fri Aug 05, 2005 2:18 pm

Post by DavidPérez »

Confirmed that this problem also happens with Oxygen 6.1.1.
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post 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
DavidPérez
Posts: 44
Joined: Fri Aug 05, 2005 2:18 pm

Post by DavidPérez »

No, I haven't seen it.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Eclipse Web Tools Platform and syntax hightlighting

Post 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
maulin
Posts: 2
Joined: Wed Aug 24, 2005 3:42 pm

where did you get 6.1.1?

Post 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!
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: where did you get 6.1.1?

Post 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
kajh
Posts: 3
Joined: Sat Sep 10, 2005 6:33 pm

Post 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 :)
maulin
Posts: 2
Joined: Wed Aug 24, 2005 3:42 pm

Post by maulin »

i'd settle for a pre-release! please!
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post 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
Post Reply