Bug 244839 - Exception when opening JavaScript file from outside of workspace
Summary: Exception when opening JavaScript file from outside of workspace
Status: RESOLVED FIXED
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: 3.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Bradley Childs CLA
QA Contact: Phil Berkland CLA
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2008-08-21 12:10 EDT by Eugene Ostroukhov CLA
Modified: 2010-03-03 11:16 EST (History)
0 users

See Also:


Attachments
Patch to fix the issue (4.00 KB, patch)
2008-08-21 12:12 EDT, Eugene Ostroukhov CLA
bjorn.freeman-benson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Ostroukhov CLA 2008-08-21 12:10:16 EDT
When opening HTML file with embedded JS and trying to save it following exception is logged:

org.eclipse.core.commands.NotEnabledException: Trying to execute the disabled
command org.eclipse.ui.file.save
        at
org.eclipse.core.commands.Command.executeWithChecks(Command.java:469)
        at
org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
        at
com.genuitec.eclipse.webdesigner3.design.MozillaKeyListener$2.run(MozillaKeyListener.java:89)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:235)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:5337)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4948)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
        at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
        at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
        at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
        at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
        at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        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.equinox.launcher.Main.invokeFramework(Main.java:549)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
Comment 1 Eugene Ostroukhov CLA 2008-08-21 12:12:10 EDT
Created attachment 110587 [details]
Patch to fix the issue
Comment 2 Bradley Childs CLA 2008-11-03 15:02:58 EST

*** This bug has been marked as a duplicate of bug 248546 ***
Comment 3 Bradley Childs CLA 2008-11-03 15:37:04 EST
sorry not actually a duplicate.
Comment 4 Bradley Childs CLA 2008-11-21 16:04:23 EST
Hi Eugene,

Thanks for the patch.  Applied/resolved.

-brad