Project: appceleratorstudio
Issue TISTUD-6520: Intermittent: Deleting multiple projects from workspace results error for open files
This is specific to Windows . I could not recreate this issue on Mac. Test Steps: 1. Create multiple projects in your workspace ( more than 3) 2.Make sure few .js files and .xml files must be open . 3. Delete all those projects ( check delete from workspace too) Actual Result: Error occurs. Screenshot attached. {code} !ENTRY org.eclipse.e4.ui.workbench 4 0 2014-05-20 15:51:54.371 !MESSAGE !STACK 0 java.lang.ClassCastException: org.eclipse.core.internal.resources.File cannot be cast to java.io.File com.appcelerator.titanium.ui.ide.tiappEditor.TiAppEditor.addPages(TiAppEditor.java:144) org.eclipse.ui.forms.editor.FormEditor.createPages(FormEditor.java:138) org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:358) org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:142) org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:96) org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:323) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) java.lang.reflect.Method.invoke(Unknown Source) org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56) org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:877) org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:857) org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:119) org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:333) org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:254) org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162) org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102) org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71) org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53) org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:129) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:949) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:633) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700) org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685) org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1147) org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:65) org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41) org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180) org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150) org.eclipse.swt.widgets.Display.syncExec(Display.java:4688) org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:205) org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38) org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197) org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197) org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1) org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135) org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78) org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39) org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80) org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58) org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374) org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171) org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer$10.widgetSelected(StackRenderer.java:936) org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1081) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1066) org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:778) org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3080) org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1772) org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:279) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057) org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113) org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997) org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140) org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611) org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567) org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:125) org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) java.lang.reflect.Method.invoke(Unknown Source) org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636) org.eclipse.equinox.launcher.Main.basicRun(Main.java:591) org.eclipse.equinox.launcher.Main.run(Main.java:1450) !ENTRY org.eclipse.e4.ui.workbench 4 0 2014-05-20 15:52:11.513 !MESSAGE !STACK 0 java.lang.ClassCastException: org.eclipse.core.internal.resources.File cannot be cast to java.io.File com.appcelerator.titanium.ui.ide.tiappEditor.TiAppEditor.addPages(TiAppEditor.java:144) org.eclipse.ui.forms.editor.FormEditor.createPages(FormEditor.java:138) org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:358) org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:142) org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:96) org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:323) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) java.lang.reflect.Method.invoke(Unknown Source) org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56) org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:877) org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:857) org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:119) org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:333) org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:254) org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162) org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102) org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71) org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53) org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:129) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:949) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:633) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700) org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685) org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1147) org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:65) org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41) org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180) org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150) org.eclipse.swt.widgets.Display.syncExec(Display.java:4688) org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:205) org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38) org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197) org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197) org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1) org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135) org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78) org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39) org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80) org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58) org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374) org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171) org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer$10.widgetSelected(StackRenderer.java:936) org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1081) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1066) org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:778) org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3080) org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1772) org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:279) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057) org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113) org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997) org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140) org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611) org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567) org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:125) org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) java.lang.reflect.Method.invoke(Unknown Source) org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636) org.eclipse.equinox.launcher.Main.basicRun(Main.java:591) org.eclipse.equinox.launcher.Main.run(Main.java:1450) !ENTRY org.eclipse.ui 4 4 2014-05-20 15:52:21.060 !MESSAGE Unable to create part !ENTRY org.eclipse.core.filebuffers 4 0 2014-05-20 15:52:21.060 !MESSAGE The file does not exist. !STACK 1 org.eclipse.core.runtime.CoreException: The file does not exist. org.eclipse.core.internal.filebuffers.ResourceFileBuffer.create(ResourceFileBuffer.java:237) org.eclipse.core.internal.filebuffers.TextFileBufferManager.connect(TextFileBufferManager.java:112) org.eclipse.ui.editors.text.TextFileDocumentProvider.createFileInfo(TextFileDocumentProvider.java:559) org.eclipse.ui.editors.text.TextFileDocumentProvider.connect(TextFileDocumentProvider.java:478) com.aptana.editor.common.CommonDocumentProvider.connect(CommonDocumentProvider.java:31) com.aptana.editor.common.SimpleDocumentProvider.connect(SimpleDocumentProvider.java:26) org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(AbstractTextEditor.java:4230) org.eclipse.ui.texteditor.StatusTextEditor.doSetInput(StatusTextEditor.java:237) org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.doSetInput(AbstractDecoratedTextEditor.java:1480) com.aptana.editor.common.AbstractThemeableEditor.doSetInput(AbstractThemeableEditor.java:1160) org.eclipse.ui.texteditor.AbstractTextEditor$19.run(AbstractTextEditor.java:3217) org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464) org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372) org.eclipse.ui.internal.WorkbenchWindow$13.run(WorkbenchWindow.java:1829) org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:1826) org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3235) org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3262) com.aptana.editor.common.AbstractThemeableEditor.init(AbstractThemeableEditor.java:640) org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:359) org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:306) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) java.lang.reflect.Method.invoke(Unknown Source) org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56) org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:877) org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:857) org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:119) org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:333) org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:254) org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162) org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102) org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71) org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53) org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:129) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:949) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:633) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700) org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685) org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1147) org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:65) org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41) org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180) org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150) org.eclipse.swt.widgets.Display.syncExec(Display.java:4688) org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:205) org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38) org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197) org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197) org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1) org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) org.eclipse.osgi.fra...
Story points: 3