Eclipse不显示用于编写代码的工作空间

时间:2014-01-01 07:18:25

标签: eclipse

当我创建一个新类时,我得到了followng错误。没有代码可以输入空间,我该如何修复

An error has occurred. See error log for more details.
org.eclipse.swt.custom.StyledText.getScrollbarsMode()I

错误日志如下;

  

消息;未处理的事件循环异常java.lang.NoSuchMethodError:   org.eclipse.swt.custom.StyledText.getScrollbarsMode()我在   org.eclipse.jface.text.source.SourceViewer $ RulerLayout.layout(SourceViewer.java:130)     在   org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1263)     在   org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1249)     在org.eclipse.swt.widgets.Composite.layout(Composite.java:664)at   org.eclipse.swt.widgets.Composite.layout(Composite.java:622)at   org.eclipse.jface.text.source.CompositeRuler.layoutTextViewer(CompositeRuler.java:611)     在   org.eclipse.jface.text.source.CompositeRuler.addDecorator(CompositeRuler.java:565)     在   org.eclipse.jface.text.source.SourceViewer.addVerticalRulerColumn(SourceViewer.java:1194)     在   org.eclipse.jface.text.source.projection.ProjectionSupport.doEnableProjection(ProjectionSupport.java:311)     在   org.eclipse.jface.text.source.projection.ProjectionSupport $ ProjectionListener.projectionEnabled(ProjectionSupport.java:143)     在   org.eclipse.jface.text.source.projection.ProjectionViewer.fireProjectionEnabled(ProjectionViewer.java:487)     在   org.eclipse.jface.text.source.projection.ProjectionViewer.enableProjection(ProjectionViewer.java:535)     在   org.eclipse.jdt.internal.ui.javaeditor.JavaSourceViewer.setVisibleDocument(JavaSourceViewer.java:676)     在   org.eclipse.jface.text.TextViewer.setDocument(TextViewer.java:2938)     在   org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:642)     在   org.eclipse.jface.text.source.projection.ProjectionViewer.setDocument(ProjectionViewer.java:374)     在   org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:590)     在   org.eclipse.ui.texteditor.AbstractTextEditor.initializeSourceViewer(AbstractTextEditor.java:4030)     在   org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3558)     在   org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:54)     在   org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:440)     在   org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.createPartControl(JavaEditor.java:3098)     在   org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.createPartControl(CompilationUnitEditor.java:1505)     在   org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)     在   org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)     在   org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)     在   org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289)     在   org.eclipse.ui.internal.WorkbenchPage.makeActiveEditor(WorkbenchPage.java:1342)     在   org.eclipse.ui.internal.WorkbenchPage.updateActivePart(WorkbenchPage.java:1300)     在   org.eclipse.ui.internal.WorkbenchPage.partAdded(WorkbenchPage.java:1780)     在   org.eclipse.ui.internal.ViewFactory.createView(ViewFactory.java:173)     在   org.eclipse.ui.internal.Perspective.showView(Perspective.java:2244)     在   org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:1145)     在   org.eclipse.ui.internal.WorkbenchPage $ 20.run(WorkbenchPage.java:3921)     在   org.eclipse.swt.custom.BusyIndi​​cator.showWhile(BusyIndi​​cator.java:70)     在   org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3918)     在   org.eclipse.ui.handlers.ShowViewHandler.openView(ShowViewHandler.java:162)     在   org.eclipse.ui.handlers.ShowViewHandler.execute(ShowViewHandler.java:76)     在   org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)     在   org.eclipse.core.commands.Command.executeWithChecks(Command.java:499)     在   org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)     在   org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)     在   org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)     在   org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:829)     在   org.eclipse.ui.menus.CommandContributionItem.access $ 19(CommandContributionItem.java:815)     在   org.eclipse.ui.menus.CommandContributionItem $ 5.handleEvent(CommandContributionItem.java:805)     在org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)     在org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)at   org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)     在org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)     在   org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)     在org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)at   org.eclipse.ui.internal.Workbench.access $ 4(Workbench.java:2499)at at   org.eclipse.ui.internal.Workbench $ 7.run(Workbench.java:679)at   org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)     在   org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)     在   org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

0 个答案:

没有答案