web-dev-qa-db-ja.com

org.Eclipse.swt.SWTException:AndroidManifest.xmlを開こうとすると「ウィジェットが破棄されます」

Windows 8を実行しており、Eclipse Keplerリリースを使用して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
16
Karan Sharma

Eclipseを再起動すると、IDEが問題を解決しました。

37
Karan Sharma

日食-ケプラー/ルナ/火星

私にとっては

... \。metadata.plugins\org.Eclipse.e4.workbench //フォルダーの場所。

のすべてのコンテンツを削除しました

workbench.xmi

そして、アプリケーションを再起動しました。

私のために働いたことは、うまくいけばあなたのために働くでしょう。

注:変更を加える前にバックアップを取ることをお勧めします。

11

Eclipseを再起動するよりも、Eclipseを閉じて再起動する方がはるかに優れているため、より速く動作します。

3
user2489898

サーバーをクリーンアップし、Eclipse IDEを再起動します。

0

ファイル名を少し変更しました。

/.metadata/.plugins/org.Eclipse.e4.workbench/workbench.xmiは、workbench.xmiの元の名前です

Workbenchold.xmiで名前を変更します。

名前を変更したら、Eclipseとプラグインをマーケットプレイスから更新し、「ショービュー」設定を少し行う必要があります。

0
Bharat