Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » isBlockSelectionModeEnabled error on code from jface(XML editor wont open anymore, revert confguration wont fx it)
icon9.gif  isBlockSelectionModeEnabled error on code from jface [message #487718] Thu, 24 September 2009 08:50 Go to next message
Josch  is currently offline Josch
Messages: 1
Registered: September 2009
Junior Member
Hi there,
sometime yesterday, something happend with my eclipse ganymede installation. Suddenly, I cannot open XML files anymore. Eclipse tells me following code.
Using other editors still work, Reverting the configuration even 2 months back does not fix it. Switching workspaces to one, I have not used for 2 weeks does not help either.

Does anyone have an idea besides "install all plugins from ground up on a fresh packageinstall" ?

Message is :

Quote:
eclipse.buildId=M20090211-1700
java.version=1.6.0_14
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Command-line arguments: -os win32 -ws win32 -arch x86 -clean


Error
Thu Sep 24 10:13:28 CEST 2009
Problems occurred when invoking code from plug-in: "org.eclipse.jface".

java.lang.NoSuchMethodError: org.eclipse.wst.sse.ui.StructuredTextEditor.isBlockSelection ModeEnabled()Z
at org.eclipse.wst.sse.ui.StructuredTextEditor$StructuredSelect ionProvider.getSelection(StructuredTextEditor.java:654)
at org.eclipse.ui.internal.editors.quickdiff.QuickDiffRestoreAc tion.getSelection(QuickDiffRestoreAction.java:137)
at org.eclipse.ui.internal.editors.quickdiff.QuickDiffRestoreAc tion.computeLine(QuickDiffRestoreAction.java:169)
at org.eclipse.ui.internal.editors.quickdiff.QuickDiffRestoreAc tion.computeEnablement(QuickDiffRestoreAction.java:122)
at org.eclipse.ui.internal.editors.quickdiff.RevertLineAction.c omputeEnablement(RevertLineAction.java:51)
at org.eclipse.ui.internal.editors.quickdiff.QuickDiffRestoreAc tion.update(QuickDiffRestoreAction.java:98)
at org.eclipse.ui.texteditor.TextEditorAction.<init>(TextEditorAction.java:49)
at org.eclipse.ui.internal.editors.quickdiff.QuickDiffRestoreAc tion. <init>(QuickDiffRestoreAction.java:56)
at org.eclipse.ui.internal.editors.quickdiff.RevertLineAction.<init >(RevertLineAction.java:44)
at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.create Actions(AbstractDecoratedTextEditor.java:1124)
at org.eclipse.ui.editors.text.TextEditor.createActions(TextEdi tor.java:118)
at org.eclipse.wst.sse.ui.StructuredTextEditor.createActions(St ructuredTextEditor.java:1171)
at org.eclipse.ui.texteditor.AbstractTextEditor.createPartContr ol(AbstractTextEditor.java:3362)
at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl (StatusTextEditor.java:53)
at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.create PartControl(AbstractDecoratedTextEditor.java:394)
at org.eclipse.wst.sse.ui.StructuredTextEditor.createPartContro l(StructuredTextEditor.java:1334)
at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEdi torPart.java:217)
at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEdi torPart.java:187)
at org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditor Part.addSourcePage(XMLMultiPageEditorPart.java:440)
at org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditor Part.createPages(XMLMultiPageEditorPart.java:612)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Mu ltiPageEditorPart.java:310)
at org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
at org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:428)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:594)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:30 6)
at org.eclipse.ui.internal.presentations.PresentablePart.setVis ible(PresentablePart.java:180)
at org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.select(PresentablePartFolder.java:270)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrd er.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation.selectPart(TabbedStackPresentation.java:473)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1256)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1209)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:16 08)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103 )
at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112 )
at org.eclipse.ui.internal.EditorSashContainer.addEditor(Editor SashContainer.java:63)
at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorA reaHelper.java:217)
at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAre aHelper.java:207)
at org.eclipse.ui.internal.EditorManager.createEditorTab(Editor Manager.java:779)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:678)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:639)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2817)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2729)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPag e.java:2721)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2673)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2668)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2652)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2643)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:646)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:605)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:318)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:160)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:22 8)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:20 7)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchR un(SelectionDispatchAction.java:274)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(Selec tionDispatchAction.java:250)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActio nGroup.handleOpen(PackageExplorerActionGroup.java:363)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$ 5.open(PackageExplorerPart.java:603)
at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:820)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:880)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:17 5)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:818)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:1079)
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:1183)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:263)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:257)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:297)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2384)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 00)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:490)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.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(EclipseS tarter.java:386)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.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)

icon9.gif  Re: isBlockSelectionModeEnabled error on code from jface [message #488320 is a reply to message #487718] Mon, 28 September 2009 05:42 Go to previous message
Matthew Lowry is currently offline Matthew Lowry
Messages: 1
Registered: July 2009
Junior Member
For what it's worth, I've just noticed I'm getting the exact same error. I'm working on a Java project that has an XML file in it, and I just noticed that when I opened the XML file it came up in the plain text editor and not the XML editor. The file is very simple and rarely editted, so I hadn't actually noticed I wasn't getting the syntax highlighting and other goodies of the XML editor; hence I have no idea how long this has been happening.

Anyway, I'm getting the same symptoms as the OP. My log file shows the same stack trace, and the other editors (Java and plain text) that I use are working fine. I running on the same type of system (Win32 / x86) as the OP.

One factor that could be important in this: my installed version of the XML editor and WST core / UI / XML core packages is the latest from the WTP update site (version 3.1.0), rather than the version offered by the Ganymede update site (version 3.0.4).

No idea what the problem is, and since I don't really care (I can survive without the XML editor for now) I'm not going to spend the time looking for a workaround. Just putting this out there for the record.

Cheers,
Matt.

[Updated on: Mon, 28 September 2009 05:44]

Report message to a moderator

Previous Topic:How to update view size when new widgets are added?
Next Topic:TreeViewer find node
Goto Forum:
  


Current Time: Tue Oct 21 21:30:46 GMT 2014

Powered by FUDForum. Page generated in 0.06946 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software