Javascript editor within a Java Project? [message #209159] |
Wed, 27 February 2008 19:27 |
Eclipse User |
|
|
|
Originally posted by: mikeyatwork.gmail.com
I have an existing Java project and when I open the Javascript editor and
run the format command on an html page with embedded js, nothing happens
(but an error is logged). If I try to run the format command on a pure js,
nothing happens (not even an error).
Eclipse 3.3 & WST 2.0.2
Here's the logged error:
java.lang.NullPointerException
at org.eclipse.core.runtime.Path.<init>(Path.java:152)
at
org.eclipse.wst.jsdt.web.core.internal.java.WebRootFinder.ge tServerContextRoot(Unknown
Source)
at
org.eclipse.wst.jsdt.web.core.internal.java.JsTranslation.ge tDocScope(Unknown
Source)
at
org.eclipse.wst.jsdt.web.core.internal.java.JsTranslation.cr eateCompilationUnit(Unknown
Source)
at
org.eclipse.wst.jsdt.web.core.internal.java.JsTranslation.ge tCompilationUnit(Unknown
Source)
at
org.eclipse.wst.jsdt.web.ui.internal.format.FormattingStrate gyJSDT.format(Unknown
Source)
at
org.eclipse.jface.text.formatter.MultiPassContentFormatter.f ormatSlave(MultiPassContentFormatter.java:221)
at
org.eclipse.jface.text.formatter.MultiPassContentFormatter.f ormatSlaves(MultiPassContentFormatter.java:268)
at
org.eclipse.jface.text.formatter.MultiPassContentFormatter.f ormat(MultiPassContentFormatter.java:144)
at
org.eclipse.wst.sse.ui.internal.StructuredTextViewer.doOpera tion(StructuredTextViewer.java:454)
at
org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOper ationAction.java:131)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.ui.texteditor.TextOperationAction.run(TextOperat ionAction.java:129)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:546)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
|
|
|
|
Powered by
FUDForum. Page generated in 0.01836 seconds