Bug 40388 - Errors when using F3 in a html file
Summary: Errors when using F3 in a html file
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P1 critical (vote)
Target Milestone: ---   Edit
Assignee: Douglas Pollock CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-17 11:22 EDT by Olivier Thomann CLA
Modified: 2003-09-03 17:31 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 Olivier Thomann CLA 2003-07-17 11:22:52 EDT
Using 20030717 build, I got the following errors in the .log file:

!ENTRY org.eclipse.core.runtime 4 2 Jul 17, 2003 11:12:38.953
!MESSAGE Executable extension definition for "class" not found.
!ENTRY org.eclipse.ui 4 4 Jul 17, 2003 11:12:38.968
!MESSAGE Could not create action delegate for id: org.eclipse.jdt.ui.actions.Open
!ENTRY org.eclipse.core.runtime 4 2 Jul 17, 2003 11:12:39.00
!MESSAGE Executable extension definition for "class" not found.
!ENTRY org.eclipse.core.runtime 4 2 Jul 17, 2003 11:13:24.890
!MESSAGE Executable extension definition for "class" not found.
!ENTRY org.eclipse.ui 4 4 Jul 17, 2003 11:13:24.890
!MESSAGE Could not create action delegate for id: org.eclipse.jdt.ui.actions.Open
!ENTRY org.eclipse.core.runtime 4 2 Jul 17, 2003 11:13:24.906
!MESSAGE Executable extension definition for "class" not found.

when I tried F3 after I open main.html located in :
jdt-core-home/r3.0.

Steps to reproduce:
1) Load the project jdt-core-home from dev.eclipse.org
2) Open main.html in /jdt-core-home/r3.0
3) Press F3
Comment 1 Dirk Baeumer CLA 2003-07-17 11:43:42 EDT
The open declaration action is defined in XML as retarget="true" so there 
isn't a class attribute. The real action is set in code by using 
actionBars.setGlobalActionHandler(JdtActionConstants.OPEN, fOpen) and we don't 
provide an action handler for open for HTML files.

The action seems to be enabled also no action handler is registered. 

Moving to Platform UI.
Comment 2 Nick Edgar CLA 2003-07-17 12:56:30 EDT
The Java Open Actions action set must have been previously activated.
Steps to reproduce:
- new workspace
- new Java project Test (say no to switch perspective prompt)
- new Java class A
- close it
- new file: B.txt
- F3 in editor
- error occurs

It should not get to the plugin action for Open since the Java Open Actions 
action set is not enabled for plain text editors.

Stack is:
Thread [main] (Suspended (breakpoint at line 206 in WWinPluginAction))
	WWinPluginAction.runWithEvent(Event) line: 206
	ActionHandler.execute(Event) line: 39
	ContextAndHandlerManager.pressed(Stroke, Event) line: 180
	ContextAndHandlerManager.access$1(ContextAndHandlerManager, Stroke, 
Event) line: 165
	ContextAndHandlerManager$7.widgetSelected(SelectionEvent) line: 274
	AcceleratorMenu$2.handleEvent(Event) line: 68
	EventTable.sendEvent(Event) line: 82
	MenuItem(Widget).sendEvent(Event) line: 848
	Display.runDeferredEvents() line: 2188
	Display.readAndDispatch() line: 1878
	Workbench.runEventLoop(Window$IExceptionHandler) line: 1630
	Workbench.run(Object) line: 1613
	InternalBootLoader.run(String, URL, String, String[], Runnable) line: 
858
	BootLoader.run(String, URL, String, String[], Runnable) line: 461
	Method.invoke(Object, Object[]) line: not available [native method]
	Main.basicRun(String[]) line: 291
	Main.run(String[]) line: 747
	Main.main(String[]) line: 583
Comment 3 Nick Edgar CLA 2003-07-17 13:03:12 EDT
WWinPluginAction could be improved to not try to load the class if it's a 
retargetable action, but it should not even be getting this far.
Comment 4 Douglas Pollock CLA 2003-09-03 15:44:50 EDT
I can't reproduce this bug (as described by Olivier) -- using Windows XP or
Linux-GTK.  I've tried Nick's steps on Linux-GTK and also no dice.  I've also
set a breakpoint at "WWinPluginAction.runWithEvent(Event) line: 206" and never
reached it (doing Nick's steps).  

Could someone else confirm that this bug is gone?  I'm using Eclipse-3.0M3.  Thanks.
Comment 5 Nick Edgar CLA 2003-09-03 17:01:37 EDT
I can't reproduce it either.
Comment 6 Chris McLaren CLA 2003-09-03 17:31:18 EDT
code in this area was heavily modified since 7/17. closing as fixed. olivier, 
please reopen if you can reproduce this problem in M3.