Bug 304530 - [QuickAccess] Error opening export wizard from Quick Access
Summary: [QuickAccess] Error opening export wizard from Quick Access
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-03 10:50 EST by Curtis Windatt CLA
Modified: 2019-09-06 16:19 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Curtis Windatt CLA 2010-03-03 10:50:46 EST
1. Hit Ctrl-3 to open quick access
2. Type export
3. Try to open the Export Menu item

-- Error Details --
Date: Wed Mar 03 09:45:36 CST 2010
Message: No activeWorkbenchWindow found while executing org.eclipse.ui.file.export
Severity: Error
Product: Eclipse SDK 3.6.0.v201003020800 (org.eclipse.sdk.ide)
Plugin: org.eclipse.ui.workbench
Session Data:
eclipse.buildId=I20100302-0800
java.version=1.6.0_15
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_CA
Command-line arguments:  -os linux -ws gtk -arch x86


Exception Stack Trace:
org.eclipse.core.commands.ExecutionException: No activeWorkbenchWindow found while executing org.eclipse.ui.file.export
	at org.eclipse.ui.handlers.HandlerUtil.noVariableFound(HandlerUtil.java:40)
	at org.eclipse.ui.handlers.HandlerUtil.getVariableChecked(HandlerUtil.java:89)
	at org.eclipse.ui.handlers.HandlerUtil.getActiveWorkbenchWindowChecked(HandlerUtil.java:210)
	at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:271)
	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
	at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
	at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
	at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157)
	at org.eclipse.ui.internal.actions.CommandAction.run(CommandAction.java:171)
	at org.eclipse.ui.internal.quickaccess.ActionElement.execute(ActionElement.java:35)
	at org.eclipse.ui.internal.quickaccess.QuickAccessDialog.handleElementSelected(QuickAccessDialog.java:687)
	at org.eclipse.ui.internal.quickaccess.QuickAccessDialog.handleSelection(QuickAccessDialog.java:764)
	at org.eclipse.ui.internal.quickaccess.QuickAccessDialog.access$6(QuickAccessDialog.java:754)
	at org.eclipse.ui.internal.quickaccess.QuickAccessDialog$9.widgetDefaultSelected(QuickAccessDialog.java:306)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:113)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1223)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3531)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3150)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2408)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2372)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:501)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:494)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:195)
	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:369)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:611)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:566)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1363)
Comment 1 Remy Suen CLA 2010-03-03 11:24:36 EST
(In reply to comment #0)
> 1. Hit Ctrl-3 to open quick access
> 2. Type export
> 3. Try to open the Export Menu item

You mean 'Menus [Icon] Export... - Export', right?

Cannot reproduce on Windows XP. May be an issue on Linux with shells.
Comment 2 Curtis Windatt CLA 2010-03-03 11:35:08 EST
(In reply to comment #1)
> You mean 'Menus [Icon] Export... - Export', right?

Yes, the menu option fails.  All the other options (taking you directly to a specific export wizard) as well as Commands Export - Export work.
Comment 3 Paul Webster CLA 2010-03-10 07:58:43 EST
I can reproduce it as well.  It's because that ActionContributionItem is executing a command, and the command suffers from the same problem.  But we have extra code in the CommandProvider/CommandElement to work around that.

Another possibility would be to put the execution (of all of items) in an asyncExec or UIJob that would hopefully execute after QuickAccess is closed and the shell activates have been processed.

PW
Comment 4 Remy Suen CLA 2010-03-29 16:28:05 EDT
Szymon, you've been incorrectly CC'd because of a bug in our triage script. Our apologies. Of course, feel free to CC yourself if you care about this problem. ;)
Comment 5 Szymon Brandys CLA 2010-03-30 04:44:09 EDT
(In reply to comment #4)
> Szymon, you've been incorrectly CC'd because of a bug in our triage script. Our
> apologies. Of course, feel free to CC yourself if you care about this problem.
> ;)

Ha, this is a trick question. Of course that I care ;-) but you are already on CC, so the bug is in good hands.
Comment 6 Eclipse Webmaster CLA 2019-09-06 16:19:26 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.