web-dev-qa-db-fra.com

org.Eclipse.swt.SWTException: "Le widget est supprimé" lors de l'ouverture du journal AndroidManifest.xml

J'utilise Windows 8 et j'utilise Eclipse Kepler Release pour créer une application Android.

Lorsque je clique sur le fichier AndroidManifest.xml dans mon projet, je reçois une alerte qui affiche le message d'erreur suivant:

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

Trace de pile d'exception:

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

Le redémarrage de Eclipse IDE a résolu le problème.

35
Karan Sharma

Eclipse - Kepler/Luna/Mars

pour moi je suis allé à 

... \. metadata.plugins\org.Eclipse.e4.workbench // répertoire de dossier.

et supprimé tout le contenu de

workbench.xmi

et redémarré l'application.

Espérons que cela a fonctionné pour moi fonctionnera pour vous.

Remarque: Bon à reprendre avant d'effectuer des modifications.

11
Arun Pratap Singh

Démarrer Eclipse via la commande Invite en entrant la commande: Eclipse -clean a résolu mon problème.

4
Jameer Mulani

Mieux vaut fermer l’Eclipse et redémarrer l’Eclipse plutôt que de le redémarrer, cela fonctionnera plus rapidement.

3
user2489898

Nettoyez un serveur et redémarrez eclipse IDE.

0
Mayur Gorakhpuria

J'ai peu changé le nom du fichier. 

/.metadata/.plugins/org.Eclipse.e4.workbench/workbench.xmi ci-dessus est le nom original de workbench.xmi.

Je renomme celui sur workbenchold.xmi qui fonctionne pour moi. 

une fois que vous l'avez renommé, vous devez mettre à jour votre Eclipse et vos plugins à partir du marché, ainsi que modifier un peu vos paramètres d'affichage. 

0
Bharat