it-swarm.com.ru

org.Eclipse.swt.SWTException: "Виджет удаляется" при попытке открыть AndroidManifest.xml

Я использую Windows 8 и использую Eclipse Kepler Release для создания приложения для Android.

Когда я нажимаю на файл AndroidManifest.xml в моем проекте, я получаю предупреждение, которое показывает следующее сообщение об ошибке:

Problems occurred when invoking code from plug-in: "org.Eclipse.e4.ui.workbench.swt". 

Трассировка стека исключений:

org.Eclipse.e4.core.di.InjectionException: org.Eclipse.swt.SWTException: Widget is disposed
at org.Eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.Java:63)
at org.Eclipse.e4.core.internal.contexts.ContextObjectSupplier$ContextInjectionListener.update(ContextObjectSupplier.Java:88)
at org.Eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.Java:107)
at org.Eclipse.e4.core.internal.contexts.EclipseContext.processScheduled(EclipseContext.Java:328)
at org.Eclipse.e4.core.internal.contexts.EclipseContext.set(EclipseContext.Java:342)
at org.Eclipse.e4.core.internal.contexts.EclipseContext.activate(EclipseContext.Java:625)
at org.Eclipse.e4.ui.internal.workbench.swt.ShellActivationListener$2.run(ShellActivationListener.Java:120)
at org.Eclipse.core.runtime.SafeRunner.run(SafeRunner.Java:42)
at org.Eclipse.e4.ui.internal.workbench.swt.ShellActivationListener.activate(ShellActivationListener.Java:117)
at org.Eclipse.e4.ui.internal.workbench.swt.ShellActivationListener.handleEvent(ShellActivationListener.Java:73)
at org.Eclipse.swt.widgets.EventTable.sendEvent(EventTable.Java:84)
at org.Eclipse.swt.widgets.Display.filterEvent(Display.Java:1262)
at org.Eclipse.swt.widgets.Widget.sendEvent(Widget.Java:1056)
at org.Eclipse.swt.widgets.Widget.sendEvent(Widget.Java:1081)
at org.Eclipse.swt.widgets.Widget.sendEvent(Widget.Java:1066)
at org.Eclipse.swt.widgets.Decorations.WM_ACTIVATE(Decorations.Java:1667)
at org.Eclipse.swt.widgets.Shell.WM_ACTIVATE(Shell.Java:2151)
at org.Eclipse.swt.widgets.Control.windowProc(Control.Java:4608)
at org.Eclipse.swt.widgets.Canvas.windowProc(Canvas.Java:340)
at org.Eclipse.swt.widgets.Decorations.windowProc(Decorations.Java:1627)
at org.Eclipse.swt.widgets.Shell.windowProc(Shell.Java:2075)
at org.Eclipse.swt.widgets.Display.windowProc(Display.Java:4977)
at org.Eclipse.swt.internal.win32.OS.BringWindowToTop(Native Method)
at org.Eclipse.swt.widgets.Decorations.bringToTop(Decorations.Java:231)
at org.Eclipse.swt.widgets.Shell.open(Shell.Java:1217)
at org.Eclipse.jface.window.Window.open(Window.Java:798)
at org.Eclipse.ui.internal.statushandlers.InternalDialog.open(InternalDialog.Java:327)
at org.Eclipse.ui.internal.statushandlers.WorkbenchStatusDialogManagerImpl.doAddStatusAdapter(WorkbenchStatusDialogManagerImpl.Java:270)
at org.Eclipse.ui.internal.statushandlers.WorkbenchStatusDialogManagerImpl.addStatusAdapter(WorkbenchStatusDialogManagerImpl.Java:197)
at org.Eclipse.ui.statushandlers.WorkbenchStatusDialogManager.addStatusAdapter(WorkbenchStatusDialogManager.Java:156)
at org.Eclipse.ui.statushandlers.WorkbenchErrorHandler.showStatusAdapter(WorkbenchErrorHandler.Java:101)
at org.Eclipse.ui.statushandlers.WorkbenchErrorHandler.handle(WorkbenchErrorHandler.Java:57)
at org.Eclipse.ui.internal.ide.IDEWorkbenchErrorHandler.handle(IDEWorkbenchErrorHandler.Java:108)
at org.Eclipse.ui.internal.WorkbenchErrorHandlerProxy.handle(WorkbenchErrorHandlerProxy.Java:36)
at org.Eclipse.ui.statushandlers.StatusManager.handle(StatusManager.Java:189)
at org.Eclipse.ui.internal.JFaceUtil$3.show(JFaceUtil.Java:70)
at org.Eclipse.jface.util.SafeRunnable.handleException(SafeRunnable.Java:67)
at org.Eclipse.core.runtime.SafeRunner.handleException(SafeRunner.Java:75)
at org.Eclipse.core.runtime.SafeRunner.run(SafeRunner.Java:44)
at org.Eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.Java:49)
at org.Eclipse.jface.util.SafeRunnable.run(SafeRunnable.Java:175)
at org.Eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.Java:864)
at org.Eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.Java:1152)
at org.Eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.Java:1256)
at org.Eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.Java:275)
at org.Eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.Java:269)
at org.Eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.Java:309)
at org.Eclipse.swt.widgets.EventTable.sendEvent(EventTable.Java:84)
at org.Eclipse.swt.widgets.Widget.sendEvent(Widget.Java:1057)
at org.Eclipse.swt.widgets.Display.runDeferredEvents(Display.Java:4170)
at org.Eclipse.swt.widgets.Display.readAndDispatch(Display.Java:3759)
at org.Eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.Java:1113)
at org.Eclipse.core.databinding.observable.Realm.runWithDefault(Realm.Java:332)
at org.Eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.Java:997)
at org.Eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.Java:138)
at org.Eclipse.ui.internal.Workbench$5.run(Workbench.Java:610)
at org.Eclipse.core.databinding.observable.Realm.runWithDefault(Realm.Java:332)
at org.Eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.Java:567)
at org.Eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.Java:150)
at org.Eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.Java:124)
at org.Eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.Java:196)
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:354)
at org.Eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.Java:181)
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:636)
at org.Eclipse.equinox.launcher.Main.basicRun(Main.Java:591)
at org.Eclipse.equinox.launcher.Main.run(Main.Java:1450)
Caused by: org.Eclipse.swt.SWTException: Widget is disposed
at org.Eclipse.swt.SWT.error(SWT.Java:4397)
at org.Eclipse.swt.SWT.error(SWT.Java:4312)
at org.Eclipse.swt.SWT.error(SWT.Java:4283)
at org.Eclipse.swt.widgets.Widget.error(Widget.Java:472)
at org.Eclipse.swt.widgets.Widget.checkWidget(Widget.Java:344)
at org.Eclipse.swt.widgets.Widget.addDisposeListener(Widget.Java:214)
at org.Eclipse.e4.ui.css.swt.engine.CSSSWTEngineImpl.hookNativeWidget(CSSSWTEngineImpl.Java:52)
at org.Eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.getElement(AbstractCSSEngine.Java:919)
at org.Eclipse.e4.ui.css.core.dom.ElementAdapter.getElement(ElementAdapter.Java:336)
at org.Eclipse.e4.ui.css.swt.dom.CTabFolderElement.item(CTabFolderElement.Java:52)
at org.Eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyStyles(AbstractCSSEngine.Java:481)
at org.Eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyStyles(AbstractCSSEngine.Java:405)
at org.Eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyStyles(AbstractCSSEngine.Java:481)
at org.Eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyStyles(AbstractCSSEngine.Java:405)
at org.Eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyStyles(AbstractCSSEngine.Java:481)
at org.Eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyStyles(AbstractCSSEngine.Java:405)
at org.Eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyStyles(AbstractCSSEngine.Java:481)
at org.Eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyStyles(AbstractCSSEngine.Java:405)
at org.Eclipse.e4.ui.css.swt.internal.theme.ThemeEngine.applyStyles(ThemeEngine.Java:497)
at org.Eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$10.setClassnameAndId(PartRenderingEngine.Java:1267)
at org.Eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.setCSSInfo(SWTPartRenderer.Java:92)
at org.Eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.styleStack(WBWRenderer.Java:179)
at org.Eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.trackActivePart(WBWRenderer.Java:148)
at Sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
at Sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at Java.lang.reflect.Method.invoke(Unknown Source)
at org.Eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.Java:56)
... 71 more
14
Karan Sharma

Перезапуск Eclipse IDE решил проблему.

35
Karan Sharma

Затмение - Кеплер/Луна/Марс

для меня я пошел в 

... \. metadata.plugins\org.Eclipse.e4.workbench // расположение папок.

и удалил все содержимое

workbench.xmi

и перезапустил приложение.

Работал для меня, надеюсь, будет работать для вас.

Примечание: хорошо, чтобы вернуться, прежде чем вносить изменения.

11
Arun Pratap Singh

Запустите Eclipse с помощью командной строки, введя команду: Eclipse -clean решил мою проблему.

4
Jameer Mulani

Намного лучше закрыть Eclipse и запустить Eclipse снова, а не перезапускать Eclipse, он будет работать быстрее.

3
user2489898

Очистите сервер и перезапустите Eclipse IDE.

0
Mayur Gorakhpuria

Я немного изменил имя файла. 

/.metadata/.plugins/org.Eclipse.e4.workbench/workbench.xmi выше - оригинальное имя workbench.xmi

Я переименую его в workbenchold.xmi, который у меня работает. 

после того, как вы переименуете его, вы должны обновить Eclipse и плагины с рынка, а также немного изменить настройки отображения. 

0
Bharat