Community
Participate
Eclipse IDE
I have a multipaneeditor that has the CompilationUnitEditor in one of the panes. In my MPE's getAdapter() I pass on requests for IToggleBreakpointsTarget.class to the embedded CompilationUnitEditor. So now the Toggle breakpoint action on the run menu is enabled when the CompilationUnitEditor is active in the MPE. But when the action is selectioned I get the following error: !ENTRY org.eclipse.core.runtime 4 2 2005-11-25 11:57:25.968 !MESSAGE An internal error occurred during: "Toggle Line Breakpoint". !STACK 0 java.lang.ClassCastException: (My_MPE_type) incompatible with org/eclipse/ui/texteditor/ITextEditor at org.eclipse.jdt.internal.debug.ui.actions.ToggleBreakpointAdapter$2.run(ToggleBreakpointAdapter.java:160) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76) It looks like ToggleBreakpointAdapter.run() needs to call getAdapter() on the editorpart it receives. This same fix should be done for methods toggleLineBreakpoints, toggleMethodBreakpoints, and toogleWatchPoints. RunToLineAdapter.runToLine() needs the same fix too. We need this fix in Eclipse 3.1.2 if possible.
Fixed in HEAD for ToggleBreakpointAdapter and RunToLineAdapter.
Released to 3.1.2 branch. (did not make this week's build though).
Please verify, Kevin.
verified