it-swarm.com.de

org.Eclipse.swt.SWTException: "Widget wird gelöscht", wenn versucht wird, AndroidManifest.xml zu öffnen

Ich verwende Windows 8 und verwende Eclipse Kepler Release, um eine Android-Anwendung zu erstellen.

Wenn ich in meinem Projekt auf die Datei AndroidManifest.xml klicke, erhalte ich eine Warnmeldung, die folgende Fehlermeldung anzeigt:

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

Ausnahme-Stack-Trace:

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

Durch einen Neustart der Eclipse IDE wurde das Problem behoben.

35
Karan Sharma

Eclipse - Kepler/Luna/Mars

für mich ging ich hin 

... \. metadata.plugins\org.Eclipse.e4.workbench // Ordnerort.

und löschte den gesamten Inhalt von

workbench.xmi

und die Anwendung neu gestartet.

Für mich gearbeitet wird hoffentlich für Sie arbeiten.

Hinweis: Es ist empfehlenswert, die Änderungen rückgängig zu machen.

11

Starten Sie Eclipse über die Eingabeaufforderung, indem Sie den folgenden Befehl eingeben: Eclipse -clean hat mein Problem gelöst.

4
Jameer Mulani

Es ist viel besser, die Eclipse zu schließen und die Eclipse erneut zu starten, anstatt die Eclipse neu zu starten, sie wird schneller arbeiten.

3
user2489898

Bereinigen Sie einen Server und starten Sie die Eclipse-IDE erneut.

0

Ich habe den Dateinamen etwas geändert. 

/.metadata/.plugins/org.Eclipse.e4.workbench/workbench.xmi oben ist der ursprüngliche Name von workbench.xmi

Ich benenne das auf workbenchold.xmi um, was für mich funktioniert. 

nach dem Umbenennen müssen Eclipse und Plugins vom Marktplatz aktualisiert und die Einstellungen für die "Show-Ansicht" ein wenig geändert werden. 

0
Bharat